Return to Starling Playback Library
changeTexture vs texture and disposing old texture
3 posts
• Page 1 of 1
changeTexture vs texture and disposing old texture
In my project I would like to load an image dynamically and exchange it with one inside GAF atlas.
What is the best? Do I need to use changeTexture method or .texture setter property?
Furthermore, how do I dispose the old texture?
It looks like textures are organized in atlases, so if I dispose the single texture I am replacing, it won't dispose it since it's a subtexture from the atlas. That would require to dispose the full atlas.
I'd like to have your thought on the subject.
What is the best? Do I need to use changeTexture method or .texture setter property?
Furthermore, how do I dispose the old texture?
It looks like textures are organized in atlases, so if I dispose the single texture I am replacing, it won't dispose it since it's a subtexture from the atlas. That would require to dispose the full atlas.
I'd like to have your thought on the subject.
-
Gigi Marzullo - Posts: 20
- Joined: March 10th, 2017, 4:42 pm
-
Назар Левицкий - Posts: 12
- Joined: June 6th, 2014, 12:01 am
Re: changeTexture vs texture and disposing old texture
I noticed that if I change the texture I lose the filters...
Do I need to reapply the filters somehow? how?
Thanks.
Do I need to reapply the filters somehow? how?
Thanks.
-
Gigi Marzullo - Posts: 20
- Joined: March 10th, 2017, 4:42 pm
3 posts
• Page 1 of 1
Return to Starling Playback Library
Who is online
Users browsing this forum: No registered users and 1 guest