Problems rotating a sprite using drawtexture (OpenGl ES Android) -
i´m trying rotate sprite using drawtexture nothing happens. i´m using following code:
gl.glrotatef(90, 0, 0, 1.0f); gl.glbindtexture(gl10.gl_texture_2d, textureid); (gl11ext) gl).gldrawtexfoes(x, y, z, width, height);
the texture drawn screen not rotated... anyone? :)
from oes_draw_texture extension:
xs , ys given directly in window (viewport) coordinates.
so passed in coordinates not transformed modelview , projection matrices, glrotatef changes. in short, extension not support rotated sprites.
if want those, simplest draw standard rotated quads instead.
Comments
Post a Comment