![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IDrawable property interface.
This interface provides setting and retrieving common properties of a drawable geometry object, such as associated material, parameters and texture slots, the maximum number of light stages applied, and enabling/disabling view culling.
Set the vertices slot used for rendering.
Boolean SetVerticesSlot(Integer slot)
slot | The vertices slot. |
Get the vertices slot used for rendering.
Integer GetVerticesSlot()
Set the material slot used for rendering.
Boolean SetMaterialSlot(Integer slot)
slot | The material slot. |
Get the material slot used for rendering.
Integer GetMaterialSlot()
Set the parameters slot used for rendering.
Boolean SetParametersSlot(Integer slot)
slot | The parameters slot. |
Get the parameters slot used for rendering.
Integer GetParametersSlot()
Set a texture slot used for rendering.
Boolean SetTextureSlot(Integer unit, Integer slot)
unit | The texture unit for which to set the slot. |
slot | The texture slot. |
Get a texture slot used for rendering.
Integer GetTextureSlot(Integer unit)
unit | The texture unit for which to query the slot. |
Set the buffer access mode.
Boolean SetBufferAccessMode(Murl.IEnums.BufferAccessMode mode)
mode | The access mode. |
Get the buffer access mode.
Murl.IEnums.BufferAccessMode GetBufferAccessMode()
Set the primitive type used for rendering.
Boolean SetPrimitiveType(Murl.IEnums.PrimitiveType type)
type | One of the IEnums::PrimitiveType members. |
Get the primitive type used for rendering.
Murl.IEnums.PrimitiveType GetPrimitiveType()
Set the maximum number of light stages used for rendering.
Boolean SetMaxNumberOfLightStages(Integer maxNumStages)
maxNumStages | The maximum number of light stages. |
Get the maximum number of light stages used for rendering.
Integer GetMaxNumberOfLightStages()
Set the maximum number of bones per vertex for vertex skinning.
Boolean SetMaxNumberOfBonesPerVertex(Integer maxNumBones)
maxNumBones | The maximum number of bones. |
Get the maximum number of bones per vertex for vertex skinning.
Integer GetMaxNumberOfBonesPerVertex()
Enable/disable view culling.
Boolean SetViewCullingEnabled(Boolean enabled)
enabled | If true, culling is performed, otherwise the geometry is always rendered. |
Check if view culling is enabled.
Boolean IsViewCullingEnabled()
Allow/disallow dynamic batching.
Boolean SetDynamicBatchingAllowed(Boolean allowed)
allowed | If true, the renderer tries to batch the drawable together with other drawables sharing the same material/texture/light state. |
Check if dynamic batching is allowed.
Boolean IsDynamicBatchingAllowed()
Enable/disable CPU vertex skinning. Enabling CPU vertex skinning only has effect when the drawable contains skeleton information, i.e. bone indices and weights.
Boolean SetCpuSkinningEnabled(Boolean enabled)
enabled | If true, vertex skinning is performed using the CPU, otherwise a GPU shader program must be active to perform this task. |
Check if CPU vertex skinning is enabled.
Boolean IsCpuSkinningEnabled()