Facebook Twitter YouTube

class RenderSegment

Defined in:  TSRenderable.h
The RenderSegment class stores rendering information for one segment of a renderable object.
Definition

class RenderSegment

Member Functions
RenderSegment::GetNextRenderSegment Returns the next segment in the linked list of render segments.
RenderSegment::SetNextRenderSegment Sets the next segment in the linked list of render segments.
RenderSegment::GetPrimitiveStart Returns the starting index of primitives belonging to a render segment.
RenderSegment::GetPrimitiveCount Returns the number of primitives belonging to a render segment.
RenderSegment::SetPrimitiveRange Sets the starting index and the number of primitives belonging to a render segment.
RenderSegment::GetMaterialState Returns the material state flags.
RenderSegment::SetMaterialState Sets the material state flags.
RenderSegment::GetMaterialObjectPointer Returns the material object pointer.
RenderSegment::SetMaterialObjectPointer Sets the material object pointer.
RenderSegment::GetMaterialAttributeList Returns the material attribute list.
RenderSegment::SetMaterialAttributeList Sets the material attribute list.
RenderSegment::InvalidateShaderData Invalidates the shader data for a render segment.
Constructor

RenderSegment(unsigned_int32 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.