Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Change Texture in Runtime
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Change Texture in Runtime (Read 1666 times)
angieIe
byte
Posts: 29
Change Texture in Runtime
«
on:
September 06, 2016, 04:00:27 am »
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.
Logged
EgonOlsen
Administrator
quad
Posts: 12295
Re: Change Texture in Runtime
«
Reply #1 on:
September 06, 2016, 09:26:20 am »
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?
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Change Texture in Runtime