Skip to content

API / PixiTextureAtlasData

Class: PixiTextureAtlasData ​

Defined in: pixi/PixiTextureAtlasData.ts:35

The PixiJS texture atlas data.

Extends ​

Constructors ​

Constructor ​

ts
new PixiTextureAtlasData(): PixiTextureAtlasData;

Returns ​

PixiTextureAtlasData

Inherited from ​

TextureAtlasData.constructor

Properties ​

hashCode ​

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from ​

TextureAtlasData.hashCode


imagePath ​

ts
imagePath: string;

Defined in: model/TextureAtlasData.ts:66

The image path of the texture atlas.

Inherited from ​

TextureAtlasData.imagePath


name ​

ts
name: string;

Defined in: model/TextureAtlasData.ts:58

The texture atlas name.

Inherited from ​

TextureAtlasData.name

Accessors ​

renderTexture ​

Get Signature ​

ts
get renderTexture(): Texture<TextureSource<any>>;

Defined in: pixi/PixiTextureAtlasData.ts:66

The PixiJS texture.

Returns ​

Texture<TextureSource<any>>

Set Signature ​

ts
set renderTexture(value: Texture<TextureSource<any>>): void;

Defined in: pixi/PixiTextureAtlasData.ts:70

Parameters ​
ParameterType
valueTexture<TextureSource<any>>
Returns ​

void

Methods ​

addTexture() ​

ts
addTexture(value: TextureData): void;

Defined in: model/TextureAtlasData.ts:117

Internal

Parameters ​

ParameterType
valueTextureData

Returns ​

void

Inherited from ​

TextureAtlasData.addTexture


createTexture() ​

ts
createTexture(): TextureData;

Defined in: pixi/PixiTextureAtlasData.ts:55

Internal

Returns ​

TextureData

Overrides ​

TextureAtlasData.createTexture


returnToPool() ​

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns ​

void

Inherited from ​

TextureAtlasData.returnToPool


borrowObject() ​

ts
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 ​

ParameterTypeDescription
objectConstructor() => TThe specify class.

Returns ​

T

Inherited from ​

TextureAtlasData.borrowObject


clearPool() ​

ts
static clearPool(objectConstructor: typeof BaseObject): void;

Defined in: core/BaseObject.ts:111

Clear the cached instances of a specify object pool.

Parameters ​

ParameterTypeDefault valueDescription
objectConstructortypeof BaseObjectnullSpecify class. (Clear all cached instances if not set)

Returns ​

void

Inherited from ​

TextureAtlasData.clearPool


setMaxCount() ​

ts
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 ​

ParameterTypeDescription
objectConstructortypeof BaseObjectThe specify class. (Set all object pools max cache count if not set)
maxCountnumberMax count.

Returns ​

void

Inherited from ​

TextureAtlasData.setMaxCount


toString() ​

ts
static toString(): string;

Defined in: pixi/PixiTextureAtlasData.ts:36

Returns ​

string

Overrides ​

TextureAtlasData.toString

Released under the MIT License.