Kanzi 4.1.2
kanzi::platform::EglGraphicsContext::ContextData Struct Reference

Context-specific data. More...

#include <kanzi/platform/platform/gl/graphics_context/egl/egl_graphics_context.hpp>

Public Attributes

ThreadNodePtr associatedThread
 Associated thread.
 
EGLConfig config
 EGL config used to create this context.
 
EGLContext context
 EGL context.
 
SurfaceNodePtr dummySurface
 Default dummy surface.
 
bool isConfigless
 Indicates whether this context was created without an EGL config.
 
bool isThreadContext
 Indicates whether this context was created for a thread by createThreadContext().
 
::EGLSurface lastUsedEGLSurface
 EGL surface that was bound when this context was last made current.
 
SurfaceNodePtr lastUsedSurface
 Last used surface.
 

Detailed Description

Context-specific data.

Member Data Documentation

◆ context

EGLContext kanzi::platform::EglGraphicsContext::ContextData::context

EGL context.

◆ dummySurface

SurfaceNodePtr kanzi::platform::EglGraphicsContext::ContextData::dummySurface

Default dummy surface.

Needed in case surfaceless context is not supported.

◆ lastUsedSurface

SurfaceNodePtr kanzi::platform::EglGraphicsContext::ContextData::lastUsedSurface

Last used surface.

◆ associatedThread

ThreadNodePtr kanzi::platform::EglGraphicsContext::ContextData::associatedThread

Associated thread.

Indicates which thread uses this context.

◆ config

EGLConfig kanzi::platform::EglGraphicsContext::ContextData::config

EGL config used to create this context.

For a context created without a config, the config that selects its client version and dummy surface.

◆ isThreadContext

bool kanzi::platform::EglGraphicsContext::ContextData::isThreadContext

Indicates whether this context was created for a thread by createThreadContext().

A thread context is owned by the thread that requested it and never renders a window surface.

Since
Kanzi 4.1.2

◆ isConfigless

bool kanzi::platform::EglGraphicsContext::ContextData::isConfigless

Indicates whether this context was created without an EGL config.

Such a context can be made current with a surface of any config that has its client version.

Since
Kanzi 4.1.2

◆ lastUsedEGLSurface

::EGLSurface kanzi::platform::EglGraphicsContext::ContextData::lastUsedEGLSurface

EGL surface that was bound when this context was last made current.

A surface node can change its EGL surface, as a QNX stream surface does on every swap.

Since
Kanzi 4.1.2

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