InlineMaterial (object)¶
Methods¶
InlineMaterial ( in InlineMaterial other ) | |
InlineMaterial ( in InlineShader shader, in String name ) | |
InlineMaterial ( in String name ) | |
InlineMaterial () | |
addInstance ! ( in InlineInstance instance ) | |
InlineMaterial | clone ? () |
Ref<InlineInstance> | getInstance ? ( in Index index ) |
Size | getInstanceCount ? () |
InlineUniform | getUniform ? ( in String name ) |
Boolean | hasInstance ? ( io Ref<InlineInstance> instance ) |
init ! ( in String name ) | |
Boolean | isActive ? () |
removeFromInstance ! ( io Ref<InlineInstance> instance ) | |
removeFromShader ! () | |
setActive ! ( in Boolean active ) | |
setUniform ! ( in InlineUniform uniform ) | |
setUniform ! ( in String name, in Color value ) | |
setUniform ! ( in String name, in Float32 value ) | |
setUniform ! ( in String name, in InlineTexture value ) | |
setUniform ! ( in String name, in Integer value ) | |
setUniform ! ( in String name, in Mat33 value ) | |
setUniform ! ( in String name, in Mat44 value ) | |
setUniform ! ( in String name, in Quat value ) | |
setUniform ! ( in String name, in Vec2 value ) | |
setUniform ! ( in String name, in Vec3 value ) | |
setUniform ! ( in String name, in Vec4 value ) | |
~InlineMaterial () |
Methods in detail¶
InlineMaterial ( in InlineMaterial other )
copy constructor
InlineMaterial ( in InlineShader shader, in String name )
default constructor using a name for the material
InlineMaterial ( in String name )
default constructor using a name
default constructor
InlineMaterial.addInstance! ( in InlineInstance instance )
adds a single instance to the InlineMaterial
InlineMaterial InlineMaterial.clone? ()
clone method
Ref<InlineInstance> InlineMaterial.getInstance? ( in Index index )
returns an instance given its index, or null
Size InlineMaterial.getInstanceCount? ()
returns the number of instances in this InlineMaterial
InlineUniform InlineMaterial.getUniform? ( in String name )
returns a uniform by name
Boolean InlineMaterial.hasInstance? ( io Ref<InlineInstance> instance )
returns true if the material has the given instance
InlineMaterial.init! ( in String name )
default constructor using a name
Boolean InlineMaterial.isActive? ()
returns true if this material is currently active
InlineMaterial.removeFromInstance! ( io Ref<InlineInstance> instance )
remove an instances from the InlineMaterial
InlineMaterial.removeFromShader! ()
remove an instances from the InlineMaterial
InlineMaterial.setActive! ( in Boolean active )
enables or disables this material
InlineMaterial.setUniform! ( in InlineUniform uniform )
set a uniform on this material given a name and an InlineUniform. this will error if the uniform is not supported by the shader.
InlineMaterial.setUniform! ( in String name, in Color value )
set a uniform given its name and a Color value
InlineMaterial.setUniform! ( in String name, in Float32 value )
set a uniform given its name and a Float32 value
InlineMaterial.setUniform! ( in String name, in InlineTexture value )
set a uniform given its name and a InlineTexture value
InlineMaterial.setUniform! ( in String name, in Integer value )
set a uniform given its name and a Integer value
InlineMaterial.setUniform! ( in String name, in Mat33 value )
set a uniform given its name and a Mat33 value
InlineMaterial.setUniform! ( in String name, in Mat44 value )
set a uniform given its name and a Mat44 value
InlineMaterial.setUniform! ( in String name, in Quat value )
set a uniform given its name and a Quat value
InlineMaterial.setUniform! ( in String name, in Vec2 value )
set a uniform given its name and a Vec2 value
InlineMaterial.setUniform! ( in String name, in Vec3 value )
set a uniform given its name and a Vec3 value
InlineMaterial.setUniform! ( in String name, in Vec4 value )
set a uniform given its name and a Vec4 value
~ InlineMaterial ()