#include "graphicsbuffer.h"
#include "shaderprogram.h"
#include "bufferbuilder.h"
+#include <cstdint>
#define BEZIER_CPU_DECASTELJAU
struct PixelBounds
{
int64_t x; int64_t y; int64_t w; int64_t h;
- PixelBounds(const Rect & bounds) : x(Double(bounds.x)), y(Double(bounds.y)), w(Double(bounds.w)), h(Double(bounds.h)) {}
+ PixelBounds(const Rect & bounds);
};
typedef std::pair<int64_t, int64_t> PixelPoint;
class PathRenderer : public ObjectRenderer
{
public:
- PathRenderer() : ObjectRenderer(PATH, "shaders/rect_vert.glsl", "shaders/rect_frag.glsl", "shaders/bezier_texbug_geom.glsl") {}
+ 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