Skip to main content

Class: TTexture

Defined in: graphics/texture.ts:25

Implements​

Constructors​

Constructor​

new TTexture(): TTexture

Returns​

TTexture

Properties​

uuid?​

optional uuid?: string

Defined in: graphics/texture.ts:26

Accessors​

filter​

Get Signature​

get filter(): TTextureFilter

Defined in: graphics/texture.ts:35

Returns the filter used for the texture, this cannot be changed after texture is loaded

Returns​

TTextureFilter


wrapS​

Get Signature​

get wrapS(): TTextureWrap

Defined in: graphics/texture.ts:42

Returns the wrap mode for the S coordinate, this cannot be changed after texture is loaded

Returns​

TTextureWrap


wrapT​

Get Signature​

get wrapT(): TTextureWrap

Defined in: graphics/texture.ts:49

Returns the wrap mode for the T coordinate, this cannot be changed after texture is loaded

Returns​

TTextureWrap

Methods​

loadWithJob()​

loadWithJob(jobs, url, config?): Promise<void>

Defined in: graphics/texture.ts:53

Parameters​

jobs​

TJobManager

url​

string

config?​

TTextureOptions

Returns​

Promise<void>

Implementation of​

IJobAsset.loadWithJob


setImageBitmap()​

setImageBitmap(jobs, image, options?): Promise<void>

Defined in: graphics/texture.ts:96

Parameters​

jobs​

TJobManager

image​

ImageBitmap

options?​

TTextureOptions

Returns​

Promise<void>