15 #ifndef MATERIALPOOL_H
16 #define MATERIALPOOL_H
18 #include "pandabase.h"
20 #include "pointerTo.h"
21 #include "lightMutex.h"
45 INLINE
static void release_material(
Material *temp);
46 INLINE
static void release_all_materials();
48 INLINE
static int garbage_collect();
49 INLINE
static void list_contents(ostream &out);
51 static void write(ostream &out);
57 void ns_release_material(
Material *temp);
58 void ns_release_all_materials();
60 int ns_garbage_collect();
61 void ns_list_contents(ostream &out)
const;
63 static MaterialPool *get_global_ptr();
65 static MaterialPool *_global_ptr;
77 #include "materialPool.I"
This is our own Panda specialization on the default STL map.
The MaterialPool (there is only one in the universe) serves to unify different pointers to the same M...
Defines the way an object appears in the presence of lighting.
This is a standard, non-reentrant mutex, similar to the Mutex class.