mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 10:04:38 +00:00
code restyling
This commit is contained in:
parent
3516fb7a4b
commit
bb729484f6
@ -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() ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user