Jump to content
  • Advertisement
Sign in to follow this  
Tera_Dragon

2d mode and pixels (sorry)

This topic is 5475 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 know this was a sticky, and I have searched for it, but I can't find it :-( So I'm sorry but I'll have to ask this, how can I use pixel coords instead of the OGL coords? I was thinking that I would just have to put the projection transformation to ortho, but I doubt that this will change the coords system. Again, I am sorry about asking this question Tera_Dragon

Share this post


Link to post
Share on other sites
Advertisement
You would indeed have to change to ortho mode to use pixel coords. Coords can then be specifed as:

glVertex2i( int x, int y);

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!