]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderpass.h
Immediate update camera aspect in View::set_camera
[libs/gl.git] / source / renderpass.h
index ac752ae230c5c9b7d6435d2fc8de2938b3426b55..eec60793ea3ca23b9052ae27dd75cdcfbfd97c52 100644 (file)
@@ -11,7 +11,7 @@ namespace GL {
 class Material;
 class Program;
 class ProgramData;
-class TexEnv;
+class Renderer;
 class Texture;
 class Texturing;
 
@@ -45,14 +45,12 @@ private:
        private:
                unsigned index;
                RefPtr<Texture> tex;
-               RefPtr<TexEnv> env;
 
        public:
                TextureLoader(Texturing &, unsigned, Collection *);
        private:
                virtual void finish();
 
-               void texenv();
                void texture(const std::string &);
                void texture2d();
        };
@@ -62,6 +60,7 @@ private:
        RefPtr<const Material> material;
        Texturing *texturing;
        std::map<std::string, unsigned> tex_names;
+       bool back_faces;
 
        RenderPass &operator=(const RenderPass &);
 public:
@@ -77,6 +76,10 @@ public:
        void set_texture(unsigned, const Texture *);
        const Texturing *get_texturing() const { return texturing; }
        int get_texture_index(const std::string &) const;
+       void set_back_faces(bool);
+       bool get_back_faces() const { return back_faces; }
+
+       void apply(Renderer &) const;
 };
 
 } // namespace GL