* Use the GPU to render the objects - GLSL shader approach
* This way is definitely faster, but subject to the GPU's limitations on precision
*/
* Use the GPU to render the objects - GLSL shader approach
* This way is definitely faster, but subject to the GPU's limitations on precision
*/
- PixelBounds(const Rect & bounds) : x(bounds.x), y(bounds.y), w(bounds.w), h(bounds.h) {}
+ PixelBounds(const Rect & bounds) : x(Double(bounds.x)), y(Double(bounds.y)), w(Double(bounds.w)), h(Double(bounds.h)) {}
};
static Rect CPURenderBounds(const Rect & bounds, const View & view, const CPURenderTarget & target);
};
static Rect CPURenderBounds(const Rect & bounds, const View & view, const CPURenderTarget & target);
public:
BezierRenderer() : ObjectRenderer(BEZIER, "shaders/rect_vert.glsl", "shaders/rect_frag.glsl", "shaders/bezier_texbuf_geom.glsl") {}
virtual ~BezierRenderer() {}
public:
BezierRenderer() : ObjectRenderer(BEZIER, "shaders/rect_vert.glsl", "shaders/rect_frag.glsl", "shaders/bezier_texbuf_geom.glsl") {}
virtual ~BezierRenderer() {}
virtual void RenderUsingCPU(const Objects & objects, const View & view, const CPURenderTarget & target);
void PrepareBezierGPUBuffer(const Objects & objects);
private:
virtual void RenderUsingCPU(const Objects & objects, const View & view, const CPURenderTarget & target);
void PrepareBezierGPUBuffer(const Objects & objects);
private: