From 5c46e0f0a924989201c6784b0f956bc442f14a7e Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 19 Feb 2017 09:17:35 -0600 Subject: -removed glm library, its in the debian repos -made opengl and sdl folders in includes, moved various *hpps to them --- inc/opengl/rectdrawer.hpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 inc/opengl/rectdrawer.hpp (limited to 'inc/opengl/rectdrawer.hpp') diff --git a/inc/opengl/rectdrawer.hpp b/inc/opengl/rectdrawer.hpp new file mode 100644 index 0000000..f2ca1e5 --- /dev/null +++ b/inc/opengl/rectdrawer.hpp @@ -0,0 +1,47 @@ +#ifndef rectdrawer_h +#define rectdrawer_h + + +#include +#include +#include +#include "geoshader.hpp" +#include "graphicsdata.hpp" +#include "spritebatch.hpp" + + +//merge this with spritebatch +class Rectdrawer +{ +public: + Rectdrawer(GeoShader theshader); + ~Rectdrawer(); + + + //void init(); + void begin(); + void end(); + void draw(const GraphicsData& gfxData); + void renderBatch(); + +private: + // Creates all the needed RenderBatches + void createRenderBatches(); + + + GLuint _vbo; + GLuint _vao; + + + std::vector _gfxPtr; ///< This is for sorting + std::vector _gfx; ///< These are the actual glyphs + std::vector _renderBatches; + + GeoShader shader; + + +}; + + +#endif + -- cgit v1.2.3