Move FS template declaration in shaders.hpp

This commit is contained in:
Vincent Lejeune 2014-12-14 21:58:42 +01:00
parent 4b2abef56c
commit 3f8fdc7976
2 changed files with 9 additions and 9 deletions

View File

@ -205,15 +205,6 @@ void PostProcessing::update(float dt)
} }
} // update } // update
template<typename T,typename... Args>
static void DrawFullScreenEffect(Args...args)
{
glUseProgram(T::getInstance()->Program);
glBindVertexArray(SharedObject::FullScreenQuadVAO);
T::getInstance()->setUniforms(args...);
glDrawArrays(GL_TRIANGLES, 0, 3);
}
static static
void renderBloom(GLuint in) void renderBloom(GLuint in)
{ {

View File

@ -370,6 +370,15 @@ public:
}; };
} }
template<typename T, typename... Args>
static void DrawFullScreenEffect(Args...args)
{
glUseProgram(T::getInstance()->Program);
glBindVertexArray(SharedObject::FullScreenQuadVAO);
T::getInstance()->setUniforms(args...);
glDrawArrays(GL_TRIANGLES, 0, 3);
}
namespace FullScreenShader namespace FullScreenShader
{ {