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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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