]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove deprecated functions from Renderer
authorMikko Rasa <tdb@tdb.fi>
Fri, 12 Nov 2021 16:52:44 +0000 (18:52 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 12 Nov 2021 16:52:44 +0000 (18:52 +0200)
source/render/renderer.cpp
source/render/renderer.h

index b935ce14c3e88bf94636135cc5ae0fe084574cbf..044ab55db7d3404d0f7ac9db3181d1e3eb3e5281 100644 (file)
@@ -110,18 +110,6 @@ void Renderer::flush_textures()
        texture_stack.erase(texture_stack.begin()+state->texture_count, texture_stack.end());
 }
 
-void Renderer::set_material(const Material *m)
-{
-       if(m)
-               add_shader_data(m->get_shader_data());
-}
-
-void Renderer::set_lighting(const Lighting *l)
-{
-       if(l)
-               add_shader_data(l->get_shader_data());
-}
-
 void Renderer::set_shader_program(const Program *p, const ProgramData *d)
 {
        state->shprog = p;
@@ -141,13 +129,13 @@ void Renderer::add_shader_data(const ProgramData &d)
                }
        }
 
-       flush_shader_data_();
+       flush_shader_data();
        shdata_stack.push_back(&d);
        state->shdata_count = shdata_stack.size();
        changed |= SHADER_DATA;
 }
 
-void Renderer::flush_shader_data_()
+void Renderer::flush_shader_data()
 {
        if(shdata_stack.size()>state->shdata_count)
                shdata_stack.erase(shdata_stack.begin()+state->shdata_count, shdata_stack.end());
index 107efcb742cdb5ee98015bb19ffaf7b77d0f70d2..36fe6c919a5e063de7b5fa0e74353fe0643b700d 100644 (file)
@@ -134,11 +134,8 @@ public:
        void set_texture(Tag, const Texture *, const Sampler * = 0);
 private:
        void flush_textures();
-public:
-       DEPRECATED void set_material(const Material *);
-
-       DEPRECATED void set_lighting(const Lighting *);
 
+public:
        /** Sets the shader program to use.  As a convenience, uniform values may be
        specified at the same time. */
        void set_shader_program(const Program *prog, const ProgramData *data = 0);
@@ -148,9 +145,8 @@ public:
        last will be used. */
        void add_shader_data(const ProgramData &data);
 
-       DEPRECATED void flush_shader_data() { flush_shader_data_(); }
 private:
-       void flush_shader_data_();
+       void flush_shader_data();
 
 public:
        void set_vertex_setup(const VertexSetup *);