1234567891011121314151617181920212223242526 |
- #ifndef RENDERER_H
- #define RENDERER_H
- #include "gaming-core/math/Vector.h"
- #include "gaming-core/rendering/FileTexture.h"
- #include "gaming-core/rendering/VertexBuffer.h"
- #include "gaming-core/utils/Buffer.h"
- #include "gaming-core/utils/Color.h"
- class Renderer final {
- VertexBuffer vertexBuffer;
- Buffer buffer;
- FileTexture font;
- public:
- Renderer();
- void drawString(float x, float y, const char* text);
- float drawStringWidth(const char* text);
- void drawRectangle(const Vector2& pos, const Vector2& size, Color4 c);
- private:
- void update();
- };
- #endif
|