15 #ifndef MATERIALCOLLECTION_H
16 #define MATERIALCOLLECTION_H
18 #include "pandabase.h"
19 #include "pointerToArray.h"
33 void add_material(
Material *node_material);
34 bool remove_material(
Material *node_material);
37 void remove_duplicate_materials();
38 bool has_material(
Material *material)
const;
41 Material *find_material(
const string &name)
const;
43 int get_num_materials()
const;
44 Material *get_material(
int index)
const;
45 Material *operator [] (
int index)
const;
50 void output(ostream &out)
const;
51 void write(ostream &out,
int indent_level = 0)
const;
63 #include "materialCollection.I"
Defines the way an object appears in the presence of lighting.
void output(ostream &out) const
Writes a brief one-line description of the MaterialCollection to the indicated output stream...