API / PixiTextureData
类: PixiTextureData
定义于: pixi/PixiTextureAtlasData.ts:102
Internal
构造函数
构造函数
ts
new PixiTextureData(): PixiTextureData;返回
PixiTextureData
继承自
ts
TextureData.constructor属性
frame
ts
frame: Rectangle = null;定义于: model/TextureAtlasData.ts:145
继承自
ts
TextureData.framehashCode
ts
readonly hashCode: number;分配给此实例的唯一标识号。
继承自
ts
TextureData.hashCodename
ts
name: string;定义于: model/TextureAtlasData.ts:142
继承自
ts
TextureData.nameparent
ts
parent: TextureAtlasData;定义于: model/TextureAtlasData.ts:144
继承自
ts
TextureData.parentregion
ts
readonly region: Rectangle;定义于: model/TextureAtlasData.ts:143
继承自
ts
TextureData.regionrenderTexture
ts
renderTexture: Texture<TextureSource<any>> = null;定义于: pixi/PixiTextureAtlasData.ts:107
rotated
ts
rotated: boolean;定义于: model/TextureAtlasData.ts:141
继承自
ts
TextureData.rotated方法
copyFrom()
ts
copyFrom(value: TextureData): void;定义于: model/TextureAtlasData.ts:155
参数
| 参数 | 类型 |
|---|---|
value | TextureData |
返回
void
继承自
ts
TextureData.copyFromreturnToPool()
ts
returnToPool(): void;清除该实例的所有数据并将其返还对象池。
返回
void
继承自
ts
TextureData.returnToPoolborrowObject()
ts
static borrowObject<T>(objectConstructor: () => T): T;从对象池中获取特定类的实例。
类型参数
| 类型参数 |
|---|
T extends BaseObject |
参数
| 参数 | 类型 | 描述 |
|---|---|---|
objectConstructor | () => T | 特定的类。 |
返回
T
继承自
ts
TextureData.borrowObjectclearPool()
ts
static clearPool(objectConstructor: typeof BaseObject): void;清除特定对象池的缓存实例。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
objectConstructor | typeof BaseObject | null | 特定的类。 (不设置则清除所有缓存的实例) |
返回
void
继承自
ts
TextureData.clearPoolcreateRectangle()
ts
static createRectangle(): Rectangle;定义于: model/TextureAtlasData.ts:137
返回
继承自
ts
TextureData.createRectanglesetMaxCount()
ts
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;设置特定对象池的最大缓存数量。
参数
| 参数 | 类型 | 描述 |
|---|---|---|
objectConstructor | typeof BaseObject | 特定的类。 (不设置则设置所有对象池的最大缓存数量) |
maxCount | number | 最大缓存数量。 |
返回
void
继承自
ts
TextureData.setMaxCounttoString()
ts
static toString(): string;定义于: pixi/PixiTextureAtlasData.ts:103
返回
string
重写了
ts
TextureData.toString