Change Texture in Runtime

Started by angieIe, September 06, 2016, 04:00:27 AM

Previous topic - Next topic

angieIe

Hai, i have to change texture when user click a button. How to change texture in runtime? i try add texture to texture manager and setTexture in onDrawFrame, but it not working, have error out of memory. Thank you.

EgonOlsen

Then your texture is simply too large. The way you are doing it is actually fine, just make sure that the texture has a reasonable size. How large was it?