! 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. */
| 732 | capability of the graphics hardware, the highest supported multisampling is used. |
| 733 | */ |
| 734 | QCPPaintBufferGlPbuffer::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 | |
| 742 | QCPPaintBufferGlPbuffer::~QCPPaintBufferGlPbuffer() |
| 743 | { |
nothing calls this directly
no outgoing calls
no test coverage detected