]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/pipelinestate.h
Create a class for issuing drawing commands
[libs/gl.git] / source / core / pipelinestate.h
index 5c3bb9ceb997e51876b4e6a650aae8c350955181..f3c30030f67662422e995ace745ae75d8d4cbc8a 100644 (file)
@@ -76,6 +76,7 @@ private:
 
        static const PipelineState *last_applied;
        static std::vector<int> bound_tex_targets;
+       static unsigned restart_index;
 
 public:
        PipelineState();
@@ -103,6 +104,7 @@ public:
        void set_stencil_test(const StencilTest *);
        void set_blend(const Blend *);
 
+       const Framebuffer *get_framebuffer() const { return framebuffer; }
        const Program *get_shader_program() const { return shprog; }
        const VertexSetup *get_vertex_setup() const { return vertex_setup; }
        FaceWinding get_front_face() const { return front_face; }