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

The ThreadContext handle is used to identify an OpenGL context that is used by user threads to perform OpenGL operations on behalf of 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 ThreadContextHandle &other) const
 Not equals operator.
 
bool operator== (const ThreadContextHandle &other) const
 Equality operator.
 

Public Attributes

voidhandle
 Opaque platform specific handle.
 

Detailed Description

The ThreadContext handle is used to identify an OpenGL context that is used by user threads to perform OpenGL operations on behalf of the rendering thread.

Member Function Documentation

◆ operator bool()

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

Tests if the handle is valid.

◆ operator==()

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

Equality operator.

◆ operator!=()

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

Not equals operator.

Member Data Documentation

◆ handle

void* kanzi::platform::OpenGLPlatform::ThreadContextHandle::handle

Opaque platform specific handle.


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