pixi-omber-gltf2-vector icon indicating copy to clipboard operation
pixi-omber-gltf2-vector copied to clipboard

destroy() and other clean-ups

Open my2iu opened this issue 6 years ago • 1 comments

Look at how to clean-up resources properly. Perhaps make glTF files into Texture objects so that they can reuse the Texture garbage collection stuff too?

my2iu avatar May 09 '18 07:05 my2iu

It looks like destroy() isn't too important since it only cleans-up stuff that could be cleaned up through normal garbage collection. I did implement a dispose() for cleaning up GL state. I should probably implement multiple ways for it to be called, like Sprite does though.

my2iu avatar May 16 '18 16:05 my2iu