|
HDK
|
#include <RE_OpenGLDrawable.h>
Inheritance diagram for RE_OpenGLDrawable:Public Member Functions | |
| RE_OpenGLDrawable (const QSurfaceFormat &format) | |
| RE_OpenGLDrawable (const QSurfaceFormat &format, QWidget *parent, QOpenGLContext *sharedContext) | |
| ~RE_OpenGLDrawable () override | |
| void | setREWindow (RE_Window *window) |
| const RE_Window * | getREWindow () const |
| Return the window that the drawable is currently assigned to. More... | |
| QOpenGLContext * | context () |
| void | makeCurrent () |
| Make this drawable's context the current OpenGL context. More... | |
| void | doneCurrent () |
| void | swapBuffers () |
| Swap the front and back buffers in the drawable's OpenGL context. More... | |
| QPaintDevice * | stylePaintDevice () |
| QPaintEngine * | paintEngine () const override |
| int | samples () const |
| Multisample sample count this drawable was created with (-1 if none). More... | |
| RE_WindowDrawablePainter & | painter () |
| Return the Painter used to paint the contents of the drawable. More... | |
| void | initializeGL () |
Static Public Member Functions | |
| static const char * | widgetTag () |
| static const char * | drawableSurfaceTag () |
| static const char * | widgetWrapperTag () |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| void | resizeEvent (QResizeEvent *event) override |
| void | showEvent (QShowEvent *event) override |
Window drawable that uses OpenGL and QPainter for the new UI path. The drawable is a QWidget that manages its own OpenGL context and is backed by a QWindow with a OpenGL surface type.
Definition at line 49 of file RE_OpenGLDrawable.h.
| RE_OpenGLDrawable::RE_OpenGLDrawable | ( | const QSurfaceFormat & | format | ) |
| RE_OpenGLDrawable::RE_OpenGLDrawable | ( | const QSurfaceFormat & | format, |
| QWidget * | parent, | ||
| QOpenGLContext * | sharedContext | ||
| ) |
|
override |
| QOpenGLContext* RE_OpenGLDrawable::context | ( | ) |
Return the OpenGL context tied to this drawable. If the context has not yet been initialized, then return nullptr.
| void RE_OpenGLDrawable::doneCurrent | ( | ) |
Clear this drawable's context as the current context. Do nothing if the drawable's context is not the current context.
|
inlinestatic |
Return the string tag used to identify whether a QWindow is used a drawable surface for Houdini.
Definition at line 92 of file RE_OpenGLDrawable.h.
|
inline |
Return the window that the drawable is currently assigned to.
Definition at line 63 of file RE_OpenGLDrawable.h.
| void RE_OpenGLDrawable::initializeGL | ( | ) |
| void RE_OpenGLDrawable::makeCurrent | ( | ) |
Make this drawable's context the current OpenGL context.
|
inlineoverride |
Definition at line 83 of file RE_OpenGLDrawable.h.
| RE_WindowDrawablePainter& RE_OpenGLDrawable::painter | ( | ) |
Return the Painter used to paint the contents of the drawable.
|
overrideprotected |
|
overrideprotected |
|
inline |
Multisample sample count this drawable was created with (-1 if none).
Definition at line 86 of file RE_OpenGLDrawable.h.
Assign the drawable to the given window. The given drawable will be used to render the contents of the window.
|
overrideprotected |
| QPaintDevice* RE_OpenGLDrawable::stylePaintDevice | ( | ) |
Return the drawable's paint device that QPainter objects should paint to.
| void RE_OpenGLDrawable::swapBuffers | ( | ) |
Swap the front and back buffers in the drawable's OpenGL context.
|
inlinestatic |
Definition at line 88 of file RE_OpenGLDrawable.h.
|
inlinestatic |
Return the string tag used to identify whether a QWidget is the wrapper widget of a drawable in Houdini.
Definition at line 97 of file RE_OpenGLDrawable.h.