Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::VertexDescriptor Class Reference

#include <VertexDescriptor.h>

Public Member Functions

 VertexDescriptor ()
 
void Clear ()
 
bool AddElement (ElementType type)
 
VertexElement GetElement (int index)
 
int GetTotalElements ()
 
int GetStride () const
 

Detailed Description

Represents the different elements contained in a single vertex. For example position, normal, tex coord, ...

Constructor & Destructor Documentation

◆ VertexDescriptor()

Ult::VertexDescriptor::VertexDescriptor ( )

VertexDescriptor constructor.

Member Function Documentation

◆ AddElement()

bool Ult::VertexDescriptor::AddElement ( ElementType type)

Add the input element type to the internal list.

◆ Clear()

void Ult::VertexDescriptor::Clear ( )

Clear the internal list of element types.

◆ GetElement()

VertexElement Ult::VertexDescriptor::GetElement ( int index)

Returns the element from the internal list at the given index.

◆ GetStride()

int Ult::VertexDescriptor::GetStride ( ) const

Get the size of 1 vertex containing these elements in bytes.

◆ GetTotalElements()

int Ult::VertexDescriptor::GetTotalElements ( )

Get the size of the element list.


The documentation for this class was generated from the following files: