Oihane
06-07-2002, 03:53 AM
I'm trying to center an image in my window, but I'm not able to do that.
I have the xmin, xmax, y min, y max, zmin, zmax of the image, and I've got window's vertex, using rect->bottom, etc.
Then, I've tried to use glOrtho, but not in the correct way, I'm afraid.
Any sugestion?
Thank you,
Oihane
I have the xmin, xmax, y min, y max, zmin, zmax of the image, and I've got window's vertex, using rect->bottom, etc.
Then, I've tried to use glOrtho, but not in the correct way, I'm afraid.
Any sugestion?
Thank you,
Oihane