Sign in to follow this  
MARS_999

Why not use floats for glTexPara*

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this