DefaultGlGraphicsOutput class. More...
#include <kanzi/core.ui/platform/graphics_output/default/default_gl_graphics_output.hpp>
Public Member Functions | |
| void | activate () override |
| Makes the graphics output active for the current thread. More... | |
| void * | createImage (void *context, int target, void *data, int *attributes) override |
| Function for creating native image object, which can be shared between client APIs. More... | |
| DefaultGlGraphicsOutput (const struct KzsSurfaceProperties *surfaceProperties, const NativeWindowProperties *windowProperties) | |
| Constructor. More... | |
| DefaultGlGraphicsOutput (NativeWindowHandle handle, const struct KzsSurfaceProperties *surfaceProperties, const NativeWindowProperties *windowProperties) | |
| Constructor. More... | |
| void | destroyImage (void *image) override |
| Function for destroying native image object. More... | |
| SurfaceColorSpace | getColorSpace () const override |
| Gets the color space of the graphics context. More... | |
| void * | getContextHandle () const override |
| Gets the handle of associated graphics context object. More... | |
| struct KzsDesktop * | getDesktop () const |
| Gets associated legacy desktop. More... | |
| struct KzsDisplay * | getDisplay (size_t index) const |
| Access associated legacy display by index. More... | |
| void * | getDisplayHandle () const override |
| Gets the handle of display associated to the graphics output. More... | |
| KzsGraphicsContextAPI | getGraphicsContextAPI () const override |
| Gets the API used by the associated graphics context. More... | |
| NativeInputHandle | getNativeInputHandle () |
| Gets the associated native input handle. More... | |
| kzsGLProcPointer | getProcAddress (string_view functionName) override |
| Gets pointer to graphics API function. More... | |
| struct KzsSurface * | getSurface () const |
| Gets associated legacy surface. More... | |
| KzsSurfaceType | getSurfaceType () const override |
| Gets the type of the associated graphics surface. More... | |
| struct KzsWindow * | getWindow () const |
| Gets associated legacy window. More... | |
| void | handleEvents (EventQueue &eventQueue) override |
| Handles the window resize event. More... | |
| void | logExtensions () const override |
| Logs the extensions of the graphics context. More... | |
| void | logProperties () const override |
| Logs the properties of the graphics output. More... | |
| void | present () override |
| Posts rendering results. More... | |
| void | setSwapInterval (int interval) override |
| Sets the swap interval of the associated graphics implementation. More... | |
| ~DefaultGlGraphicsOutput () override | |
| Destructor. More... | |
Public Member Functions inherited from kanzi::GlGraphicsOutput | |
| GlGraphicsOutput () | |
| Constructor. More... | |
| ~GlGraphicsOutput () override | |
| Destructor. More... | |
Public Member Functions inherited from kanzi::GraphicsOutput | |
| unsigned int | getHeight () const |
| Returns the height of the rendering area. More... | |
| enum KzsDisplayOrientationAngle | getOrientationAngle () const |
| Returns the orientations of the rendering area. More... | |
| unsigned int | getWidth () const |
| Returns the width of the rendering area. More... | |
| GraphicsOutput () | |
| Constructor. More... | |
| virtual | ~GraphicsOutput () |
| Destructor. More... | |
Public Member Functions inherited from kanzi::WindowedGraphicsOutput | |
| NativeWindowHandle | getNativeWindowHandle () |
| Gets the associated window handle. More... | |
| void | resize (unsigned int width, unsigned int height) |
| Resizes the rendering area. More... | |
| void | setWindowTitle (string_view title) |
| Sets the window title, if possible. More... | |
| WindowedGraphicsOutput () | |
| Constructor. More... | |
| virtual | ~WindowedGraphicsOutput () |
| Destructor. More... | |
Protected Member Functions | |
| NativeWindowHandle | getNativeWindowHandleOverride () override |
| Gets the associated window handle. More... | |
| void | resizeOverride (unsigned int width, unsigned int height) override |
| Resizes the rendering area. More... | |
| void | setWindowTitleOverride (string_view title) override |
| Sets the window title. More... | |
| void | updateSizeFromWindow () |
| Resizes the surface and rendering area to match window size. More... | |
Protected Member Functions inherited from kanzi::GraphicsOutput | |
| void | updateSize (unsigned int width, unsigned int height) |
| Updates the rendering area size. More... | |
Protected Attributes | |
| struct KzsDesktop * | m_desktop |
| Legacy desktop for application. More... | |
| struct KzsSurface * | m_surface |
| System-dependent surface implementation. More... | |
| struct KzsWindow * | m_window |
| System-dependent window implementation. More... | |
DefaultGlGraphicsOutput class.
A graphics output implementation that provides basic GL rendering output.
|
explicit |
Constructor.
| surfaceProperties | Specifies properties to request for the associated GL surface. |
| windowProperties | Specifies properties to request for the associated window. |
|
explicit |
Constructor.
| handle | Handle to an existing window. |
| surfaceProperties | Specifies properties to request for the associated GL surface. |
| windowProperties | Specifies properties to request for the window. |
|
override |
Destructor.
|
overridevirtual |
Gets pointer to graphics API function.
| functionName | Name of the function. |
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Makes the graphics output active for the current thread.
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
Implements kanzi::GraphicsOutput.
|
overridevirtual |
Sets the swap interval of the associated graphics implementation.
| interval | Specifies the minimum number of video frame periods per buffer swap. Negative interval values are reserved for platform-specific special cases. |
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Gets the handle of associated graphics context object.
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Function for creating native image object, which can be shared between client APIs.
| context | Context to create the image for. |
| target | Context-specific target specifier. |
| data | Data to use as image contents. |
| attributes | Context-specific attributes list. |
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Function for destroying native image object.
| image | Image to destroy. |
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Handles the window resize event.
| eventQueue | Queue holding the events to handle. |
Implements kanzi::GraphicsOutput.
|
overridevirtual |
Logs the properties of the graphics output.
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Logs the extensions of the graphics context.
Implements kanzi::GlGraphicsOutput.
| NativeInputHandle kanzi::DefaultGlGraphicsOutput::getNativeInputHandle | ( | ) |
Gets the associated native input handle.
| struct KzsDesktop* kanzi::DefaultGlGraphicsOutput::getDesktop | ( | ) | const |
Gets associated legacy desktop.
| struct KzsWindow* kanzi::DefaultGlGraphicsOutput::getWindow | ( | ) | const |
Gets associated legacy window.
| struct KzsSurface* kanzi::DefaultGlGraphicsOutput::getSurface | ( | ) | const |
Gets associated legacy surface.
| struct KzsDisplay* kanzi::DefaultGlGraphicsOutput::getDisplay | ( | size_t | index | ) | const |
Access associated legacy display by index.
| index | Display index to access. |
|
overridevirtual |
Gets the API used by the associated graphics context.
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Gets the type of the associated graphics surface.
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Gets the color space of the graphics context.
Implements kanzi::GlGraphicsOutput.
|
overridevirtual |
Gets the handle of display associated to the graphics output.
Implements kanzi::GlGraphicsOutput.
|
overrideprotectedvirtual |
Resizes the rendering area.
Implements kanzi::WindowedGraphicsOutput.
|
overrideprotectedvirtual |
Sets the window title.
Implements kanzi::WindowedGraphicsOutput.
|
overrideprotectedvirtual |
Gets the associated window handle.
Implements kanzi::WindowedGraphicsOutput.
|
protected |
Resizes the surface and rendering area to match window size.
|
protected |
Legacy desktop for application.
|
protected |
System-dependent window implementation.
|
protected |
System-dependent surface implementation.