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 {
45 static OpenGlConfigManager &getInst();
52 std::string getOpenGLVersionString()
const;
57 double getOpenGLVersion()
const;
62 std::string getOpenGLVendor()
const;
64 void initExtensions();
70 bool isExtensionSupported(
const std::string &extensionName);
75 bool hasVertexBufferObject();
80 void setAntiAliasing(
const bool antialiasing) {
81 antialiased = antialiasing;
87 bool antiAliasing()
const {
95 void activateAntiAliasing();
101 void desactivateAntiAliasing();
107 int maxNumberOfSamples()
const;
113 _DEPRECATED
void activateLineAndPointAntiAliasing();
119 _DEPRECATED
void desactivateLineAndPointAntiAliasing();
125 _DEPRECATED
void activatePolygonAntiAliasing();
130 _DEPRECATED
void desactivatePolygonAntiAliasing();
137 OpenGlConfigManager();
139 static OpenGlConfigManager* inst;
144 std::map<std::string, bool> checkedExtensions;