21 #ifndef Tulip_QGLBUFFERMANAGER_H 22 #define Tulip_QGLBUFFERMANAGER_H 26 #include <tulip/tulipconf.h> 27 #include <QOpenGLFramebufferObject> 33 class TLP_QT_SCOPE QGlBufferManager {
36 static void clearBuffers();
41 static bool canUseFramebufferObject() {
42 return QOpenGLFramebufferObject::hasOpenGLFramebufferObjects();
48 static QOpenGLFramebufferObject *getFramebufferObject(
int width,
int height);
51 static std::map<std::pair<int, int>, QOpenGLFramebufferObject *> widthHeightToFramebuffer;
52 static std::map<QOpenGLFramebufferObject *, std::pair<int, int>> framebufferToWidthHeight;
56 #endif // Tulip_QGLBUFFERMANAGER_H