diff --git a/src/meshlabplugins/render_rm/glstateholder.cpp b/src/meshlabplugins/render_rm/glstateholder.cpp index 685d8af36..83e71a446 100644 --- a/src/meshlabplugins/render_rm/glstateholder.cpp +++ b/src/meshlabplugins/render_rm/glstateholder.cpp @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.8 2007/12/10 15:16:02 corsini +code restyling + Revision 1.7 2007/12/03 11:10:26 corsini code restyling @@ -217,7 +220,6 @@ bool UniformValue::updateValueInGLMemory() return true; } - void UniformValue::VarDump() { switch(type) { @@ -605,10 +607,9 @@ void GLStateHolder::genPassTextures() //create the texture glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, FBO_SIZE, FBO_SIZE, 0, GL_RGB, GL_FLOAT, NULL); - } - /* I decided to use a GL_COLOR_ATTACHMENT for each pass */ + // I decided to use a GL_COLOR_ATTACHMENT for each pass glEnable(GL_TEXTURE_2D); glEnable(GL_DEPTH_TEST); @@ -621,6 +622,12 @@ void GLStateHolder::genPassTextures() checkGLError("END: genpasstextures"); } +void GLStateHolder::usePassProgram(int i) +{ + passes[i]->useProgram(); +} + + bool GLStateHolder::executePass(int i){ #ifdef DEBUG qDebug() << "Executing pass " << i+1 << " of " << passes.size() ;