50 #include <ACG/GL/acg_glew.hh>
52 #include "PostProcessorDepthImagePlugin.hh"
54 #include <ACG/GL/ScreenQuad.hh>
59 PostProcessorDepthImagePlugin::PostProcessorDepthImagePlugin()
66 PostProcessorDepthImagePlugin::~PostProcessorDepthImagePlugin()
71 QString PostProcessorDepthImagePlugin::postProcessorName() {
72 return QString(
"Show Depth Image");
75 QString PostProcessorDepthImagePlugin::checkOpenGL()
78 return QString(
"Insufficient OpenGL Version! OpenGL 3.0 or higher required");
84 void PostProcessorDepthImagePlugin::postProcess(
ACG::GLState* _glstate,
const std::vector<const PostProcessorInput*>& _input,
const PostProcessorOutput& _output) {
96 _input[0]->bindDepthTex(0);
120 #if QT_VERSION < 0x050000
static void draw(GLSL::Program *_prog=0)
Draw the screen quad.
GLSL::PtrProgram loadProgram(const char *vertexShaderFile, const char *tessControlShaderFile, const char *tessEvaluationShaderFile, const char *geometryShaderFile, const char *fragmentShaderFile, const GLSL::StringList *macros, bool verbose)
bool openGLVersion(const int _major, const int _minor)
void use()
Enables the program object for using.
void setUniform(const char *_name, GLint _value)
Set int uniform to specified value.
GLSL::Program * shader_
shader
void disable()
Resets to standard rendering pipeline.