]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderpass.h
Add a rendering supervisor class
[libs/gl.git] / source / renderpass.h
index acbe29491cf9f493477663f8f51954ef63de2605..688327bb84ebb7c067a504c2b03779181f026b2b 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of libmspgl
-Copyright © 2007-2008, 2010  Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2008, 2010-2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -28,7 +28,7 @@ This includes shader and data for it, material and texturing.
 
 XXX Does not delete inline texture from datafiles properly
 */
-class RenderPass: public Bindable<RenderPass>
+class RenderPass
 {
 public:
        class Loader: public DataFile::CollectionObjectLoader<RenderPass>
@@ -75,12 +75,12 @@ public:
        RenderPass(const RenderPass &);
        ~RenderPass();
 
+       const Program *get_shader_program() const { return shprog; }
+       const ProgramData *get_shader_data() const { return shdata; }
        void set_material(const Material *);
+       const Material *get_material() const { return material.get(); }
        void set_texture(unsigned, const Texture *);
-
-       void bind() const;
-
-       static void unbind();
+       const Texturing *get_texturing() const { return texturing; }
 };
 
 } // namespace GL