21 #ifndef Tulip_OPENGLCONFIGMANAGER_H 22 #define Tulip_OPENGLCONFIGMANAGER_H 24 #include <tulip/tulipconf.h> 29 #define BUFFER_OFFSET(bytes) (reinterpret_cast<GLubyte *>(bytes)) 37 class TLP_GL_SCOPE OpenGlConfigManager {
44 static OpenGlConfigManager &getInst();
51 std::string getOpenGLVersionString()
const;
56 double getOpenGLVersion()
const;
61 std::string getOpenGLVendor()
const;
63 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 {
96 void activateAntiAliasing();
103 void desactivateAntiAliasing();
109 int maxNumberOfSamples()
const;
116 _DEPRECATED
void activateLineAndPointAntiAliasing();
123 _DEPRECATED
void desactivateLineAndPointAntiAliasing();
130 _DEPRECATED
void activatePolygonAntiAliasing();
136 _DEPRECATED
void desactivatePolygonAntiAliasing();
142 OpenGlConfigManager();
144 static OpenGlConfigManager *inst;
149 std::map<std::string, bool> checkedExtensions;