FontRenderer.h 449 B

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