Home -> IRenderableNode

Declaration

class IRenderableNode :public IStateContainer;

Description

The IRenderableNode interface represents a renderable object in the render tree. Renderable objects can only be added as children an IStateGroupNode. This node is responsible for defining an object to be drawn during the rendering process. Without at least one renderable node in the tree, the scene contains no content.

Enumerations

Name Description
Public Enum PrimitiveMode
Specifies the available options for configuring the primitive drawing mode, as set by the SetPrimitiveMode method.

Structures

Name Description
Public Struct IndirectDrawParams
Defines the command structure consumed for non-indexed indirect drawing.
Public Struct IndexedIndirectDrawParams
Defines the command structure consumed for indexed indirect drawing.

Members

Initialization methods

Name Description
Public member Delete
Schedules the object for deletion. After calling this method, the object will be destroyed after the current frame completes drawing.

Binding methods

Name Description
Public member BindVertexAttribute
Binds the specified vertex attribute to this renderable object
Public member BindVertexInstanceAttribute
Binds the specified vertex instance attribute to this renderable object
Public member BindIndexAttribute
Binds the specified index attribute to this renderable object

Primitive mode methods

Name Description
Public member SetPrimitiveMode
Sets the primitive mode and associated settings
Public member SetVertexCount
Sets the vertex count and associated vertex and index settings
Public member SetInstanceMode
Configures the instance mode rendering for this object, allowing it to be drawn more than once.
Public member SetIndirectDraw
Configures indirect drawing for this object, allowing draw settings to be sourced from an IDataArray rather than set directly by application code.

Resource binding methods (Inherited from IStateContainer)

Name Description
Public member BindTextureWithCombinedSampler
Creates a texture resource binding with a combined image sampler for the current shader program
Public member BindTexture
Creates a texture resource binding for the current shader program
Public member UnbindTexture
Removes a previously established texture resource binding, with or without a combined image sampler.
Public member BindSampler
Creates a sampler resource binding for the current shader program
Public member UnbindSampler
Removes a previously established sampler binding for the current shader program
Public member BindStateBuffer
Creates a state buffer resource binding for the current shader program
Public member UnbindStateBuffer
Removes a previously established state buffer binding for the current shader program
Public member BindResourceArray
Creates a resource array binding for the current shader program
Public member UnbindResourceArray
Removes a previously established resource array binding for the current shader program

State value methods (Inherited from IStateContainer)

Name Description
Public member SetStateValue
Sets the current target shader state variable to the specified value for this node and any child nodes
Public member ResetStateValue
Restores the target shader state variable to its default or inherited value

Debug methods

Name Description
Public member SetDebugName
Sets a debug name for this renderable node, where supported by the renderer and native graphics API.

See also