]> git.tdb.fi Git - libs/gl.git/blobdiff - source/postprocessor.cpp
Add missing includes
[libs/gl.git] / source / postprocessor.cpp
index d4f7bd2ebd32d048db9e988a70323437c61e02af..28ae71b0945b2ca28e04cf3de34d60e222a36646 100644 (file)
@@ -20,6 +20,11 @@ const char fullscreen_vs_source[] =
 namespace Msp {
 namespace GL {
 
+void PostProcessor::render(Renderer &, const Texture2D &color, const Texture2D &depth)
+{
+       render(color, depth);
+}
+
 Shader &PostProcessor::get_fullscreen_vertex_shader()
 {
        static VertexShader shader(fullscreen_vs_source);
@@ -45,5 +50,17 @@ const Mesh &PostProcessor::create_fullscreen_quad()
        return mesh;
 }
 
+
+PostProcessor::Template::Template():
+       size_divisor(1)
+{ }
+
+
+PostProcessor::Template::Loader::Loader(Template &t):
+       DataFile::ObjectLoader<Template>(t)
+{
+       add("size_divisor", &Template::size_divisor);
+}
+
 } // namespace GL
 } // namespace Msp