Kanzi 4.0.0
kanzi::platform::GlContextApi::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/gl_context_api.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

void * handle
 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::GlContextApi::SurfaceContextHandle::operator bool ( ) const
inlineexplicit

Tests if the handle is valid.

◆ operator==()

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

Equality operator.

◆ operator!=()

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

Not equals operator.

Member Data Documentation

◆ handle

void* kanzi::platform::GlContextApi::SurfaceContextHandle::handle

Opaque platform specific handle.


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