Jump to content
  • Advertisement
Sign in to follow this  
abahena

opgl 2d just draw in a windows size nXm pixel 0,0 and 0,1 and so on?

This topic is 2948 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

Hi, I just want to find a way to draw directly in a window pixel by pixel. thanks in advance, Alex

Share this post


Link to post
Share on other sites
Advertisement
Use glOrtho(0, width, 0, height) to setup a coordinate system matching the pixel size of the viewport. From that, you need to be aware of the rasterization rules for points, lines and filled primitives to ensure proper and portable rendering. Pixel perfect rendering is not entirely trivial to get correct.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!