Thank you for your reply. What am I doing wrong in this code? All I see is a white square:
void RenderScene1(void)
{
//set up viewport and the projection matrix. clear screen
glViewport(20,80,500,500);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0,500,0,500,100,-100);
glEnable(GL_SCISSOR_TEST);
glScissor(20,80,500,500);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
//check for input and calculate new positions for scene objects
getInput();
//render the background
glTexImage2D(GL_TEXTURE_2D, 0, 3, MainBitmapInfo->bmiHeader.biWidth,
MainBitmapInfo->bmiHeader.biHeight,
0,
GL_BGR_EXT,
GL_UNSIGNED_BYTE,
MainBitmap);
// glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S, GL_CLAMP );
// glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T, GL_CLAMP );
glBegin(GL_QUADS);
glVertex3f(0,0,0);
glVertex3f(0,500,0);
glVertex3f(500,500,0);
glVertex3f(500,0,0);
glVertex3f(0,0,0);
glEnd();