X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frenderer.h;h=501d1db3159667c42f92f3ecdfe2e85cb28fc1c4;hb=719578516a4d44a6f39eac3b074ce9f6180b5d53;hp=8dbe779f32b78f6a8e1bf108c084ad7a4f2afba7;hpb=90a26a1740d5843b60d07d9c39d8567bfed5189c;p=libs%2Fgl.git diff --git a/source/renderer.h b/source/renderer.h index 8dbe779f..501d1db3 100644 --- a/source/renderer.h +++ b/source/renderer.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_RENDERER_H_ #define MSP_GL_RENDERER_H_ @@ -23,6 +16,7 @@ class ProgramData; class Texture; class Texturing; class VertexArray; +class WindingTest; /** A class for supervising the rendering process. While many Renderables (in @@ -52,6 +46,7 @@ private: const Material *material; const Program *shprog; std::vector shdata; + const WindingTest *winding_test; State(); }; @@ -75,6 +70,7 @@ private: const VertexArray *vertex_array; bool vertex_array_changed; const Buffer *element_buffer; + bool shdata_changed; public: Renderer(const Camera *); @@ -91,6 +87,7 @@ public: void add_shader_data(const ProgramData *); void set_vertex_array(const VertexArray *); void set_element_buffer(const Buffer *); + void set_winding_test(const WindingTest *); void push_state(); void pop_state();