Test

Started by
1 comment, last by CipherCraft 16 years, 6 months ago
Not sure if this is the right way to display codeso ill give it a shot.

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.
Advertisement
I think the UBB code is like or [ source ] I can't remember which. (without spaces obviously.
The forum FAQ will tell you everything.

hth,
CipherCraft

This topic is closed to new replies.

Advertisement