This is what glBindTexture() is for :)

On Nov 1, 3:15 pm, AFgan <adolfaild...@gmail.com> wrote:
> 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-androidbut
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to