#pragma once #include "shader.h" #include "types.h" class ShapeRenderer { public: ShapeRenderer(unsigned int screen_width, unsigned int screen_height); ~ShapeRenderer(void); void draw_rect(int x, int y, int width, int height, const Color& color); private: Shader* _shape_shader; unsigned int _vao, _vbo; float _projection[16]; };