Renderer.h 584 B

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