21 #ifndef Tulip_OPENGLCONFIGMANAGER_H
22 #define Tulip_OPENGLCONFIGMANAGER_H
24 #include <tulip/tulipconf.h>
29 #define BUFFER_OFFSET(bytes) ((GLubyte*) NULL + (bytes))
37 class TLP_GL_SCOPE OpenGlConfigManager {
44 static OpenGlConfigManager &getInst();
54 double getOpenGLVersion();
59 std::string getOpenGLVendor();
65 bool isExtensionSupported(
const std::string &extensionName);
70 bool hasVertexBufferObject();
75 void setAntiAliasing(
const bool antialiasing) {
76 antialiased = antialiasing;
83 void activateLineAndPointAntiAliasing();
89 void desactivateLineAndPointAntiAliasing();
95 void activatePolygonAntiAliasing();
100 void desactivatePolygonAntiAliasing();
111 OpenGlConfigManager();
113 static OpenGlConfigManager* inst;
116 bool driversAreChecked;
119 std::map<std::string, bool> checkedExtensions;