opengl question screen coordinates
i just started using opengl and im trying to make a ball bounce around the edges of the screen in the x y plane. however i cant figure out how im suppose to knwo what the coordinates of the edges of the screen are. i did figure them out by trial and error but how are you supposed to know? can someone explain.
thanks
Use an orthographic projection matrix set to the size of the screen in pixels (see glOrtho).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement