Hi all,

I'm quite new to both OpenGL and OS X, and am trying to get a very (VERY) simple project running. I'm talking coloured background, defined width-height window simple. So far I have a project compiling and executing, but the draw seems to have no effect, and debugging is difficult.

The project uses the X11 shell.
Here are the init and draw functions, ripped straight from a Nehe tutorial:

{code}
GLvoid InitGL(GLvoid) {
glShadeModel(GL_SMOOTH); // Enables Smooth Shading
glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Black Background
glClearDepth(1.0f); // Depth Buffer Setup
glEnable(GL_DEPTH_TEST); // Enables Depth Testing
glDepthFunc(GL_LEQUAL);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
}

GLvoid DrawGLScene(GLvoid)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
}
{code}

The result is a blank, white window. Can anyone give me any suggestions as to where I might be going wrong?


Thanks