Kanzi 4.0.0-beta2
OpenGL
Collaboration diagram for OpenGL:

Classes

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

Functions

shared_ptr< OpenGLPlatformkanzi::platform::createDefaultOpenGLPlatform (OpenGLPlatform::InitializationInfo &&info)
 Creates the default OpenGL platform implementation for the current platform.
 
KANZI_GFX_API shared_ptr< AbstractBackendkanzi::gfx::createOpenGLBackend (const 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 ( const 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

◆ createDefaultOpenGLPlatform()

shared_ptr< OpenGLPlatform > kanzi::platform::createDefaultOpenGLPlatform ( OpenGLPlatform::InitializationInfo && info)

Creates the default OpenGL platform implementation for the current platform.

You can call this function before the graphics initialization.

Parameters
infoThe OpenGL platform configuration information.
Returns
A pointer to the newly created platform interface.
Since
Kanzi 4.0.0