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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -