X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frenderer.h;h=973e1b00263330101aca291ccef3c38a75e5e82c;hp=b2fcf4c4e6fba065980c7739ecf375a5a4bbda87;hb=2341b3575c874b1960814264fa759ad584bf3134;hpb=ff458d6c6118f3864a7b8494a06472d8b0ebe06a diff --git a/source/renderer.h b/source/renderer.h index b2fcf4c4..973e1b00 100644 --- a/source/renderer.h +++ b/source/renderer.h @@ -81,6 +81,7 @@ private: const VertexSetup *vertex_setup; const WindingTest *winding_test; bool reverse_winding; + unsigned object_lod_bias; State(); }; @@ -155,6 +156,9 @@ public: void set_winding_test(const WindingTest *); void set_reverse_winding(bool); + void set_object_lod_bias(unsigned); + unsigned get_object_lod_bias() const { return state->object_lod_bias; } + /** Saves the current state so it can be restored later. */ void push_state(); @@ -172,6 +176,7 @@ public: void render(const Renderable &, const Tag & = Tag()); void draw(const Batch &); + void draw_instanced(const Batch &, unsigned); private: void apply_state();