36class EXPCL_PANDA_GOBJ MaterialPool {
45 static void write(std::ostream &out);
48 INLINE MaterialPool();
51 void ns_release_material(
Material *temp);
52 void ns_release_all_materials();
54 int ns_garbage_collect();
55 void ns_list_contents(std::ostream &out)
const;
57 static MaterialPool *get_global_ptr();
59 static MaterialPool *_global_ptr;
This is a standard, non-reentrant mutex, similar to the Mutex class.
static void list_contents(std::ostream &out)
Lists the contents of the material pool to the indicated output stream.
static void write(std::ostream &out)
Lists the contents of the material pool to the indicated output stream.
static void release_material(Material *temp)
Removes the indicated material from the pool.
static Material * get_material(Material *temp)
Returns a Material pointer that represents the same material described by temp, except that it is a s...
static void release_all_materials()
Releases all materials in the pool and restores the pool to the empty state.
static int garbage_collect()
Releases only those materials in the pool that have a reference count of exactly 1; i....
Defines the way an object appears in the presence of lighting.
An STL function object class, this is intended to be used on any ordered collection of pointers to cl...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.