14 #ifndef MATERIALCOLLECTION_H
15 #define MATERIALCOLLECTION_H
31 void add_material(
Material *node_material);
32 bool remove_material(
Material *node_material);
35 void remove_duplicate_materials();
36 bool has_material(
Material *material)
const;
39 Material *find_material(
const std::string &name)
const;
41 int get_num_materials()
const;
42 Material *get_material(
int index)
const;
43 Material *operator [] (
int index)
const;
48 void output(std::ostream &out)
const;
49 void write(std::ostream &out,
int indent_level = 0)
const;
void output(std::ostream &out) const
Writes a brief one-line description of the MaterialCollection to the indicated output stream.
Defines the way an object appears in the presence of lighting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.