Generic destroy methods to be overridden by the subclass
A Useful function that returns a texture of the display object that can then be used to create sprites This can be quite useful if your displayObject is complicated and needs to be reused multiple times.
The displayObject the object will be generated from.
Optionaloptions: IGenerateTextureOptionsGenerate texture options.
OptionalalphaMode?: ALPHA_MODESOptionalanisotropicLevel?: numberOptionalformat?: FORMATSOptionalheight?: numberOptionalmipmap?: MIPMAP_MODESOptionalmultisample?: MSAA_QUALITYThe number of samples of the frame buffer. The default is the renderer's multisample.
OptionalpixiIdPrefix?: stringOptionalregion?: RectangleThe region of the displayObject, that shall be rendered, if no region is specified, defaults to the local bounds of the displayObject.
Optionalresolution?: numberThe resolution / device pixel ratio of the texture being generated. The default is the renderer's resolution.
OptionalresourceOptions?: anyOptionalscaleMode?: SCALE_MODESOptionaltarget?: TARGETSOptionaltype?: TYPESOptionalwidth?: numberOptionalwrapMode?: WRAP_MODESa shiny new texture of the display object passed in
System that manages the generation of textures from the renderer.
Memberof
PIXI