]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.h
Remove dynamic allocation from VertexFormat
[libs/gl.git] / source / ambientocclusion.h
index 1866baee4eb57aeeb95c2fd32206f8c0ff8602c5..aae5fb29b8c45449759e590da4d4bced27f0dfd5 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_AMBIENTOCCLUSION_H_
 #define MSP_GL_AMBIENTOCCLUSION_H_
 
@@ -36,15 +29,15 @@ private:
        Texturing combine_texturing;
        Program combine_shader;
        ProgramData combine_shdata;
-       Mesh quad;
-       float darkness;
+       const Mesh &quad;
 
 public:
        AmbientOcclusion(unsigned, unsigned, float);
 
+       void set_depth_ratio(float);
        void set_darkness(float);
 
-       virtual void render(const Texture2D &, const Texture2D &);
+       virtual void render(Renderer &, const Texture2D &, const Texture2D &);
 };
 
 } // namespace GL