melonJS
    Preparing search index...

    Variable TEXTURE2D_DESTROYEDConst

    TEXTURE2D_DESTROYED: "texture2d.destroyed"

    Fired when a Texture2d asset is destroyed, with its backing drawable source. GPU-side caches keyed by source image — e.g. the lit batcher's per-image normal-map textures — subscribe to release the GL texture and drop their entry, so destroying a texture (a per-level NoiseTexture2d, for instance) doesn't leak GPU memory.

    Data passed: the destroyed texture's backing canvas/image

    event.on