The IDrawable property interface. More...
#include "murl_graph_i_drawable.h"
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... | |
Detailed Description
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.
Member Function Documentation
◆ SetVerticesSlot()
Set the vertices slot used for rendering.
- Parameters
-
slot The vertices slot.
- Returns
- true if successful.
◆ GetVerticesSlot()
|
pure virtual |
Get the vertices slot used for rendering.
- Returns
- The vertices slot.
◆ SetMaterialSlot()
Set the material slot used for rendering.
- Parameters
-
slot The material slot.
- Returns
- true if successful.
◆ GetMaterialSlot()
|
pure virtual |
Get the material slot used for rendering.
- Returns
- The material slot.
◆ SetParametersSlot()
Set the parameters slot used for rendering.
- Parameters
-
slot The parameters slot.
- Returns
- true if successful.
◆ GetParametersSlot()
|
pure virtual |
Get the parameters slot used for rendering.
- Returns
- The parameters slot.
◆ SetTextureSlot()
Set a texture slot used for rendering.
- Parameters
-
unit The texture unit for which to set the slot. slot The texture slot.
- Returns
- true if successful.
◆ GetTextureSlot()
Get a texture slot used for rendering.
- Parameters
-
unit The texture unit for which to query the slot.
- Returns
- The texture slot.
◆ SetVerticesSlotOffset()
Set the vertices slot offset used for rendering.
- Parameters
-
slot The vertices slot offset.
- Returns
- true if successful.
◆ GetVerticesSlotOffset()
|
pure virtual |
Get the vertices slot offset used for rendering.
- Returns
- The vertices slot offset.
◆ SetMaterialSlotOffset()
Set the material slot offset used for rendering.
- Parameters
-
slot The material slot offset.
- Returns
- true if successful.
◆ GetMaterialSlotOffset()
|
pure virtual |
Get the material slot offset used for rendering.
- Returns
- The material slot offset.
◆ SetParametersSlotOffset()
Set the parameters slot offset used for rendering.
- Parameters
-
slot The parameters slot offset.
- Returns
- true if successful.
◆ GetParametersSlotOffset()
|
pure virtual |
Get the parameters slot offset used for rendering.
- Returns
- The parameters slot offset.
◆ SetTextureSlotOffset()
Set a texture slot offset used for rendering.
- Parameters
-
unit The texture unit for which to set the slot offset. slot The texture slot offset.
- Returns
- true if successful.
◆ GetTextureSlotOffset()
Get a texture slot offset used for rendering.
- Parameters
-
unit The texture unit for which to query the slot offset.
- Returns
- The texture slot offset.
◆ SetBufferAccessMode()
|
pure virtual |
Set the buffer access mode.
- Parameters
-
mode The access mode.
- Returns
- true if successful.
◆ GetBufferAccessMode()
|
pure virtual |
Get the buffer access mode.
- Returns
- The access mode.
◆ SetPrimitiveType()
|
pure virtual |
Set the primitive type used for rendering.
- Parameters
-
type One of the IEnums::PrimitiveType members.
- Returns
- true if successful.
◆ GetPrimitiveType()
|
pure virtual |
Get the primitive type used for rendering.
- Returns
- One of the IEnums::PrimitiveType members.
◆ SetMaxNumberOfLightStages()
Set the maximum number of light stages used for rendering.
- Parameters
-
maxNumStages The maximum number of light stages.
- Returns
- true if successful.
◆ GetMaxNumberOfLightStages()
|
pure virtual |
Get the maximum number of light stages used for rendering.
- Returns
- The maximum number of light stages.
◆ SetMaxNumberOfBonesPerVertex()
|
pure virtual |
Set the maximum number of bones per vertex for vertex skinning.
- Parameters
-
maxNumBones The maximum number of bones.
- Returns
- true if successful.
◆ GetMaxNumberOfBonesPerVertex()
|
pure virtual |
Get the maximum number of bones per vertex for vertex skinning.
- Returns
- The maximum number of bones.
◆ SetViewCullingEnabled()
Enable/disable view culling.
- Parameters
-
enabled If true, culling is performed, otherwise the geometry is always rendered.
- Returns
- true if successful.
◆ IsViewCullingEnabled()
|
pure virtual |
Check if view culling is enabled.
- Returns
- true if enabled.
◆ SetDynamicBatchingAllowed()
Allow/disallow dynamic batching.
- Parameters
-
allowed If true, the renderer tries to batch the drawable together with other drawables sharing the same material/texture/light state.
- Returns
- true if successful, or false if not supported by this drawable.
◆ IsDynamicBatchingAllowed()
|
pure virtual |
Check if dynamic batching is allowed.
- Returns
- true if allowed.
◆ SetClippingAllowed()
Allow/disallow clipping.
- Parameters
-
allowed If true, the drawable may be clipped using an IClipGeometry node.
- Returns
- true if successful, or false if not supported by this drawable.
◆ IsClippingAllowed()
|
pure virtual |
Check if clipping is allowed.
- Returns
- true if allowed.
◆ SetCpuSkinningEnabled()
Enable/disable CPU vertex skinning.
Enabling CPU vertex skinning only has effect when the drawable contains skeleton information, i.e. bone indices and weights.
- Parameters
-
enabled If true, vertex skinning is performed using the CPU, otherwise a GPU shader program must be active to perform this task.
- Returns
- true if successful.
◆ IsCpuSkinningEnabled()
|
pure virtual |
Check if CPU vertex skinning is enabled.
- Returns
- true if enabled.
The documentation for this interface was generated from the following file:
- murl_graph_i_drawable.h