]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderer.h
Initialize members of Font::Glyph
[libs/gl.git] / source / renderer.h
index dbb2d4905cf57ab2e3c18ef76816af577851da3b..f997171c4403e9dfb8759833c1aea5b1ae80995c 100644 (file)
@@ -81,6 +81,7 @@ private:
                const VertexSetup *vertex_setup;
                const WindingTest *winding_test;
                bool reverse_winding;
+               unsigned object_lod_bias;
 
                State();
        };
@@ -150,11 +151,16 @@ public:
        Renderer state is popped. */
        void add_shader_data(const ProgramData &data);
 
+       void flush_shader_data();
+
        void set_mesh(const Mesh *);
        void set_vertex_setup(const VertexSetup *);
        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();