Jump to content
  • Advertisement
Sign in to follow this  
androun

OpenGL definition of pixels

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

when I trace a form like sphere,cube,etc... ,i don't know the pixelwidth or the pixelheight ,i think the parametres of pixels was definited with opengl himself, the question is how can i change the pixelwidth and the pixelheight in opengl? for example pixelwidth=0.0112f=pixelheight thanks

Share this post


Link to post
Share on other sites
Advertisement
If, by "width" of a pixel, you mean the size in openGL units, then the GL_PROJECTION matrix is the part of the API which maps viewed objects to the screen. This is where you will have to set the correct dimensions, probably as an orthogonal matrix with the correct scale.

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!