PDA

View Full Version : pictureinverted



sgiuser
08-20-2001, 10:40 AM
hello,
I am new to opensgl. I am able to display my image using glDrawPixel(w,h,...);
the problem is the picture is upside down? Any suggestion.
I appreciate the help
thanks

DFrey
08-20-2001, 11:50 AM
Turn the picture upside down. Many image formats store the image bottom up so you need to flip the image.

Gavin
08-21-2001, 04:42 AM
image2[((image_height - x)*y) + x] = image[ (x*y) + x];

or something along those lines if you see what I mean.