- const Texturing *texturing;
- unsigned lowest_effect_texunit;
- const Material *material;
- const Lighting *lighting;
- Matrix lighting_matrix;
+ int replaced;
+
+ BoundTexture();
+ };
+
+ struct BoundProgramData
+ {
+ const ProgramData *shdata;
+ mutable unsigned generation;
+
+ BoundProgramData(const ProgramData *);
+ };
+
+ struct State
+ {
+ const Camera *camera;
+ Matrix model_matrix;
+ const Framebuffer *framebuffer;
+ const Rect *viewport;
+ const Rect *scissor;
+ unsigned texture_count;