display image

Hi,
I am a new user for openGl, and I am trying to display images. Do I call only glDrawPixels(…); or I have to cal the projections before I call glDrawPixels?

glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glFrustum(…);
glDrawPixels(…);

or Just call
glDrawPixels(…) only

thanks

Hi !

You must setup both the projection matrix and the modelview matrix correct before you can call glDrawPixels.

Mikael