Re: [android-developers] Basic GL Surface View example
On 10/01/2013 22:32, bob wrote:
> Why does the Basic GL Surface View example make a call like this?
>
>
> GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER,
> GLES20.GL_NEAREST);
>
> Doesn't the f in glTexParameterf imply that the last parameter is a float?
>
> But, it is an int:
>
> public static final int GL_NEAREST = 0x2600;
>
>
Perhaps it's a typo.
If you test the result, you should get GL_INVALID_ENUM
See: http://www.khronos.org/opengles/sdk/docs/man/
-
Fabien
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home