Skip to content

API / PixiTextureData

Class: PixiTextureData

Defined in: pixi/PixiTextureAtlasData.ts:102

Internal

Extends

  • TextureData

Constructors

Constructor

ts
new PixiTextureData(): PixiTextureData;

Returns

PixiTextureData

Inherited from

ts
TextureData.constructor

Properties

frame

ts
frame: Rectangle = null;

Defined in: model/TextureAtlasData.ts:145

Inherited from

ts
TextureData.frame

hashCode

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from

ts
TextureData.hashCode

name

ts
name: string;

Defined in: model/TextureAtlasData.ts:142

Inherited from

ts
TextureData.name

parent

ts
parent: TextureAtlasData;

Defined in: model/TextureAtlasData.ts:144

Inherited from

ts
TextureData.parent

region

ts
readonly region: Rectangle;

Defined in: model/TextureAtlasData.ts:143

Inherited from

ts
TextureData.region

renderTexture

ts
renderTexture: Texture<TextureSource<any>> = null;

Defined in: pixi/PixiTextureAtlasData.ts:107


rotated

ts
rotated: boolean;

Defined in: model/TextureAtlasData.ts:141

Inherited from

ts
TextureData.rotated

Methods

copyFrom()

ts
copyFrom(value: TextureData): void;

Defined in: model/TextureAtlasData.ts:155

Parameters

ParameterType
valueTextureData

Returns

void

Inherited from

ts
TextureData.copyFrom

returnToPool()

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns

void

Inherited from

ts
TextureData.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

ts
TextureData.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

ts
TextureData.clearPool

createRectangle()

ts
static createRectangle(): Rectangle;

Defined in: model/TextureAtlasData.ts:137

Returns

Rectangle

Inherited from

ts
TextureData.createRectangle

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

ts
TextureData.setMaxCount

toString()

ts
static toString(): string;

Defined in: pixi/PixiTextureAtlasData.ts:103

Returns

string

Overrides

ts
TextureData.toString

Released under the MIT License.