+
+ /** Renderer for filled paths **/
+ class PathRenderer : public ObjectRenderer
+ {
+ public:
+ PathRenderer() : ObjectRenderer(PATH, "shaders/rect_vert.glsl", "shaders/rect_frag.glsl", "shaders/bezier_texbuf_geom.glsl") {}
+ virtual ~PathRenderer() {}
+ virtual void RenderUsingCPU(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) {}
+
+ };
+
+ class FakeRenderer : public ObjectRenderer
+ {
+ public:
+ FakeRenderer() : ObjectRenderer(PATH,NULL,NULL,NULL) {}
+ ~FakeRenderer() {}
+ virtual void RenderUsingCPU(Objects & objects, const View & view, const CPURenderTarget & target, unsigned first_obj_id, unsigned last_obj_id) {}
+ virtual void RenderUsingGPU(unsigned first_obj_id, unsigned last_obj_id) {}
+ };
+