FontRenderer.h 381 B

1234567891011121314151617181920
  1. #ifndef FONTRENDERER_H
  2. #define FONTRENDERER_H
  3. #include "rendering/wrapper/VertexBuffer.h"
  4. #include "rendering/wrapper/StreamBuffer.h"
  5. #include "rendering/FileTexture.h"
  6. class FontRenderer final {
  7. public:
  8. FontRenderer();
  9. void drawString(float x, float y, const char* text);
  10. private:
  11. VertexBuffer vertexBuffer;
  12. StreamBuffer buffer;
  13. FileTexture tex;
  14. };
  15. #endif