Kanzi 4.0.0
kanzi::platform::GlContextApi::InitializationInfo Struct Reference

The initialization parameters for the OpenGL context API. More...

#include <kanzi/platform/platform/context/gl_context_api.hpp>

Public Attributes

bool createESContext
 If supported, create an OpenGL ES context instead of OpenGL.
 
SurfaceProperties surfaceProperties
 The properties of the off-screen pixel buffer.
 

Detailed Description

The initialization parameters for the OpenGL context API.

Member Data Documentation

◆ surfaceProperties

SurfaceProperties kanzi::platform::GlContextApi::InitializationInfo::surfaceProperties

The properties of the off-screen pixel buffer.

This pixel buffer is never drawn to directly, but specifies information openGL needs in order to process commands. If this surfaceProperties matches the surfaceProperties of windows created through this API, the OpenGL backend is able to re-use many of it's created objects for both on-screen and off-screen rendering.

◆ createESContext

bool kanzi::platform::GlContextApi::InitializationInfo::createESContext

If supported, create an OpenGL ES context instead of OpenGL.


The documentation for this struct was generated from the following file: