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 bool Initialize(ID3D11Device*, float, float);
29 void Shutdown();
30 void Render(ID3D11DeviceContext*);
31
32 int GetIndexCount();
33
34private:
35 bool InitializeBuffers(ID3D11Device*, float, float);
36 void ShutdownBuffers();
37 void RenderBuffers(ID3D11DeviceContext*);
38
39private:
40 ID3D11Buffer* m_vertexBuffer, * m_indexBuffer;
41 int m_vertexCount, m_indexCount;
42
43};
44
45#endif