! Creates a \ref QCPPaintBufferGlFbo instance with the specified \a size and \a devicePixelRatio, if applicable. All frame buffer objects shall share one OpenGL context and paint device, which need to be set up externally and passed via \a glContext and \a glPaintDevice. The set-up is done in \ref QCustomPlot::setupOpenGl and the context and paint device are managed by the parent QCusto
| 828 | instance. |
| 829 | */ |
| 830 | QCPPaintBufferGlFbo::QCPPaintBufferGlFbo(const QSize &size, double devicePixelRatio, QWeakPointer<QOpenGLContext> glContext, QWeakPointer<QOpenGLPaintDevice> glPaintDevice) : |
| 831 | QCPAbstractPaintBuffer(size, devicePixelRatio), |
| 832 | mGlContext(glContext), |
| 833 | mGlPaintDevice(glPaintDevice), |
| 834 | mGlFrameBuffer(0) |
| 835 | { |
| 836 | QCPPaintBufferGlFbo::reallocateBuffer(); |
| 837 | } |
| 838 | |
| 839 | QCPPaintBufferGlFbo::~QCPPaintBufferGlFbo() |
| 840 | { |
nothing calls this directly
no outgoing calls
no test coverage detected