• Advertisement
Sign in to follow this  

Set up the projection for 2D drawing?

This topic is 2192 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to figure out how to set up the projection for 2D drawing. I know to use glOrtho, but I'm wondering how I can set up the projection so that (-100.0,-100.0) is the top-left corner of the screen, and (100.0,100.0) is the bottom-right corner of the screen. Can anyone point me in the right direction?

Share this post


Link to post
Share on other sites
Advertisement
That doesn't seem to be working though. I don't know if I'm drawing incorrectly or what, but my rectangle is definitely not showing up where it's supposed to. In fact, it's not showing up at all.

Edit: Figured it out. Turned out I had back-face culling on. No idea why.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement