destroy(options = false)
    {
        super.destroy(options);

        const destroyTexture = typeof options === 'boolean' ? options : options && options.texture;

        if (destroyTexture)
        {
            this.texture.destroy(options);
        }

        this.tint = null;
        this.blendMode = null;
        this.shader = null;
        this.vertexData = null;

        this._texture = null;

        if (this._onTextureUpdateBinding)
        {
            this._onTextureUpdateBinding.detach();
            this._onTextureUpdateBinding = null;
        }
    }
/**
     * Destroys the sprite.
     *
     * @param {object|boolean} options - A boolean value will act as if all options are set to that value.
     * @param {boolean} options.texture=false - If true the texture is also destroyed.
     * @param {boolean} options.baseTexture=false - If true the texture's base texture is also destroyed.
     */
Destroys the sprite.
@param {object|boolean} options - A boolean value will act as if all options are set to that value.
@param {boolean} options.texture=false - If true the texture is also destroyed.
@param {boolean} options.baseTexture=false - If true the texture's base texture is also destroyed.
Destroys the sprite . @param { object|boolean } options - A boolean value will act as if all options are set to that value . @param { boolean } options . texture = false - If true the texture is also destroyed . @param { boolean } options . baseTexture = false - If true the texture ' s base texture is also destroyed .
destroy(options = false)
    {
        super.destroy(options);
        const destroyTexture = typeof options === 'boolean' ? options : options && options.texture;
        if (destroyTexture)
        {
            this.texture.destroy(options);
        }
        this.tint = null;
        this.blendMode = null;
        this.shader = null;
        this.vertexData = null;
        this._texture = null;
        if (this._onTextureUpdateBinding)
        {
            this._onTextureUpdateBinding.detach();
            this._onTextureUpdateBinding = null;
        }
    }
destroy ( options = false ) { super . destroy ( options ) ; const destroyTexture = typeof options === 'boolean' ? options : options && options . texture ; if ( destroyTexture ) { this . texture . destroy ( options ) ; } this . tint = null ; this . blendMode = null ; this . shader = null ; this . vertexData = null ; this . _texture = null ; if ( this . _onTextureUpdateBinding ) { this . _onTextureUpdateBinding . detach ( ) ; this . _onTextureUpdateBinding = null ; } }
Destroys the sprite.
Destroys the sprite .