PDA

View Full Version : display image



08-13-2001, 05:09 AM
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

mikael_aronsson
08-13-2001, 05:26 AM
Hi !

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

Mikael