21 #ifndef Tulip_GLDISPLAYLISTMANAGER_H
22 #define Tulip_GLDISPLAYLISTMANAGER_H
28 #include <tulip/OpenGlConfigManager.h>
30 #include <tulip/tulipconf.h>
39 class TLP_GL_SCOPE GlDisplayListManager {
41 typedef std::map<std::string,GLuint> DisplayListMap;
42 typedef std::map<unsigned long, DisplayListMap> ContextAndDisplayListMap;
49 static GlDisplayListManager &getInst() {
51 inst=
new GlDisplayListManager();
59 void changeContext(
unsigned long context);
64 void removeContext(
unsigned long context);
69 bool beginNewDisplayList(
const std::string& name);
73 void endNewDisplayList();
78 bool callDisplayList(
const std::string& name);
85 GlDisplayListManager() {}
87 unsigned long currentContext;
89 static GlDisplayListManager* inst;
91 ContextAndDisplayListMap displayListMap;
97 #endif // Tulip_GLDISPLAYLISTMANAGER_H