21 #ifndef Tulip_GLDISPLAYLISTMANAGER_H 
   22 #define Tulip_GLDISPLAYLISTMANAGER_H 
   28 #if defined(__APPLE__) 
   29 #include <OpenGL/gl.h> 
   30 #include <OpenGL/glu.h> 
   41 #include <tulip/tulipconf.h> 
   50 class TLP_GL_SCOPE GlDisplayListManager {
 
   52   typedef std::map<std::string,GLuint> DisplayListMap;
 
   53   typedef std::map<uintptr_t, DisplayListMap> ContextAndDisplayListMap;
 
   60   static GlDisplayListManager &getInst() {
 
   62       inst=
new GlDisplayListManager();
 
   70   void changeContext(uintptr_t context);
 
   75   void removeContext(uintptr_t context);
 
   80   bool beginNewDisplayList(
const std::string& name);
 
   84   void endNewDisplayList();
 
   89   bool callDisplayList(
const std::string& name);
 
   96   GlDisplayListManager() {}
 
   98   uintptr_t currentContext;
 
  100   static GlDisplayListManager* inst;
 
  102   ContextAndDisplayListMap displayListMap;
 
  108 #endif // Tulip_GLDISPLAYLISTMANAGER_H