Files
directx-plane-game/Graphics2/Graphics2.h
iDunnoDev f6bba67897 Added follow cam
Added "Controlled" mesh classes
Added Global Lighting Class
Added Gamepad controls
Split terrain nodes into Height and Perlin classes
Fixed Splitmesh node stuff
2022-05-09 17:50:22 +01:00

47 lines
1.0 KiB
C++

#pragma once
#include "DirectXFramework.h"
#include "SharedMethods.h"
#include "GamePadController.h"
#include "TexturedCubeNode.h"
#include "MeshNode.h"
#include "SplitMeshNode.h"
#include "ControlledSplitMeshNode.h"
#include "HeightMapTerrainNode.h"
#include "PerlinTerrainNode.h"
#include "SkyNode.h"
#include <ctime>
#include <set>
class Graphics2 : public DirectXFramework
{
public:
void CreateSceneGraph();
void UpdateSceneGraph();
private:
bool _boosting = false;
float _boostMultiplier = 1;
float _boostMin = 1;
float _boostStep = 0.5f;
float _boostMax = 5.0f;
float _flySpeed;
float _turnSpeed;
int _invertPitch;
float _currentRotation = 0.0f;
float _currentSideRotation = 0.0f;
float _currentPropRotation = 0.0f;
GamePadController _currentController;
// Changed from a vector to a set because sets only allow for unique values and thats all i want
set<ControlInputs> _currentInputs;
shared_ptr<ObjectNode> _currentPlayerObject;
void GetCurrentControlInputs();
void ResetCurrentControlInputs();
};