![]() |
Murl Engine API
Version 2018.3
|
The IDrawable property interface. More...
#include <murl_graph_i_drawable.h>
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.
Public Member Functions | |
virtual Bool | SetVerticesSlot (SInt32 slot)=0 |
Set the vertices slot used for rendering. More... | |
virtual SInt32 | GetVerticesSlot () const =0 |
Get the vertices slot used for rendering. More... | |
virtual Bool | SetMaterialSlot (SInt32 slot)=0 |
Set the material slot used for rendering. More... | |
virtual SInt32 | GetMaterialSlot () const =0 |
Get the material slot used for rendering. More... | |
virtual Bool | SetParametersSlot (SInt32 slot)=0 |
Set the parameters slot used for rendering. More... | |
virtual SInt32 | GetParametersSlot () const =0 |
Get the parameters slot used for rendering. More... | |
virtual Bool | SetTextureSlot (UInt32 unit, SInt32 slot)=0 |
Set a texture slot used for rendering. More... | |
virtual SInt32 | GetTextureSlot (UInt32 unit) const =0 |
Get a texture slot used for rendering. More... | |
virtual Bool | SetBufferAccessMode (IEnums::BufferAccessMode mode)=0 |
Set the buffer access mode. More... | |
virtual IEnums::BufferAccessMode | GetBufferAccessMode () const =0 |
Get the buffer access mode. More... | |
virtual Bool | SetPrimitiveType (IEnums::PrimitiveType type)=0 |
Set the primitive type used for rendering. More... | |
virtual IEnums::PrimitiveType | GetPrimitiveType () const =0 |
Get the primitive type used for rendering. More... | |
virtual Bool | SetMaxNumberOfLightStages (UInt32 maxNumStages)=0 |
Set the maximum number of light stages used for rendering. More... | |
virtual UInt32 | GetMaxNumberOfLightStages () const =0 |
Get the maximum number of light stages used for rendering. More... | |
virtual Bool | SetMaxNumberOfBonesPerVertex (UInt32 maxNumBones)=0 |
Set the maximum number of bones per vertex for vertex skinning. More... | |
virtual UInt32 | GetMaxNumberOfBonesPerVertex () const =0 |
Get the maximum number of bones per vertex for vertex skinning. More... | |
virtual Bool | SetViewCullingEnabled (Bool enabled)=0 |
Enable/disable view culling. More... | |
virtual Bool | IsViewCullingEnabled () const =0 |
Check if view culling is enabled. More... | |
virtual Bool | SetDynamicBatchingAllowed (Bool allowed)=0 |
Allow/disallow dynamic batching. More... | |
virtual Bool | IsDynamicBatchingAllowed () const =0 |
Check if dynamic batching is allowed. More... | |
virtual Bool | SetCpuSkinningEnabled (Bool enabled)=0 |
Enable/disable CPU vertex skinning. More... | |
virtual Bool | IsCpuSkinningEnabled () const =0 |
Check if CPU vertex skinning is enabled. More... | |
Set the vertices slot used for rendering.
slot | The vertices slot. |
|
pure virtual |
Get the vertices slot used for rendering.
Set the material slot used for rendering.
slot | The material slot. |
|
pure virtual |
Get the material slot used for rendering.
Set the parameters slot used for rendering.
slot | The parameters slot. |
|
pure virtual |
Get the parameters slot used for rendering.
Set a texture slot used for rendering.
unit | The texture unit for which to set the slot. |
slot | The texture slot. |
Get a texture slot used for rendering.
unit | The texture unit for which to query the slot. |
|
pure virtual |
Set the buffer access mode.
mode | The access mode. |
|
pure virtual |
Get the buffer access mode.
|
pure virtual |
Set the primitive type used for rendering.
type | One of the IEnums::PrimitiveType members. |
|
pure virtual |
Get the primitive type used for rendering.
Set the maximum number of light stages used for rendering.
maxNumStages | The maximum number of light stages. |
|
pure virtual |
Get the maximum number of light stages used for rendering.
|
pure virtual |
Set the maximum number of bones per vertex for vertex skinning.
maxNumBones | The maximum number of bones. |
|
pure virtual |
Get the maximum number of bones per vertex for vertex skinning.
Enable/disable view culling.
enabled | If true, culling is performed, otherwise the geometry is always rendered. |
|
pure virtual |
Check if view culling is enabled.
Allow/disallow dynamic batching.
allowed | If true, the renderer tries to batch the drawable together with other drawables sharing the same material/texture/light state. |
|
pure virtual |
Check if dynamic batching is allowed.
Enable/disable CPU vertex skinning.
Enabling CPU vertex skinning only has effect when the drawable contains skeleton information, i.e. bone indices and weights.
enabled | If true, vertex skinning is performed using the CPU, otherwise a GPU shader program must be active to perform this task. |
|
pure virtual |
Check if CPU vertex skinning is enabled.