Kanzi 4.0.0-beta2
kanzi::platform::OpenGLPlatform::InitializationInfo Struct Reference

The initialization parameters for the OpenGL platform. More...

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

Public Attributes

bool createESContext
 If supported, create an OpenGL ES context instead of OpenGL.
 
SharedLockedPtr< Platformplatform
 Platform instance pointer.
 
SurfaceProperties surfaceProperties
 The properties of the off-screen pixel buffer.
 

Detailed Description

The initialization parameters for the OpenGL platform.

Member Data Documentation

◆ platform

SharedLockedPtr<Platform> kanzi::platform::OpenGLPlatform::InitializationInfo::platform

Platform instance pointer.

◆ surfaceProperties

SurfaceProperties kanzi::platform::OpenGLPlatform::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::OpenGLPlatform::InitializationInfo::createESContext

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


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