21 #ifndef Tulip_GLDISPLAYLISTMANAGER_H 22 #define Tulip_GLDISPLAYLISTMANAGER_H 24 #include <tulip/OpenGlIncludes.h> 31 #include <tulip/tulipconf.h> 40 class TLP_GL_SCOPE GlDisplayListManager {
42 typedef std::map<std::string, GLuint> DisplayListMap;
43 typedef std::map<uintptr_t, DisplayListMap> ContextAndDisplayListMap;
49 static GlDisplayListManager &getInst() {
51 inst =
new GlDisplayListManager();
59 void changeContext(uintptr_t context);
64 void removeContext(uintptr_t context);
69 bool beginNewDisplayList(
const std::string &name);
73 void endNewDisplayList();
78 bool callDisplayList(
const std::string &name);
84 GlDisplayListManager() {}
86 uintptr_t currentContext;
88 static GlDisplayListManager *inst;
90 ContextAndDisplayListMap displayListMap;
94 #endif // Tulip_GLDISPLAYLISTMANAGER_H