- void set_shader(const Program *, const ProgramData *);
- void add_shader_data(const ProgramData *);
- void set_vertex_array(const VertexArray *);
- void set_element_buffer(const Buffer *);
+
+ void set_lighting(const Lighting *);
+
+ /** Sets the shader program to use. An initial set of data can be set as
+ well, with the same semantics as add_shader_data. */
+ void set_shader_program(const Program *prog, const ProgramData *data = 0);
+
+ /** Adds another set of data to be use with shader programs. The data is
+ independent of any shader program changes and remains in effect until the
+ Renderer state is popped. */
+ void add_shader_data(const ProgramData &data);
+
+ void set_mesh(const Mesh *);