![]() |
Murl Engine API
Version 2025.1
|
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 | SetVerticesSlotOffset (SInt32 slot)=0 |
| Set the vertices slot offset used for rendering. More... | |
| virtual SInt32 | GetVerticesSlotOffset () const =0 |
| Get the vertices slot offset used for rendering. More... | |
| virtual Bool | SetMaterialSlotOffset (SInt32 slot)=0 |
| Set the material slot offset used for rendering. More... | |
| virtual SInt32 | GetMaterialSlotOffset () const =0 |
| Get the material slot offset used for rendering. More... | |
| virtual Bool | SetParametersSlotOffset (SInt32 slot)=0 |
| Set the parameters slot offset used for rendering. More... | |
| virtual SInt32 | GetParametersSlotOffset () const =0 |
| Get the parameters slot offset used for rendering. More... | |
| virtual Bool | SetTextureSlotOffset (UInt32 unit, SInt32 slot)=0 |
| Set a texture slot offset used for rendering. More... | |
| virtual SInt32 | GetTextureSlotOffset (UInt32 unit) const =0 |
| Get a texture slot offset 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 | SetClippingAllowed (Bool allowed)=0 |
| Allow/disallow clipping. More... | |
| virtual Bool | IsClippingAllowed () const =0 |
| Check if clipping 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. |
Set the vertices slot offset used for rendering.
| slot | The vertices slot offset. |
|
pure virtual |
Get the vertices slot offset used for rendering.
Set the material slot offset used for rendering.
| slot | The material slot offset. |
|
pure virtual |
Get the material slot offset used for rendering.
Set the parameters slot offset used for rendering.
| slot | The parameters slot offset. |
|
pure virtual |
Get the parameters slot offset used for rendering.
Set a texture slot offset used for rendering.
| unit | The texture unit for which to set the slot offset. |
| slot | The texture slot offset. |
Get a texture slot offset used for rendering.
| unit | The texture unit for which to query the slot offset. |
|
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.
Allow/disallow clipping.
| allowed | If true, the drawable may be clipped using an IClipGeometry node. |
|
pure virtual |
Check if clipping 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.