Qt 4.8
Public Functions | Properties | List of all members
EAGLPaintDevice Class Reference
Inheritance diagram for EAGLPaintDevice:
QGLPaintDevice QPaintDevice

Public Functions

QGLContextcontext () const
 
int devType () const
 
 EAGLPaintDevice (QPlatformWindow *window)
 
QPaintEnginepaintEngine () const
 
void setFramebuffer (GLuint buffer)
 
QSize size () const
 
 ~EAGLPaintDevice ()
 
- Public Functions inherited from QGLPaintDevice
virtual bool alphaRequested () const
 
virtual void beginPaint ()
 
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

PaintDeviceHelperhelper
 
QPlatformWindowmWindow
 

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 62 of file quikitwindowsurface.mm.

Constructors and Destructors

◆ EAGLPaintDevice()

EAGLPaintDevice::EAGLPaintDevice ( QPlatformWindow window)
inline

Definition at line 65 of file quikitwindowsurface.mm.

66  :QGLPaintDevice(), mWindow(window)
67  {
68 #if defined(QT_OPENGL_ES_2)
69  helper = [[PaintDeviceHelper alloc] init];
70  helper.device = this;
71  EAGLView *view = static_cast<QUIKitWindow *>(window)->nativeView();
72  view.delegate = helper;
73  m_thisFBO = view.fbo;
74 #endif
75  }
EAGLPaintDevice * device
GLint fbo
Definition: quikitwindow.h:84
QPlatformWindow * mWindow
NSWindow * window
PaintDeviceHelper * helper

◆ ~EAGLPaintDevice()

EAGLPaintDevice::~EAGLPaintDevice ( )
inline

Definition at line 77 of file quikitwindowsurface.mm.

78  {
79 #if defined(QT_OPENGL_ES_2)
80  [helper release];
81 #endif
82  }

Functions

◆ context()

QGLContext* EAGLPaintDevice::context ( ) const
inlinevirtual

Implements QGLPaintDevice.

Definition at line 87 of file quikitwindowsurface.mm.

87 { return QGLContext::fromPlatformGLContext(mWindow->glContext()); }
QPlatformWindow * mWindow
virtual QPlatformGLContext * glContext() const
Reimplement to return the glContext associated with the window.

◆ devType()

int EAGLPaintDevice::devType ( ) const
inlinevirtual

Reimplemented from QGLPaintDevice.

Definition at line 85 of file quikitwindowsurface.mm.

◆ paintEngine()

QPaintEngine* EAGLPaintDevice::paintEngine ( ) const
inlinevirtual

Implements QPaintDevice.

Definition at line 89 of file quikitwindowsurface.mm.

89 { return qt_qgl_paint_engine(); }
Q_OPENGL_EXPORT QPaintEngine * qt_qgl_paint_engine()
Definition: qgl.cpp:5530

◆ setFramebuffer()

void EAGLPaintDevice::setFramebuffer ( GLuint  buffer)
inline

Definition at line 84 of file quikitwindowsurface.mm.

84 { m_thisFBO = buffer; }

◆ size()

QSize EAGLPaintDevice::size ( ) const
inlinevirtual

Implements QGLPaintDevice.

Definition at line 86 of file quikitwindowsurface.mm.

86 { return mWindow->geometry().size(); }
virtual QRect geometry() const
Returnes the current geometry of a window.
QPlatformWindow * mWindow
QSize size() const
Returns the size of the rectangle.
Definition: qrect.h:309

Properties

◆ helper

PaintDeviceHelper* EAGLPaintDevice::helper
private

Definition at line 93 of file quikitwindowsurface.mm.

Referenced by ~EAGLPaintDevice().

◆ mWindow

QPlatformWindow* EAGLPaintDevice::mWindow
private

Definition at line 92 of file quikitwindowsurface.mm.


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