21 #ifndef Tulip_OPENGLCONFIGMANAGER_H
22 #define Tulip_OPENGLCONFIGMANAGER_H
24 #include <tulip/tulipconf.h>
27 #include <tulip/tuliphash.h>
29 #define BUFFER_OFFSET(bytes) (reinterpret_cast<GLubyte *>(bytes))
37 class TLP_GL_SCOPE OpenGlConfigManager {
45 static std::string getOpenGLVersionString();
50 static double getOpenGLVersion();
55 static std::string getOpenGLVendor();
57 static void initExtensions();
64 static bool isExtensionSupported(
const std::string &extensionName);
69 static bool hasVertexBufferObject();
74 static void setAntiAliasing(
const bool antialiasing) {
75 _antialiased = antialiasing;
81 static bool antiAliasing() {
90 static void activateAntiAliasing();
97 static void deactivateAntiAliasing();
103 static int maxNumberOfSamples();
106 static bool _glewIsInit;
107 static bool _antialiased;
108 static tlp_hash_map<std::string, bool> _checkedExtensions;