API / PixiTextureData
Class: PixiTextureData
Defined in: pixi/PixiTextureAtlasData.ts:102
Internal
Constructors
Constructor
new PixiTextureData(): PixiTextureData;Returns
PixiTextureData
Inherited from
TextureData.constructorProperties
frame
frame: Rectangle = null;Defined in: model/TextureAtlasData.ts:145
Inherited from
TextureData.framehashCode
readonly hashCode: number;Defined in: core/BaseObject.ts:156
A unique identification number assigned to the object.
Inherited from
TextureData.hashCodename
name: string;Defined in: model/TextureAtlasData.ts:142
Inherited from
TextureData.nameparent
parent: TextureAtlasData;Defined in: model/TextureAtlasData.ts:144
Inherited from
TextureData.parentregion
readonly region: Rectangle;Defined in: model/TextureAtlasData.ts:143
Inherited from
TextureData.regionrenderTexture
renderTexture: Texture<TextureSource<any>> = null;Defined in: pixi/PixiTextureAtlasData.ts:107
rotated
rotated: boolean;Defined in: model/TextureAtlasData.ts:141
Inherited from
TextureData.rotatedMethods
copyFrom()
copyFrom(value: TextureData): void;Defined in: model/TextureAtlasData.ts:155
Parameters
| Parameter | Type |
|---|---|
value | TextureData |
Returns
void
Inherited from
TextureData.copyFromreturnToPool()
returnToPool(): void;Defined in: core/BaseObject.ts:167
Clear the object and return it back to object pool。
Returns
void
Inherited from
TextureData.returnToPoolborrowObject()
static borrowObject<T>(objectConstructor: () => T): T;Defined in: core/BaseObject.ts:136
Get an instance of the specify class from object pool.
Type Parameters
| Type Parameter |
|---|
T extends BaseObject |
Parameters
| Parameter | Type | Description |
|---|---|---|
objectConstructor | () => T | The specify class. |
Returns
T
Inherited from
TextureData.borrowObjectclearPool()
static clearPool(objectConstructor: typeof BaseObject): void;Defined in: core/BaseObject.ts:111
Clear the cached instances of a specify object pool.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
objectConstructor | typeof BaseObject | null | Specify class. (Clear all cached instances if not set) |
Returns
void
Inherited from
TextureData.clearPoolcreateRectangle()
static createRectangle(): Rectangle;Defined in: model/TextureAtlasData.ts:137
Returns
Inherited from
TextureData.createRectanglesetMaxCount()
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;Defined in: core/BaseObject.ts:72
Set the maximum cache count of the specify object pool.
Parameters
| Parameter | Type | Description |
|---|---|---|
objectConstructor | typeof BaseObject | The specify class. (Set all object pools max cache count if not set) |
maxCount | number | Max count. |
Returns
void
Inherited from
TextureData.setMaxCounttoString()
static toString(): string;Defined in: pixi/PixiTextureAtlasData.ts:103
Returns
string
Overrides
TextureData.toString