- Error("Cannot render beziers on the GPU; they will appear as outlined rectangles.");
- ObjectRenderer::RenderUsingGPU();
- }
- virtual void RenderUsingCPU(const Objects & objects, const View & view, const CPURenderTarget & target);
+ 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) {}