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

The SurfaceContext handle is used to identify an OpenGL context that is used by the rendering thread. More...

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

Public Member Functions

 operator bool () const
 Tests if the handle is valid.
 
bool operator!= (const SurfaceContextHandle &other) const
 Not equals operator.
 
bool operator== (const SurfaceContextHandle &other) const
 Equality operator.
 

Public Attributes

voidhandle
 Opaque platform specific handle.
 

Detailed Description

The SurfaceContext handle is used to identify an OpenGL context that is used by the rendering thread.

The context may have 0 to many Surface handles associated with the context.

Member Function Documentation

◆ operator bool()

kanzi::platform::OpenGLPlatform::SurfaceContextHandle::operator bool ( ) const
inlineexplicit

Tests if the handle is valid.

◆ operator==()

bool kanzi::platform::OpenGLPlatform::SurfaceContextHandle::operator== ( const SurfaceContextHandle & other) const
inline

Equality operator.

◆ operator!=()

bool kanzi::platform::OpenGLPlatform::SurfaceContextHandle::operator!= ( const SurfaceContextHandle & other) const
inline

Not equals operator.

Member Data Documentation

◆ handle

void* kanzi::platform::OpenGLPlatform::SurfaceContextHandle::handle

Opaque platform specific handle.


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