Torque3D Documentation / _generateds / GFXVertexElement

GFXVertexElement

Engine/source/gfx/gfxVertexFormat.h

The element structure helps define the data layout for GFXVertexFormat.

More...

Public Friends

Protected Attributes

A valid Torque shader symantic.

The semantic index is used where there are multiple semantics of the same type.

The stream index when rendering from multiple vertex streams.

The element type.

Public Functions

Default constructor.

Copy constructor.

Returns the semantic name which is usually a valid Torque semantic.

Returns the semantic index which is used where there are multiple semantics of the same type.

Returns the size in bytes of the semantic type.

Returns the stream index.

Returns the type for the semantic.

bool

Returns true of the semantic matches.

Detailed Description

The element structure helps define the data layout for GFXVertexFormat.

Public Friends

Protected Attributes

String mSemantic 

A valid Torque shader symantic.

U32 mSemanticIndex 

The semantic index is used where there are multiple semantics of the same type.

For instance with texcoords.

U32 mStreamIndex 

The stream index when rendering from multiple vertex streams.

In most cases this is 0.

GFXDeclType mType 

The element type.

Public Functions

GFXVertexElement()

Default constructor.

GFXVertexElement(const GFXVertexElement & elem)

Copy constructor.

getSemantic()

Returns the semantic name which is usually a valid Torque semantic.

getSemanticIndex()

Returns the semantic index which is used where there are multiple semantics of the same type.

For instance with texcoords.

getSizeInBytes()

Returns the size in bytes of the semantic type.

getStreamIndex()

Returns the stream index.

getType()

Returns the type for the semantic.

isSemantic(const String & str)

Returns true of the semantic matches.