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
This commit is contained in:
iDunnoDev
2022-04-18 22:33:15 +01:00
committed by iDunnoDev
parent 65255f1321
commit 7a57c73ac3
47 changed files with 4323 additions and 91 deletions

View File

@ -4,8 +4,11 @@
#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:
@ -13,8 +16,21 @@ public:
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();
};