Opengl ES sliding texture animation -
i d animate texture on vertex left right. how can this?
my old code is:
float texcoords[] = { itextcoord, 0.0f, itextcoord, 1.0f, itextcoord+1.0f, 0.0f, itextcoord+1.0f, 1.0f, }; this.settexturecoords(texcoords);
but isnt best:(
you can use glmatrixmode(gl_texture_matrix)
, gltranslatef()
.
Comments
Post a Comment