MVertexBufferArray Class Reference

This reference page is linked to from the following overview topics: Extension for Autodesk Maya 2013.



Detailed Description

Array of Vertex buffers

This class represents an array of vertex buffers.

#include <MHWGeometry.h>

List of all members.

Public Member Functions

 MVertexBufferArray ()
 Constructor.
 ~MVertexBufferArray ()
 Destructor.
unsigned int count () const
 Get num of vertex buffers in list.
MVertexBuffergetBuffer (const MString &name) const
 Get vertex buffer based on name.
MVertexBuffergetBuffer (unsigned int index) const
 Get vertex buffer based at desired index.
MString getName (unsigned int index) const
 Get the name of the buffer at desired index.

Static Public Member Functions

static const char * className ()
 Returns the name of this class.

Member Function Documentation

unsigned int count ( ) const

Get num of vertex buffers in list.

Returns:
The size of the array
MVertexBuffer * getBuffer ( const MString name) const

Get vertex buffer based on name.

Parameters:
[in]nameThe name of the vertex buffer to look for.
Returns:
The vertex buffer pointer, NULL if no match found.
MVertexBuffer * getBuffer ( unsigned int  index) const

Get vertex buffer based at desired index.

Parameters:
[in]indexThe index of the vertex buffer to look for.
Returns:
The vertex buffer pointer, NULL if out of bound
MString getName ( unsigned int  index) const

Get the name of the buffer at desired index.

Parameters:
[in]indexThe index of the vertex buffer to look for.
Returns:
The registered name, empty string if out of bound
const char * className ( ) [static]

Returns the name of this class.

Returns:
The name of this class.

MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray
MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray MVertexBufferArray