#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