Kanzi 4.0.0
OpenGL
Collaboration diagram for OpenGL:

Classes

class  kanzi::platform::GlContextApi
 The OpenGL context API interface that is used by the OpenGL backend to interact with the platform. More...
 
struct  kanzi::gfx::OpenGLInitializationInfo
 Defines the initialization parameters for the OpenGL backend. More...
 

Functions

shared_ptr< GlContextApikanzi::platform::createDefaultGlContextApi (Platform &platform, GlContextApi::InitializationInfo &&info)
 Creates the default OpenGL context API implementation for the current platform.
 
KANZI_GFX_API shared_ptr< AbstractBackendkanzi::gfx::createOpenGLBackend (OpenGLInitializationInfo &&info)
 Creates an OpenGL 4.x and OpenGLES 3.x compatible backend for the graphics library.
 

Detailed Description

The OpenGL and OpenGL ES backend exposes the graphics library that uses OpenGL.

Function Documentation

◆ createOpenGLBackend()

KANZI_GFX_API shared_ptr< AbstractBackend > kanzi::gfx::createOpenGLBackend ( OpenGLInitializationInfo && info)

Creates an OpenGL 4.x and OpenGLES 3.x compatible backend for the graphics library.

You can call this function before the graphics initialization.

Parameters
infoThe OpenGL backend configuration information.
Returns
A pointer to the created backend. If OpenGL is not available on the platform, returns a nullptr.
Since
Kanzi 4.0.0

◆ createDefaultGlContextApi()

shared_ptr< GlContextApi > kanzi::platform::createDefaultGlContextApi ( Platform & platform,
GlContextApi::InitializationInfo && info )

Creates the default OpenGL context API implementation for the current platform.

You can call this function before the graphics initialization.

Parameters
platformReference to the platform library.
infoThe OpenGL context API configuration information.
Returns
A pointer to the newly created GL context API interface.
Since
Kanzi 4.0.0
Attention
This feature is experimental and is likely to change in future releases.