FontRenderer.h 421 B

123456789101112131415161718192021
  1. #ifndef FONTRENDERER_H
  2. #define FONTRENDERER_H
  3. #include "rendering/FileTexture.h"
  4. #include "rendering/VertexBuffer.h"
  5. #include "utils/Array.h"
  6. #include "utils/ArrayList.h"
  7. class FontRenderer final {
  8. VertexBuffer vertexBuffer;
  9. Array<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