Files
directx-plane-game/Graphics2/Graphics2.h
iDunnoDev 7a57c73ac3 Added the camera class
Added the DDS Texture Loading for future use
Added the gamepad class for future use
Added first child method to the scenegraph
Added RGB to intensity and lerp methods to the shared methods class
Added the terrain node class with normals
Fixed issue with submeshnode not passing the world transform to the actual meshes
2022-04-18 22:33:15 +01:00

37 lines
737 B
C++

#pragma once
#include "DirectXFramework.h"
#include "SharedMethods.h"
#include "TexturedCubeNode.h"
#include "MeshNode.h"
#include "SplitMeshNode.h"
#include "TerrainNode.h"
#include <ctime>
enum class ControlInputs {Forward, Back, TurnLeft, TurnRight, StrafeLeft, StrafeRight, Up, Down, Fire1, Fire2};
class Graphics2 : public DirectXFramework
{
public:
void CreateSceneGraph();
void UpdateSceneGraph();
private:
bool _boosting;
float _boostMultiplier;
float _flySpeed;
float _turnSpeed;
int _invertPitch;
float _currentRotation = 0.0f;
float _currentSideRotation = 0.0f;
float _currentPropRotation = 0.0f;
vector<ControlInputs> _currentInputs;
void GetCurrentControlInputs();
void ResetCurrentControlInputs();
};