#ifndef LLMR_RENDERER_DEBUGBUCKET #define LLMR_RENDERER_DEBUGBUCKET #include #include #include #include #include #include #ifndef BUFFER_OFFSET #define BUFFER_OFFSET(i) ((char *)nullptr + (i)) #endif namespace llmr { class PlainShader; class DebugBucket : public Bucket { public: DebugBucket(DebugFontBuffer& fontBuffer); virtual void render(Painter& painter, const std::string& layer_name, const Tile::ID& id); virtual bool hasData() const; void drawLines(PlainShader& shader); void drawPoints(PlainShader& shader); private: DebugFontBuffer& fontBuffer; VertexArrayObject array; }; } #endif