Classes | |
| class | AbstractWindowSurface |
| Base class for surface-specific data. More... | |
| class | AndroidPlatformContext |
| Android platform context class. More... | |
| struct | ApiBackendBasicInfo |
| Stores basic information about API backend. More... | |
| struct | ApiBackendVersion |
| Represents API backend version. More... | |
| class | EglEmscriptenGraphicsContext |
| EGL implementation of GlGraphicsContext for Emscripten. More... | |
| class | EglGraphicsContext |
| EGL implementation of GlGraphicsContext. More... | |
| class | EglOhosGraphicsContext |
| EGL implementation of GlGraphicsContext for OpenHarmony OS. More... | |
| class | EglQnxStreamsGraphicsContext |
| EGL implementation of GlGraphicsContext for QNX streams. More... | |
| class | EglWaylandGraphicsContext |
| EGL implementation of GlGraphicsContext for Wayland. More... | |
| class | EglX11GraphicsContext |
| EGL implementation of GlGraphicsContext for X11. More... | |
| class | EmscriptenPlatformContext |
| Emscripten platform context class. More... | |
| struct | GLFunctionPointers |
| class | GlGraphicsContext |
| The OpenGL context API interface that is used by the OpenGL backend to interact with the platform. More... | |
| class | GlxGraphicsContext |
| GLX implementation of GlGraphicsContext. More... | |
| class | MacosPlatformContext |
| MacOS platform context class. More... | |
| class | PlatformContext |
| Kanzi platform context interface definition. More... | |
| class | QnxPlatformContext |
| QNX platform context class. More... | |
| class | QnxStreamsSurface |
| Surface abstraction for QNX streams. More... | |
| class | StandardSurface |
| Standard surface abstraction. More... | |
| class | StubPlatformContext |
| Stub platform context class. More... | |
| struct | SurfaceBits |
| Describes the bit representation of a surface buffer. More... | |
| struct | SurfaceProperties |
| Describes the properties of a surface. More... | |
| class | WaylandPlatformContext |
| Wayland platform context class. More... | |
| class | WglGraphicsContext |
| WGL implementation of GlGraphicsContext. More... | |
| class | Win32PlatformContext |
| Win32 platform context class. More... | |
| class | X11PlatformContext |
| X11 platform context class. More... | |
Typedefs | |
| using | EGLSurface |
| Alias for different types of EGL surfaces. | |
| template<typename Return = void, typename... Args> | |
| using | function_ptr |
| using | NativeSurfaceHandle |
| Information necessary for native surfaces such as windows. | |
| template<typename Return = void, typename... Args> | |
| using | std_function_ptr |
Enumerations | |
| enum class | APIBackend : uint8_t { OpenGL , OpenGLES , Vulkan , Unknown , Count } |
| Defines the available API backend implementations. More... | |
| enum class | ColorSpace : uint8_t { sRGB , DisplayP3 , BT2020 , HDR10 , Count } |
| Defines the color space options for an image or frame buffer. More... | |
| enum class | MultisampleCount : uint8_t { NoMSAA , MSAAx2 , MSAAx4 , MSAAx8 , MSAAx16 , MSAAx32 } |
| Defines the available numbers of samples for multisample anti-aliasing (MSAA). More... | |
| enum class | PlatformFeatureId { sRGBSurface , Count } |
| Defines the platform features that can be present or missing on a specific platform. More... | |
| enum class | PresentMode : uint8_t { Immediate , FIFO , FIFORelaxed , Mailbox } |
| Defines the options for surface present mode. More... | |
| enum class | SwapBehavior : uint8_t { Preserved , Destroyed , Unspecified } |
| Defines the options for surface swap behavior. More... | |
Information necessary for native surfaces such as windows.
The underlying objects are platform specific, such as HWND on Windows, ANativeWindow* on Android, xcb_window_t on X11, wl_surface* on Wayland and so on.
Alias for different types of EGL surfaces.
|
strong |
|
strong |
|
strong |
Defines the options for surface present mode.
|
strong |
|
inline |
Converts a PlatformFeatureId to a string.
| feature | The platform feature id. |
|
inline |
Gets kanzi graphics multi sample count from an integral sample count.
| sampleCount | The integral sample count. |
| auto kanzi::platform::loadGlFunction | ( | platform::GlGraphicsContext & | glContextApi | ) |
Acquires a GL function pointer.
If GL function is defined, returns a pointer to it. If GL function is not defined, acquires the pointer by using platform-specific xxxGetProcAddress().
| Loader | GL function loader generated by KANZI_GENERATE_GL_LOADER(). |
| glContextApi | GL context API to use. |
| KZ_NO_DISCARD SurfaceProperties kanzi::platform::asPlatformSurfaceProperties | ( | const SystemConfiguration & | configuration | ) |
Create a SurfaceProperties struct based on SystemConfiguration.
| void kanzi::platform::createDefaultPlatformContext | ( | const SystemConfiguration & | configuration | ) |
Creates default PlatformContext singleton.
This function is thread-safe. This function blocks until all pointers returned from getDefaultPlatformContext() have been destructed.
| configuration | System configuration. |
| void kanzi::platform::destroyDefaultPlatformContext | ( | ) |
Destroys default PlatformContext singleton.
This function is thread-safe. This function blocks until all pointers returned from getDefaultPlatformContext() have been destructed.
| KZ_NO_DISCARD SharedLockedPtr< PlatformContext > kanzi::platform::getDefaultPlatformContext | ( | ) |
Queries default PlatformContext singleton.
This function is thread-safe. This function blocks while createDefaultPlatformContext() or destroyDefaultPlatformContext() is executing.