]> git.tdb.fi Git - libs/gl.git/blobdiff - source/postprocessor.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / postprocessor.cpp
diff --git a/source/postprocessor.cpp b/source/postprocessor.cpp
deleted file mode 100644 (file)
index f67bf4c..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "mesh.h"
-#include "meshbuilder.h"
-#include "postprocessor.h"
-#include "shader.h"
-
-namespace Msp {
-namespace GL {
-
-void PostProcessor::render(Renderer &, const Texture2D &color, const Texture2D &depth)
-{
-       render(color, depth);
-}
-
-const Mesh &PostProcessor::get_fullscreen_quad()
-{
-       static const Mesh &mesh = create_fullscreen_quad();
-       return mesh;
-}
-
-const Mesh &PostProcessor::create_fullscreen_quad()
-{
-       static Mesh mesh(VERTEX2);
-       MeshBuilder builder(mesh);
-       builder.begin(TRIANGLE_STRIP);
-       builder.vertex(-1, 1);
-       builder.vertex(-1, -1);
-       builder.vertex(1, 1);
-       builder.vertex(1, -1);
-       builder.end();
-       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