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