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();
49 double getOpenGLVersion();
54 std::string getOpenGLVendor();
60 bool isExtensionSupported(
const std::string &extensionName);
65 bool hasVertexBufferObject();
70 void setAntiAliasing(
const bool antialiasing) {
71 antialiased = antialiasing;
78 void activateLineAndPointAntiAliasing();
84 void desactivateLineAndPointAntiAliasing();
90 void activatePolygonAntiAliasing();
95 void desactivatePolygonAntiAliasing();
97 void initExtensions();
104 OpenGlConfigManager();
106 static OpenGlConfigManager* inst;
109 bool driversAreChecked;
112 std::map<std::string, bool> checkedExtensions;