FontRenderer.h 458 B

12345678910111213141516171819202122
  1. #ifndef FONTRENDERER_H
  2. #define FONTRENDERER_H
  3. #include "gaming-core/wrapper/VertexBuffer.h"
  4. #include "gaming-core/rendering/FileTexture.h"
  5. #include "utils/Array.h"
  6. class FontRenderer final {
  7. VertexBuffer vertexBuffer;
  8. FileTexture tex1;
  9. FileTexture tex2;
  10. FileTexture tex3;
  11. FileTexture* activeTex;
  12. int scale;
  13. public:
  14. FontRenderer();
  15. float drawString(float x, float y, const char* text);
  16. void setSize(int size);
  17. };
  18. #endif