Skip to content

RoyInterface / Exports / scene/execution/RoyMaterialExecution / RoyMaterialExecution

Class: RoyMaterialExecution

scene/execution/RoyMaterialExecution.RoyMaterialExecution

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new RoyMaterialExecution(scene): RoyMaterialExecution

Parameters

NameType
sceneRoyScene

Returns

RoyMaterialExecution

Overrides

RoyExecution.constructor

Properties

s_handleID

Static Protected s_handleID: number = 0

Inherited from

RoyExecution.s_handleID


m_handleID

Protected m_handleID: number = 0

Inherited from

RoyExecution.m_handleID


m_compTypeName

Protected m_compTypeName: string = ''

Inherited from

RoyExecution.m_compTypeName


m_compClassifyType

Protected m_compClassifyType: ECT_MATERIAL = RoyExecutionClassifyType.ECT_MATERIAL

Inherited from

RoyExecution.m_compClassifyType


m_scene

Protected m_scene: RoyScene = null

Inherited from

RoyExecution.m_scene


m_dirtyFrameId

Protected m_dirtyFrameId: number = 0

Inherited from

RoyExecution.m_dirtyFrameId


m_dirtySign

Protected m_dirtySign: number = 0

Inherited from

RoyExecution.m_dirtySign


m_enabled

Protected m_enabled: boolean = true

Inherited from

RoyExecution.m_enabled


m_priority

Protected m_priority: number = 0

Inherited from

RoyExecution.m_priority


m_uniformMap

Protected m_uniformMap: Map<string, RoyExecutionUniformInfo>

Inherited from

RoyExecution.m_uniformMap


m_relMaterialMap

Protected m_relMaterialMap: Map<number, RoyMaterialBase>

Accessors

handleID

get handleID(): number

Returns

number

Inherited from

RoyExecution.handleID


compTypeName

get compTypeName(): string

Returns

string

Inherited from

RoyExecution.compTypeName


compClassifyType

get compClassifyType(): ECT_MATERIAL

Returns

ECT_MATERIAL

Inherited from

RoyExecution.compClassifyType


scene

get scene(): RoyScene

Returns

RoyScene

Inherited from

RoyExecution.scene


dirtyFrameId

get dirtyFrameId(): number

Returns

number

Inherited from

RoyExecution.dirtyFrameId


dirtySign

get dirtySign(): number

Returns

number

Inherited from

RoyExecution.dirtySign


enabled

get enabled(): boolean

Returns

boolean

Inherited from

RoyExecution.enabled

set enabled(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

RoyExecution.enabled


priority

get priority(): number

Returns

number

Inherited from

RoyExecution.priority

set priority(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

RoyExecution.priority


uniformMap

get uniformMap(): Map<string, RoyExecutionUniformInfo>

Returns

Map<string, RoyExecutionUniformInfo>

Inherited from

RoyExecution.uniformMap


relMaterialMap

get relMaterialMap(): Map<number, RoyMaterialBase>

Returns

Map<number, RoyMaterialBase>

Methods

declareUniform

declareUniform(name, type, defaultVal, size?, filter?, operType?): void

Parameters

NameType
namestring
typeRoyMatUniformType
defaultValUniformType
size?number
filter?number
operType?RoyExecutionOperType

Returns

void

Inherited from

RoyExecution.declareUniform


setUniform

setUniform(name, value): void

Parameters

NameType
namestring
valueUniformType

Returns

void

Inherited from

RoyExecution.setUniform


hasUniform

hasUniform(name): boolean

Parameters

NameType
namestring

Returns

boolean

Inherited from

RoyExecution.hasUniform


getUniform

getUniform(name): UniformType

Parameters

NameType
namestring

Returns

UniformType

Inherited from

RoyExecution.getUniform


execUniform

execUniform(name, originData): UniformType

Parameters

NameType
namestring
originDataUniformType

Returns

UniformType

Inherited from

RoyExecution.execUniform


execUniforms

execUniforms(executionList, uniformName, originData): UniformType

Parameters

NameType
executionListRoyExecution[]
uniformNamestring
originDataUniformType

Returns

UniformType

Inherited from

RoyExecution.execUniforms


sameContent

sameContent(other): boolean

Parameters

NameType
otherRoyExecution

Returns

boolean

Inherited from

RoyExecution.sameContent


addRelMaterial

addRelMaterial(material): void

Parameters

NameType
materialRoyMaterialBase

Returns

void


removeRelMaterial

removeRelMaterial(material): void

Parameters

NameType
materialRoyMaterialBase

Returns

void


destroy

destroy(): void

Returns

void

Overrides

RoyExecution.destroy


markContextDirty

markContextDirty(): void

Returns

void

Overrides

RoyExecution.markContextDirty


changeBlendMode

changeBlendMode(executionList): boolean

Parameters

NameType
executionListRoyExecution[]

Returns

boolean