]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderpass.h
Rework Bind and enable it to restore the old binding
[libs/gl.git] / source / renderpass.h
index 94c6bc02b085885a4e7dea3bdad21447b33922f7..e2ea4c97175eb6a62e14bfa6ec636a4c63b12b1d 100644 (file)
@@ -9,6 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_RENDERPASS_H_
 
 #include <msp/datafile/objectloader.h>
+#include "bindable.h"
 
 namespace Msp {
 namespace GL {
@@ -22,7 +23,7 @@ class Texture;
 Encapsulates the data that determines the appearance of a rendered surface.
 This includes shader and data for it, material and textures.
 */
-class RenderPass
+class RenderPass: public Bindable<RenderPass>
 {
 public:
        class Loader: public DataFile::CollectionObjectLoader<RenderPass>
@@ -61,8 +62,6 @@ private:
        const Material *material;
        std::vector<TextureSlot> textures;
 
-       static const RenderPass *current;
-
        RenderPass &operator=(const RenderPass &);
 public:
        RenderPass();