-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInputClass.hpp
63 lines (44 loc) · 1.48 KB
/
InputClass.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef INPUTCLASS_HPP
#define INPUTCLASS_HPP
#include "objLoader.hpp"
#include "TextureLoader.hpp"
#include "HeightMapLoaderClass.hpp"
#include "HeightMapClass.hpp"
#include "Object.hpp" // Initialize()
#include "Globals.hpp"
class InputClass {
private:
// Program Input
objLoaderClass ObjectLoader;
TextureClass *ObjectTextureLoaderArray;
HeightMapLoaderClass HeightMapLoader;
TextureClass HeightMapTextureLoader;
ID3D11ShaderResourceView* ShaderResourceViewArray[OBJ_COUNT]; // Contains the shaderResourceViews to the Textures in the TextureLoaderArray.
ID3D11ShaderResourceView* HeightMapShaderResourceView[HEIGHTMAP_TEXTURE_COUNT];
// User Input
MSG msg = { 0 };
POINT LastMouseCoordinates = { 0, 0 };
POINT CursorMovement = { 0, 0 };
void UpdateCursorMovement(POINT NewCursorCoordinates);
public:
InputClass();
~InputClass();
void ReleaseAll();
void Initialize(
ObjectClass* ObjectArray,
HeightMapClass *HeightMap,
ID3D11Device* *Device,
ID3D11DeviceContext* *DeviceContext
);
/* ------------- COMMENTS -------------
Updates CursorMovement based on difference between new and old cursor coordinates,
then returns the updated CursorMovement.
*/
POINT GetCursorMovement(POINT NewCursorCoordinates);
ID3D11ShaderResourceView* *GetShaderResourceViewArray();
ID3D11ShaderResourceView* *GetHeightMapShaderResourceView();
HeightMapLoaderClass* GetHeightMapLoader();
VertexDataClass* *GetVerticeData();
ObjectDataClass *GetObjectData();
};
#endif