Corners of the screen?
Is there any way to get the coordinates for the screen window? If for example i want to fill the upper-half of the window with an image?
How exactly would i draw the image with OpenGL? Doesn't win32 use pixels and OpenGL units as lenght units? I am not quite sure how i would use the information given by bovinedragon. The only way i can see, is if i draw it with windows, but then i would have to set up my ugly bitmap class again. Is there no other way?
You can use glOrtho() to set the openGL coord system to be exactly the same as the window size in pixels. Then you can draw using pixel coords and it'll work as expected.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement