Update of /cvsroot/csdopenglnet/csdOpenGL/GL
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20295/GL
Modified Files:
csdGL.cs
Log Message:
Kai forced me to remove the Debug-calls
Index: csdGL.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/csdGL.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** csdGL.cs 5 Aug 2004 21:13:56 -0000 1.2
--- csdGL.cs 5 Nov 2004 15:45:36 -0000 1.3
***************
*** 25,55 ****
*/
public void checkErrors() {
- Debug.Indent();
- Debug.WriteLine( "Entering csdGL.checkErros()" );
-
uint error = glGetError();
if (error==GL_INVALID_ENUM) {
! Debug.WriteLine( "OpenGL-Error: GL_INVALID_ENUM" );
throw new GLInvalidEnumException();
} else if (error==GL_INVALID_VALUE) {
! Debug.WriteLine( "OpenGL-Error: GL_INVALID_VALUE" );
throw new GLInvalidValue();
} else if (error==GL_INVALID_OPERATION) {
! Debug.WriteLine( "OpenGL-Error: GL_INVALID_OPERATION" );
throw new GLInvalidOperation();
} else if (error==GL_STACK_OVERFLOW) {
! Debug.WriteLine( "OpenGL-Error: GL_STACK_OVERFLOW" );
throw new GLStackOverflow();
} else if (error==GL_STACK_UNDERFLOW) {
! Debug.WriteLine( "OpenGL-Error: GL_STACK_UNDERFLOW" );
throw new GLStackUnderflow();
} else if (error==GL_OUT_OF_MEMORY) {
! Debug.WriteLine( "OpenGL-Error: GL_OUT_OF_MEMORY" );
throw new GLOutOfMemory();
}
-
- Debug.WriteLine( "Exiting csdGL.checkErros()" );
- Debug.Unindent();
}
--- 25,49 ----
*/
public void checkErrors() {
uint error = glGetError();
if (error==GL_INVALID_ENUM) {
! Console.WriteLine( "OpenGL-Error: GL_INVALID_ENUM" );
throw new GLInvalidEnumException();
} else if (error==GL_INVALID_VALUE) {
! Console.WriteLine( "OpenGL-Error: GL_INVALID_VALUE" );
throw new GLInvalidValue();
} else if (error==GL_INVALID_OPERATION) {
! Console.WriteLine( "OpenGL-Error: GL_INVALID_OPERATION" );
throw new GLInvalidOperation();
} else if (error==GL_STACK_OVERFLOW) {
! Console.WriteLine( "OpenGL-Error: GL_STACK_OVERFLOW" );
throw new GLStackOverflow();
} else if (error==GL_STACK_UNDERFLOW) {
! Console.WriteLine( "OpenGL-Error: GL_STACK_UNDERFLOW" );
throw new GLStackUnderflow();
} else if (error==GL_OUT_OF_MEMORY) {
! Console.WriteLine( "OpenGL-Error: GL_OUT_OF_MEMORY" );
throw new GLOutOfMemory();
}
}
***************
*** 60,74 ****
*/
public void ignoreErrors() {
- Debug.Indent();
- Debug.WriteLine( "Entering csdGL.ignoreErros()" );
-
try {
checkErrors();
} catch ( GLException e ) {
! Debug.WriteLine( e.ToString() );
}
-
- Debug.WriteLine( "Exiting csdGL.ignoreErrors()" );
- Debug.Unindent();
}
--- 54,63 ----
*/
public void ignoreErrors() {
try {
checkErrors();
} catch ( GLException e ) {
! Console.Write( "GL.ignoreErrors() #59: ");
! Console.WriteLine( e.ToString() );
}
}
***************
*** 80,86 ****
*/
protected bool getFlag( uint flag ) {
- Debug.Indent();
- Debug.WriteLine( "Entering csdGL.getFlag( uint )" );
-
bool result = GL_TRUE==glIsEnabled( flag );
--- 69,72 ----
***************
*** 88,95 ****
checkErrors();
}
-
- Debug.WriteLine( "Exiting csdGL.getFlag( uint )*" );
- Debug.Unindent();
-
return result;
}
--- 74,77 ----
***************
*** 103,109 ****
*/
protected void setFlag( uint flag, bool state ) {
- Debug.Indent();
- Debug.WriteLine( "Entering csdGL.setFlag( uint, bool )" );
-
if (state) {
glEnable( flag );
--- 85,88 ----
***************
*** 115,121 ****
checkErrors();
}
-
- Debug.WriteLine( "Exiting csdGL.setFlag( uint, bool )" );
- Debug.Unindent();
}
--- 94,97 ----
|