In Android OpenGL ES, I want to be able to switch textures for a given
Rectangle. I have one rect and I put two textures, depending on
different conditions. I just want to switch between textures.

I followed this code to create the textures:
http://blog.poweredbytoast.com/loading-opengl-textures-in-android but
it seems that this is only for one texture.

If I use only one texture, it renders fine, but then I don't know how
to tell the rect to use another texture (same rect, different
texture). Do I do something like "setTexture" with the ID that is
generated in loadTextures()? Do I have to have an array with texture
names (numbers) that I then change .. I just don't get it..

Help is really appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to