Go nuts with Qt
[ipdf/code.git] / src / objectrenderer.h
index 602b461..70339e7 100644 (file)
@@ -121,12 +121,25 @@ namespace IPDF
                                float x0, y0;
                                float x1, y1;
                                float x2, y2;
                                float x0, y0;
                                float x1, y1;
                                float x2, y2;
+                               float x3, y3;
                        };
 
                        GLuint m_bezier_buffer_texture;
                        GLuint m_bezier_id_buffer_texture;
 
        };
                        };
 
                        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
 }
 
 #endif //_OBJECT_RENDERER_H

UCC git Repository :: git.ucc.asn.au