Original Post
Hi! I'm a newbie here so please go easy on me. Anyway, I just browsed how to create 2d surfaces on OpenGL and now my problem is, I can't seem to put textures in these surfaces. Oh, and I've used the famous "2D in OpenGL code"
int DrawGLScene(GLvoid)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glEnable2D();
glBindTexture(GL_TEXTURE_2D, texture[0]);
glBegin(GL_QUADS);
glTexCoord2d(0, 0); glVertex2d(0, 0);
glTexCoord2d(640, 0); glVertex2d(640,0);
glTexCoord2d(640, 480); glVertex2d(640, 480);
glTexCoord2d(0, 480); glVertex2d(0, 480);
glEnd();
glDisable2D();
return TRUE;
}