A list of MRenderItem objects.
A list of MRenderItem objects. All items in the list are owned by the list. This class cannot be created or destroyed, it is only passed to the user through various interfaces.
cgfxShaderNode.cpp, cgfxShaderNode.h, hwColorPerVertexShader.cpp, and hwPhongShader.cpp.
#include <MHWGeometry.h>
Public Member Functions |
|
int | length () const |
Get the number of items in the list.
|
|
int | indexOf (const MString &name, MGeometry::Primitive primitive, MGeometry::DrawMode mode) const |
Find the index of the first render item in
the list matching the given search parameters. |
|
const MRenderItem * | itemAt (int index) const |
Get a read-only pointer to the item at the
specified index. |
|
MRenderItem * | itemAt (int index) |
Get the item at the specified index.
|
|
bool | append (MRenderItem *item) |
Add the item to the list. |
|
bool | removeAt (int index) |
Remove the item at the specified index.
|
|
void | clear () |
Clear the list. |
|
Static Public Member Functions |
|
static const char * | className () |
Returns the name of this class. |
|
Friends |
|
class | MGeometryRequirements |
int length | ( | ) | const |
Get the number of items in the list.
int indexOf | ( | const MString & | name, |
MGeometry::Primitive | primitive, | ||
MGeometry::DrawMode | mode | ||
) | const |
Find the index of the first render item in the list matching the given search parameters.
[in] | name | The name of the render item |
[in] | primitive | The primitive type of the render item |
[in] | mode | The draw mode of the render item |
const MRenderItem * itemAt | ( | int | index | ) | const |
Get a read-only pointer to the item at the specified index.
Note, the item is owned by the list.
[in] | index | Index of item. |
MRenderItem * itemAt | ( | int | index | ) |
Get the item at the specified index.
Note, the item is owned by the list.
[in] | index | Index of item. |
bool append | ( | MRenderItem * | item | ) |
Add the item to the list.
The list assumes ownership of the item.
[in] | item | The render item to add |
bool removeAt | ( | int | index | ) |
Remove the item at the specified index.
Item is deleted.
[in] | index | The item to remove |
const char * className | ( | ) | [static] |