Khaotic Engine Reborn
Loading...
Searching...
No Matches
display_plane_class.h
1#ifndef _DISPLAYPLANECLASS_H_
2#define _DISPLAYPLANECLASS_H_
3
4
6// MY CLASS INCLUDES //
8#include "d_3d_class.h"
9
10
12// Class name: display_plane_class
15{
16private:
17 struct VertexType
18 {
19 XMFLOAT3 position;
20 XMFLOAT2 texture;
21 };
22
23public:
27
28
29 bool Initialize(ID3D11Device*, float, float);
30 void Shutdown();
31 void Render(ID3D11DeviceContext*);
32
33 int GetIndexCount();
34
35private:
36 bool InitializeBuffers(ID3D11Device*, float, float);
37 void ShutdownBuffers();
38 void RenderBuffers(ID3D11DeviceContext*);
39
40private:
41 ID3D11Buffer* m_vertexBuffer, * m_indexBuffer;
42 int m_vertexCount, m_indexCount;
43
44};
45
46#endif