Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

Why not use floats for glTexPara*

This topic is 4445 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 been seeing alot of people using glTexParameteri instead of glTexParameterf. Why is this? glTexParameteri have the same quality of glTexParameterf just faster? I thought float would be a better choice for the GPU? Thanks for anyone helping clear up my confusion.

Share this post


Link to post
Share on other sites
Advertisement
Of the non-vector version, only the texture prioroty state takes a float as the actual value, so it doesn't even make sense to me to set states like filtering and wrapping mode using a floating point value parameter. GL_LINEAR, GL_REPEAT and so on are all enumerants, or integers, so use the integer version of the function aswell.

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!