Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:11 Constructorsconstructor new Resource ( width ?: number , height ?: number ) : Resource Parameters Optional
width : number Optional
height : number Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:55 PropertiesReadonly
destroyed destroyed : boolean
Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:19 internal internal : boolean
Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:26 src src : string
Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:13 Accessorsheight get height () : number Returns number Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:95 valid get valid () : boolean Returns boolean Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:76 width get width () : number Returns number Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:90 Methodsdestroy destroy () : void Returns void Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:119 dispose dispose () : void Returns void Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:113 resize resize ( width : number , height : number ) : void Parameters width : number height : number Returns void Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:71 update update () : void Returns void Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:78 Static
test test ( _source : unknown , _extension ?: string ) : boolean Parameters _source : unknown Optional
_extension : string Returns boolean Defined in node_modules/@pixi/core/lib/textures/resources/Resource.d.ts:125
Base resource class for textures that manages validation and uploading, depending on its type.
Uploading of a base texture to the GPU is required.
Memberof
PIXI