OpenGL texture not mapping

Decided to finally start learning 3D!

I'm able to draw 4 blue walls around the camera, but I'm unable to get a wood texture mapped onto it. The texture is 1024x1024. My LoadBitmap function seems to work fine, so the problem is probably how I'm setting everything up.

Can't get code insertion to work for some reason so I just posted it to http://pastebin.com/paiuY9pe
You should use this great tutorial, it has a texture section - http://learnopengl.com/
Sorry I can't help you Angeljruiz, but I do agree with TarikNeaj, that link teaches modern OpenGL and not the deprecated "immediate mode" OpenGL.

Would suggest https://www.opengl.org/discussion_boards/forum.php for better help, btw.
Thanks :)
Topic archived. No new replies allowed.