C4 Engine
C4 Engine API Documentation

class Drawable

Defined in:  C4Renderable.h
The Drawable class stores rendering information for one drawable component of a renderable object.
Definition

class Drawable

Member Functions
Drawable::GetNextDrawable Returns the next drawable in the linked list of drawables.
Drawable::SetNextDrawable Sets the next drawable in the linked list of drawables.
Drawable::GetPrimitiveStart Returns the starting index of primitives belonging to a drawable.
Drawable::GetPrimitiveCount Returns the number of primitives belonging to a drawable.
Drawable::SetPrimitiveRange Sets the starting index and the number of primitives belonging to a drawable.
Drawable::GetMaterialState Returns the material state flags.
Drawable::SetMaterialState Sets the material state flags.
Drawable::GetMaterialObjectPointer Returns the material object pointer.
Drawable::SetMaterialObjectPointer Sets the material object pointer.
Drawable::GetMaterialAttributeList Returns the material attribute list.
Drawable::SetMaterialAttributeList Sets the material attribute list.
Drawable::InvalidatePipelineData Invalidates the pipeline data for a drawable.
Constructor

Drawable(uint32 state = 0);

Parameters
state Flags that determine various material states to be applied.
Description
kMaterialTwoSided The material should be rendered two-sided.
kMaterialAlphaTest Use alpha testing with the material.