Qt 4.8
Public Functions | Properties | List of all members
QBBGLPaintDevice Class Reference

#include <qbbglwindowsurface.h>

Inheritance diagram for QBBGLPaintDevice:
QGLPaintDevice QPaintDevice

Public Functions

virtual QGLContextcontext () const
 
virtual QPaintEnginepaintEngine () const
 
 QBBGLPaintDevice (QBBGLContext *platformGlContext)
 
virtual QSize size () const
 
virtual ~QBBGLPaintDevice ()
 
- Public Functions inherited from QGLPaintDevice
virtual bool alphaRequested () const
 
virtual void beginPaint ()
 
int devType () const
 
virtual void endPaint ()
 
virtual void ensureActiveTarget ()
 
virtual QGLFormat format () const
 
virtual bool isFlipped () const
 
 QGLPaintDevice ()
 
virtual ~QGLPaintDevice ()
 
- Public Functions inherited from QPaintDevice
int colorCount () const
 
int depth () const
 
virtual HDC getDC () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
QT_DEPRECATED int numColors () const
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
virtual void releaseDC (HDC hdc) const
 
int width () const
 
int widthMM () const
 
virtual ~QPaintDevice ()
 

Properties

QGLContextmGlContext
 
QBBGLContextmPlatformGlContext
 

Additional Inherited Members

- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
 
- Static Public Functions inherited from QGLPaintDevice
static QGLPaintDevicegetDevice (QPaintDevice *)
 
- Static Public Functions inherited from QPaintDevice
static QWSDisplayqwsDisplay ()
 
- Protected Functions inherited from QGLPaintDevice
int metric (QPaintDevice::PaintDeviceMetric metric) const
 
- Protected Functions inherited from QPaintDevice
 QPaintDevice ()
 
- Protected Variables inherited from QGLPaintDevice
GLuint m_previousFBO
 
GLuint m_thisFBO
 
- Protected Variables inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 56 of file qbbglwindowsurface.h.

Constructors and Destructors

◆ QBBGLPaintDevice()

QBBGLPaintDevice::QBBGLPaintDevice ( QBBGLContext platformGlContext)

Definition at line 58 of file qbbglwindowsurface.cpp.

59  : mPlatformGlContext(platformGlContext)
60 {
61  // create GL context from platform GL context
62  mGlContext = QGLContext::fromPlatformGLContext(mPlatformGlContext);
63 }
QBBGLContext * mPlatformGlContext
QGLContext * mGlContext

◆ ~QBBGLPaintDevice()

QBBGLPaintDevice::~QBBGLPaintDevice ( )
virtual

Definition at line 65 of file qbbglwindowsurface.cpp.

66 {
67  // cleanup GL context
68  delete mGlContext;
69 }
QGLContext * mGlContext

Functions

◆ context()

virtual QGLContext* QBBGLPaintDevice::context ( ) const
inlinevirtual

Implements QGLPaintDevice.

Definition at line 64 of file qbbglwindowsurface.h.

64 { return mGlContext; }
QGLContext * mGlContext

◆ paintEngine()

QPaintEngine * QBBGLPaintDevice::paintEngine ( ) const
virtual

Implements QPaintDevice.

Definition at line 71 of file qbbglwindowsurface.cpp.

72 {
73  // select a paint engine based on configued OpenGL version
74  return qt_qgl_paint_engine();
75 }
Q_OPENGL_EXPORT QPaintEngine * qt_qgl_paint_engine()
Definition: qgl.cpp:5530

◆ size()

QSize QBBGLPaintDevice::size ( ) const
virtual

Implements QGLPaintDevice.

Definition at line 77 of file qbbglwindowsurface.cpp.

Referenced by QBBGLWindowSurface::paintDevice().

78 {
79  // get size of EGL surface
81 }
QSize surfaceSize() const
Definition: qbbglcontext.h:72
QBBGLContext * mPlatformGlContext

Properties

◆ mGlContext

QGLContext* QBBGLPaintDevice::mGlContext
private

Definition at line 68 of file qbbglwindowsurface.h.

Referenced by context(), QBBGLPaintDevice(), and ~QBBGLPaintDevice().

◆ mPlatformGlContext

QBBGLContext* QBBGLPaintDevice::mPlatformGlContext
private

Definition at line 67 of file qbbglwindowsurface.h.

Referenced by QBBGLPaintDevice(), and size().


The documentation for this class was generated from the following files: