Opengl Es Texture Mapping
I need to draw circles in my Android application. Actually it is a Pacman game and I need to draw tablets. Since there are many tablets on field I decided to draw each tablet with
Solution 1:
The GL_TEXTURE_WRAP_S
and GL_TEXTURE_WRAP_T
texture parameters are set to GL_REPEAT
by default. Set them to GL_CLAMP_TO_EDGE
instead to get the effect you're looking for (see the glTexParameter documentation)
Post a Comment for "Opengl Es Texture Mapping"