OpenGL Drawing Textures?

You need to initialize GLUT before calling OpenGL functions like glEnable. Otherwise they won't work, because they require an OpenGL context to be present, and glutCreateWindow is the method that creates such a context.

Thank you. I swapped the two 'segments' of code in Display::Init around, but to no avail. Is there something else too?

– Motig Apr 8 at 8:07.

1) you need to initialize and create window before doing any opengl call 2) Your call to gluBuild2DMipmaps is wrong. The target has to be GLU_TEXTURE_2D 3) when finish with rendering (after glEnd();), call glDisable(GL_TEXTURE_2D); You can also check for opengl error using glGetError after every opengl call. That should tell you which call failed and why.

Check the reference pages of the failed call.

He's calling gluBuild2DMipmaps. – Stefan Monov Apr 8 at 8:03 @Stefan Yes, I figured out. But his call is wrong – VJovic Apr 8 at 8:07 thank you, I changed the function call to gluBuild2DMipmaps(GLU_TEXTURE_2D but I'm getting "GLU_TEXTURE_2D is undefined"... What include(s) am I missing?

– Motig Apr 8 at 8:14 @Motig should be in glu. H – VJovic Apr 8 at 8:24 img855.imageshack. Us/img855/4332/glu.

Png :) Edit: Okay it's in the wrong function there but you get the idea – Motig Apr 8 at 8:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions