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();
56 void initExtensions();
62 bool isExtensionSupported(
const std::string &extensionName);
67 bool hasVertexBufferObject();
72 void setAntiAliasing(
const bool antialiasing) {
73 antialiased = antialiasing;
79 bool antiAliasing()
const {
87 void activateAntiAliasing();
93 void desactivateAntiAliasing();
99 _DEPRECATED
void activateLineAndPointAntiAliasing();
105 _DEPRECATED
void desactivateLineAndPointAntiAliasing();
111 _DEPRECATED
void activatePolygonAntiAliasing();
116 _DEPRECATED
void desactivatePolygonAntiAliasing();
123 OpenGlConfigManager();
125 static OpenGlConfigManager* inst;
128 bool driversAreChecked;
131 std::map<std::string, bool> checkedExtensions;