X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fobjectrenderer.h;h=70339e7f8f1fa16d34c74447e1872f13b3110317;hp=602b461e5083273d1a0421c3d730cd106420af66;hb=d9c0c3792133f87cd224dc22be428be8ddc016d8;hpb=87b1d05df45663252c86a03cb2c713c6dc3e9a98 diff --git a/src/objectrenderer.h b/src/objectrenderer.h index 602b461..70339e7 100644 --- a/src/objectrenderer.h +++ b/src/objectrenderer.h @@ -121,12 +121,25 @@ namespace IPDF float x0, y0; float x1, y1; float x2, y2; + float x3, y3; }; GLuint m_bezier_buffer_texture; GLuint m_bezier_id_buffer_texture; }; + + /** Renderer for filled circles **/ + class GroupRenderer : public ObjectRenderer + { + public: + GroupRenderer() : ObjectRenderer(GROUP, "shaders/rect_vert.glsl", "shaders/rect_frag.glsl", "shaders/rect_outline_geom.glsl") {} + virtual ~GroupRenderer() {} + virtual void RenderUsingCPU(const Objects & objects, const View & view, const CPURenderTarget & target, unsigned first_obj_id, unsigned last_obj_id); + // do nothing on GPU + virtual void RenderUsingGPU(unsigned first_obj_id, unsigned last_obj_id) {} + }; + } #endif //_OBJECT_RENDERER_H