![]() |
NDEVR
API Documentation
|
Buffer for storing data in the OpenGL engine, usually for rendering. More...
Public Member Functions | |
| GLESGraphicsDevice () | |
| Default constructor. | |
| virtual | ~GLESGraphicsDevice () |
| Destructor. | |
| const GLCapabilities & | capabilities () const |
| Returns the hardware capabilities of this device. | |
| QOpenGLContext * | context () |
| Returns the Qt OpenGL context. | |
| virtual UUID | id () const override |
| Returns the unique identifier for this graphics device. | |
| virtual void | init () override |
| Initializes the graphics device. | |
| virtual const void * | initLockPtr () const override |
| Returns a pointer used for initialization locking. | |
| virtual bool | isInitialized () const override |
| Checks whether the device has been initialized. | |
| virtual bool | isReady () const override |
| Checks whether the device is ready for rendering. | |
| virtual bool | isValid () const override |
| Checks whether this device is valid. | |
| bool | makeCurrent (QSurface *surface) |
| Makes the OpenGL context current for the given surface. | |
| virtual uint04 | maxSupportedSamples () const override |
| Returns the maximum number of MSAA samples supported. | |
| QSurfaceFormat | surfaceFormat () const |
| Returns the surface format used by this device. | |
| virtual bool | updateFromLookup () const override |
| Checks whether this device updates from a lookup. | |
| Public Member Functions inherited from GraphicsDevice | |
| GraphicsDevice () | |
| Default constructor. | |
| virtual | ~GraphicsDevice () |
| Destructor. | |
| virtual bool | supportsMultiThreading () const |
| Checks whether the device supports multi-threaded rendering. | |
Static Public Member Functions | |
| static const DynamicPointer< GLESGraphicsDevice > & | DefaultGLESDevice () |
| Returns the default shared GLES graphics device singleton. | |
Protected Member Functions | |
| void | initialize () |
| Performs one-time OpenGL initialization and queries device capabilities. | |
Protected Attributes | |
| GLCapabilities | m_capabilities |
| Hardware capability limits. | |
| QOpenGLContext * | m_context = nullptr |
| The Qt OpenGL context. | |
| UUID | m_id |
| Unique identifier for this device. | |
| bool | m_is_init = false |
| Whether the device has been initialized. | |
| QOpenGLDebugLogger * | m_logger = nullptr |
| Optional OpenGL debug logger. | |
| QSurface * | m_surface = nullptr |
| The current rendering surface. | |
Static Protected Attributes | |
| static DynamicPointer< GraphicsDevice > | s_default_graphics_device |
| The singleton default graphics device. | |
Additional Inherited Members | |
| Public Attributes inherited from GraphicsDevice | |
| Resource< bool > | can_service_capture_requests |
| Whether the device can service image capture requests. | |
| Static Public Attributes inherited from GraphicsDevice | |
| static DynamicPointer< GraphicsDevice > | s_default_graphics_device |
| The application-wide default graphics device. | |
Buffer for storing data in the OpenGL engine, usually for rendering.
Definition at line 30 of file GLESGraphicsDevice.h.
|
inline |
Returns the hardware capabilities of this device.
Definition at line 91 of file GLESGraphicsDevice.h.
References m_capabilities.
|
inline |
Returns the Qt OpenGL context.
Definition at line 48 of file GLESGraphicsDevice.h.
References m_context.
|
static |
Returns the default shared GLES graphics device singleton.
Referenced by GLESGraphicsSession::DefaultSession().
|
inlineoverridevirtual |
Returns the unique identifier for this graphics device.
Implements GraphicsDevice.
Definition at line 39 of file GLESGraphicsDevice.h.
References m_id.
|
inlineoverridevirtual |
Returns a pointer used for initialization locking.
Implements GraphicsDevice.
Definition at line 85 of file GLESGraphicsDevice.h.
|
inlineoverridevirtual |
Checks whether the device has been initialized.
Implements GraphicsDevice.
Definition at line 73 of file GLESGraphicsDevice.h.
|
inlineoverridevirtual |
Checks whether the device is ready for rendering.
Reimplemented from GraphicsDevice.
Definition at line 66 of file GLESGraphicsDevice.h.
References m_is_init.
|
inlineoverridevirtual |
Checks whether this device is valid.
Implements GraphicsDevice.
Definition at line 42 of file GLESGraphicsDevice.h.
| bool GLESGraphicsDevice::makeCurrent | ( | QSurface * | surface | ) |
Makes the OpenGL context current for the given surface.
| [in] | surface | The surface to make current. |
|
inlineoverridevirtual |
Returns the maximum number of MSAA samples supported.
Implements GraphicsDevice.
Definition at line 54 of file GLESGraphicsDevice.h.
| QSurfaceFormat GLESGraphicsDevice::surfaceFormat | ( | ) | const |
Returns the surface format used by this device.
|
inlineoverridevirtual |
Checks whether this device updates from a lookup.
Reimplemented from GraphicsDevice.
Definition at line 79 of file GLESGraphicsDevice.h.