Renderer.h 506 B

123456789101112131415161718192021222324
  1. #ifndef RENDERER_H
  2. #define RENDERER_H
  3. #include "gaming-core/rendering/FileTexture.h"
  4. #include "gaming-core/rendering/VertexBuffer.h"
  5. #include "gaming-core/utils/Buffer.h"
  6. #include "gaming-core/utils/Color.h"
  7. class Renderer final {
  8. VertexBuffer vertexBuffer;
  9. Buffer buffer;
  10. FileTexture font;
  11. public:
  12. Renderer();
  13. void drawString(float x, float y, const char* text);
  14. void drawRectangle(float x, float y, float width, float height, Color4 c);
  15. private:
  16. void update();
  17. };
  18. #endif