]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderer.h
Add an object LoD bias parameter to Renderer
[libs/gl.git] / source / renderer.h
index dbb2d4905cf57ab2e3c18ef76816af577851da3b..973e1b00263330101aca291ccef3c38a75e5e82c 100644 (file)
@@ -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();