   Strange Texture mapping problem
As you can see texture is not mapped corectly, why? Im using this code for 2d mode:w = 640;h = 480;Gl.glTexCoord2f(0.0f, 1.0f); Gl.glVertex2f(0, 0);Gl.glTexCoord2f(0.0f, 0.0f); Gl.glVertex2f(0, h);Gl.glTexCoord2f(1.0f, 0.0f); Gl.glVertex2f(w, h);Gl.glTexCoord2f(1.0f, 1.0f); Gl.glVertex2f(w, 0);
  I don't exactly see what's wrong (it's a spinning cube right?), but most probably the texturing coordinates have been flipped. So you coule try:Gl.glTexCoord2f(0.0f, 0.0f); Gl.glVertex2f(0, 0);Gl.glTexCoord2f(0.0f, 1.0f); Gl.glVertex2f(0, h);Gl.glTexCoord2f(1.0f, 1.0f); Gl.glVertex2f(w, h);Gl.glTexCoord2f(1.0f, 0.0f); Gl.glVertex2f(w, 0);;  The problem is that image should look like this:Maybe the problem is in texture loading code?   ;  It's probably the loading code, but check to make sure it's not the actual texture. Many a coder has been tricked by trying to debug working code when the data is borked. [razz]   ;  Ha ha, just found a problem!I forgot to parse picture. I just loaded it with all header & other pixels directly to GL.