]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderer.h
Copy ProgramData::uniform_slots in copy constructor and operator=
[libs/gl.git] / source / renderer.h
index 1be1a4549211828d8b3dedfeea7898a4c0a526b3..5d8f686e35806a419e4a46167fd75161666ed725 100644 (file)
@@ -91,6 +91,7 @@ private:
 
        MtxStack mtx_stack;
        bool mtx_changed;
+       bool matrices_loaded;
        const Camera *camera;
        std::vector<State> state_stack;
        State *state;
@@ -139,9 +140,13 @@ public:
 
        /** Prepares for temporarily bypassing the Renderer by synchronizing the
        current state with GL.  No additional call is necessary to resume using the
-       Renderer. */
+       Renderer.  DEPRECATED. */
        void escape();
 
+       /** Ends rendering, unbinding all objects and resetting state.  There must
+       be no unpopped state in the stack. */
+       void end();
+
        void exclude(const Renderable &);
        void include(const Renderable &);