glTexParameter

Hi,
two simple question :wink:

  1. Why does the glTexParameterf exist?
    The param value, that in the function signature is a float, must always be a GL flag that is always int; so i don’t get why i should use a float. :oops:

  2. This code works:


glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);

but i can say for sure that GL_LINEAR is not the fixed point value of GL_LINEAR, cause they are the same :smiley:
So i gues that the glTexParameterx is not the fixed point version of the glTexParameterf, but is integer version. Am i doing an error??

EDIT:
If the glTexParameterx is the fixed point version i would expect to write something like this:


glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, toFixedPoint(GL_LINEAR));

Thanks :wink:

For consistency with desktop OpenGL.

So i gues that the glTexParameterx is not the fixed point version of the glTexParameterf, but is integer version. Am i doing an error??

From the OpenGL ES 1.1 full spec:
“Regardless of language binding, the enum type converts to
fixed-point without scaling”

For consistency with desktop OpenGL.

[/quote]

What is the point of glTexParameterf on desktop then?

To set the texture border colour, for example.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.