#include <material_list.h>
Public Member Functions | |
MaterialList () | |
An constructor that does nothing. | |
virtual | ~MaterialList () |
An destructor that does nothing. | |
int | get_material_count () const |
Return the number of materials in the list. | |
void | append_material (Material *material) |
Add a material to the end of the list. | |
Material * | get_material (int index) |
Get the material with the given index. | |
void | set_material (int index, Material *material) |
Set the material with the given index to the given material. | |
virtual void | accept (Visitor *visitor) |
Accept a visitor. | |
Private Attributes | |
std::vector< Reference < Material > > | list |
MaterialList::MaterialList | ( | ) |
An constructor that does nothing.
virtual MaterialList::~MaterialList | ( | ) | [virtual] |
An destructor that does nothing.
virtual void MaterialList::accept | ( | Visitor * | visitor | ) | [virtual] |
void MaterialList::append_material | ( | Material * | material | ) |
Add a material to the end of the list.
Material* MaterialList::get_material | ( | int | index | ) |
Get the material with the given index.
int MaterialList::get_material_count | ( | ) | const |
Return the number of materials in the list.
void MaterialList::set_material | ( | int | index, | |
Material * | material | |||
) |
Set the material with the given index to the given material.
std::vector< Reference<Material> > MaterialList::list [private] |