MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / QCPPaintBufferGlFbo

Method QCPPaintBufferGlFbo

qcustomplot/qcustomplot.cpp:830–837  ·  view source on GitHub ↗

! 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

Source from the content-addressed store, hash-verified

828 instance.
829*/
830QCPPaintBufferGlFbo::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
839QCPPaintBufferGlFbo::~QCPPaintBufferGlFbo()
840{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected