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

Method QCPPaintBufferGlPbuffer

qcustomplot/qcustomplot.cpp:734–740  ·  view source on GitHub ↗

! Creates a \ref QCPPaintBufferGlPbuffer instance with the specified \a size and \a devicePixelRatio, if applicable. The parameter \a multisamples defines how many samples are used per pixel. Higher values thus result in higher quality antialiasing. If the specified \a multisamples value exceeds the capability of the graphics hardware, the highest supported multisampling is used. */

Source from the content-addressed store, hash-verified

732 capability of the graphics hardware, the highest supported multisampling is used.
733*/
734QCPPaintBufferGlPbuffer::QCPPaintBufferGlPbuffer(const QSize &size, double devicePixelRatio, int multisamples) :
735 QCPAbstractPaintBuffer(size, devicePixelRatio),
736 mGlPBuffer(0),
737 mMultisamples(qMax(0, multisamples))
738{
739 QCPPaintBufferGlPbuffer::reallocateBuffer();
740}
741
742QCPPaintBufferGlPbuffer::~QCPPaintBufferGlPbuffer()
743{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected