Appearance
RoyInterface / Exports / scene/execution/RoyMaterialExecution / RoyMaterialExecution
Class: RoyMaterialExecution
scene/execution/RoyMaterialExecution.RoyMaterialExecution
Hierarchy
↳
RoyMaterialExecution
Table of contents
Constructors
Properties
- s_handleID
- m_handleID
- m_compTypeName
- m_compClassifyType
- m_scene
- m_dirtyFrameId
- m_dirtySign
- m_enabled
- m_priority
- m_uniformMap
- m_relMaterialMap
Accessors
- handleID
- compTypeName
- compClassifyType
- scene
- dirtyFrameId
- dirtySign
- enabled
- priority
- uniformMap
- relMaterialMap
Methods
- declareUniform
- setUniform
- hasUniform
- getUniform
- execUniform
- execUniforms
- sameContent
- addRelMaterial
- removeRelMaterial
- destroy
- markContextDirty
- changeBlendMode
Constructors
constructor
• new RoyMaterialExecution(scene
): RoyMaterialExecution
Parameters
Name | Type |
---|---|
scene | RoyScene |
Returns
Overrides
Properties
s_handleID
▪ Static
Protected
s_handleID: number
= 0
Inherited from
m_handleID
• Protected
m_handleID: number
= 0
Inherited from
m_compTypeName
• Protected
m_compTypeName: string
= ''
Inherited from
m_compClassifyType
• Protected
m_compClassifyType: ECT_MATERIAL
= RoyExecutionClassifyType.ECT_MATERIAL
Inherited from
RoyExecution.m_compClassifyType
m_scene
• Protected
m_scene: RoyScene
= null
Inherited from
m_dirtyFrameId
• Protected
m_dirtyFrameId: number
= 0
Inherited from
m_dirtySign
• Protected
m_dirtySign: number
= 0
Inherited from
m_enabled
• Protected
m_enabled: boolean
= true
Inherited from
m_priority
• Protected
m_priority: number
= 0
Inherited from
m_uniformMap
• Protected
m_uniformMap: Map
<string
, RoyExecutionUniformInfo
>
Inherited from
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
Inherited from
RoyExecution.compClassifyType
scene
• get
scene(): RoyScene
Returns
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
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
RoyExecution.enabled
priority
• get
priority(): number
Returns
number
Inherited from
RoyExecution.priority
• set
priority(value
): void
Parameters
Name | Type |
---|---|
value | number |
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
Name | Type |
---|---|
name | string |
type | RoyMatUniformType |
defaultVal | UniformType |
size? | number |
filter? | number |
operType? | RoyExecutionOperType |
Returns
void
Inherited from
setUniform
▸ setUniform(name
, value
): void
Parameters
Name | Type |
---|---|
name | string |
value | UniformType |
Returns
void
Inherited from
hasUniform
▸ hasUniform(name
): boolean
Parameters
Name | Type |
---|---|
name | string |
Returns
boolean
Inherited from
getUniform
▸ getUniform(name
): UniformType
Parameters
Name | Type |
---|---|
name | string |
Returns
Inherited from
execUniform
▸ execUniform(name
, originData
): UniformType
Parameters
Name | Type |
---|---|
name | string |
originData | UniformType |
Returns
Inherited from
execUniforms
▸ execUniforms(executionList
, uniformName
, originData
): UniformType
Parameters
Name | Type |
---|---|
executionList | RoyExecution [] |
uniformName | string |
originData | UniformType |
Returns
Inherited from
sameContent
▸ sameContent(other
): boolean
Parameters
Name | Type |
---|---|
other | RoyExecution |
Returns
boolean
Inherited from
addRelMaterial
▸ addRelMaterial(material
): void
Parameters
Name | Type |
---|---|
material | RoyMaterialBase |
Returns
void
removeRelMaterial
▸ removeRelMaterial(material
): void
Parameters
Name | Type |
---|---|
material | RoyMaterialBase |
Returns
void
destroy
▸ destroy(): void
Returns
void
Overrides
markContextDirty
▸ markContextDirty(): void
Returns
void
Overrides
changeBlendMode
▸ changeBlendMode(executionList
): boolean
Parameters
Name | Type |
---|---|
executionList | RoyExecution [] |
Returns
boolean