Level H Engine
HeightmapDemo.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../State.h"
4 #include "../StateManager.h"
5 #include "../../Maths/Vec3.h"
6 
10 class HeightmapDemo : public State
11 {
12 public:
19 
24 
29  bool input();
30 
34  void update();
35 
39  void draw();
40 
41 private:
43  std::string backgroundMusicID;
47  bool helpToggle;
55  std::string UIImageID;
57  std::string helpID;
59  std::string heightmapImageID;
60 };
std::string UIImageID
The UI image ID.
Definition: HeightmapDemo.h:55
Creates a State object to be inherited.
Definition: State.h:13
~HeightmapDemo()
Destructs the State object.
Definition: HeightmapDemo.cpp:72
bool initialLoop
Initital loop bool.
Definition: HeightmapDemo.h:45
bool helpToggle
A boolean for help toggle.
Definition: HeightmapDemo.h:47
void draw()
A function to draw the State to the screen.
Definition: HeightmapDemo.cpp:180
HeightmapDemo(StateManager *stateManager, SDL_Window *window)
Constructs the State object.
Definition: HeightmapDemo.cpp:18
bool cameraToggle
A boolean for camera toggle.
Definition: HeightmapDemo.h:49
Creates a StateManager object.
Definition: StateManager.h:9
A State that contains and runs the Demo.
Definition: HeightmapDemo.h:10
Vec3 defaultCameraPos
The default camera position.
Definition: HeightmapDemo.h:51
StateManager * stateManager
A pointer to the state manager.
Definition: State.h:64
std::string backgroundMusicID
The background music id.
Definition: HeightmapDemo.h:43
std::string helpID
The Help image ID.
Definition: HeightmapDemo.h:57
SDL_Window * window
The window to display to.
Definition: State.h:66
bool input()
Handles the State input.
Definition: HeightmapDemo.cpp:80
Contains the Vec3 structure with functions and overloaded operators.
Definition: Vec3.h:8
Vec3 defaultCameraRotation
The default camera rotation.
Definition: HeightmapDemo.h:53
void update()
A function to update the State.
Definition: HeightmapDemo.cpp:148
std::string heightmapImageID
The heightmap image ID.
Definition: HeightmapDemo.h:59