nehe texture mapping

Hey, I have been going through the NeHe tutorial and got up to Texture Mapping, I typed it all out into MSVC++ etc, compiled and ran the program but the texture did not show up, just a black screen.

Click down here to download the sourcecode

Any help would be great thanks! :slight_smile:

in your DrawGLScene,
change this:
glTranslatef(0.0f, 0.0f, 5.0f);
with this:
glTranslatef(0.0f, 0.0f, -5.0f);

you simply were drawing outside of the visible screen :wink:

Thanks very much :smiley: