Adolf
Adolf

Reputation: 1

Android OpenGL ES Multiple Textures for one rect

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: link text

and they render fine, but then I don't know how to tell the given rect to use another 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..

Upvotes: 0

Views: 1485

Answers (1)

genpfault
genpfault

Reputation: 52084

glBindTexture().

Upvotes: 1

Related Questions