int initGL( GLvoid )
{
/* Enable smooth shading */
glShadeModel( GL_SMOOTH );
/* Set the background black */
glClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
/* Depth buffer setup */
glClearDepth( 1.0f );
/* Enables Depth Testing */
glEnable( GL_DEPTH_TEST );
/* The Type Of Depth Test To Do */
glDepthFunc( GL_LEQUAL );
/* Really Nice Perspective Calculations */
glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST );
buildFont( );
return( TRUE );
}
EDIT: Didnt quite work as i expected, trying to get it to show it in a window with syntax highlighting.
Not sure if this is the right way to display codeso ill give it a shot.
I think the UBB code is like
or [ source ] I can't remember which. (without spaces obviously.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement