[Kde-games-devel] Ksudoku, Kubrik 3D background

Luciano Montanaro mikelima at gmail.com
Fri Jun 20 16:32:42 CEST 2008


>>
> Now here is a strange thing.  gluOrtho2D has params left, right, bottom,
> top, in that order, and you are writing gluOrtho2D (0.0, 1.0, 1.0, 0.0),
> which works.  But should not 0.0 be the bottom and 1.0 the top in OpenGL
> co-ordinates?  I was writing gluOrtho2D (0.0, width, 0.0, height).

Yes, but the image is stored in the opposite direction... so you need
to flip the y axis to see it correctly.

If you use (0.0, 1.0, 0.0, 1.0), the image will be  drawn upside down, I think.
Maybe it falls outside the viewport?

-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams


More information about the kde-games-devel mailing list