TextureResource

lumin. TextureResource

Texture Resource - Loads and Holds a Texture resource

Extends

Methods

getBasePath() → {string}

Inherited From:

Gets the base path of the resource.

Returns:

Base path

Type
string

getFileName() → {string}

Inherited From:

Gets the FileName Associated with this resource.

Returns:

Filename

Type
string

getHeight() → {number}

Get the height of this texture resource.

Returns:
Type
number

getLoadStatus() → {lumin.resources.LoadStatus}

Inherited From:

Return a int that contains the result of loading this resource.

Returns:

int with the result value.

Type
lumin.resources.LoadStatus

getResourceId() → {BigInt}

Inherited From:

Returns the Unique ID of this resource

Returns:

Resource ID

Type
BigInt

getTextureDesc() → {lumin.Desc2d}

Get the descriptor used to initialize this.

Returns:
Type
lumin.Desc2d

getUnlitTex2dShader() → {lumin.utils.ShaderType}

Get the shader to use for rendering this resource as an unlit, textured mesh.

Returns:
Type
lumin.utils.ShaderType

getWidth() → {number}

Get the width of this texture resource.

Returns:
Type
number

isResourceValid() → {boolean}

Inherited From:

Returns True if the Resource was successfully loaded

Loading only happens on the server-side so this call is
only useful to the server

Returns:

TRUE = Successfully loaded

Type
boolean