Kanzi 4.1.0
kanzi::platform::AbstractWindowSurface Class Referenceabstract

Base class for surface-specific data. More...

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

Inheritance diagram for kanzi::platform::AbstractWindowSurface:
[legend]

Public Member Functions

 AbstractWindowSurface (AbstractWindowSurface &&) noexcept=delete
 Move constructor.
 
 AbstractWindowSurface (const AbstractWindowSurface &) noexcept=delete
 Copy constructor.
 
virtual KZ_NO_DISCARD ::EGLSurface getNativeSurface () const noexcept=0
 Gets the underlying EGL surface handle.
 
AbstractWindowSurfaceoperator= (AbstractWindowSurface &&) noexcept=delete
 Move assignment operator.
 
AbstractWindowSurfaceoperator= (const AbstractWindowSurface &) noexcept=delete
 Copy assignment operator.
 
virtual bool swapBuffers () noexcept=0
 Swaps EGL buffers.
 
virtual ~AbstractWindowSurface () noexcept=default
 Destructor.
 

Protected Member Functions

 AbstractWindowSurface () noexcept=default
 Constructor.
 

Detailed Description

Base class for surface-specific data.

Subclass this to provide a custom EGL window surface implementation. For the standard EGL window and pixmap surface case, use StandardSurface. For QNX stream-based surfaces, use QnxStreamsSurface.

Since
Kanzi 4.1.0
Attention
This feature is experimental and is likely to change in future releases.

Constructor & Destructor Documentation

◆ ~AbstractWindowSurface()

virtual kanzi::platform::AbstractWindowSurface::~AbstractWindowSurface ( )
virtualdefaultnoexcept

Destructor.

◆ AbstractWindowSurface() [1/3]

kanzi::platform::AbstractWindowSurface::AbstractWindowSurface ( const AbstractWindowSurface & )
deletenoexcept

Copy constructor.

◆ AbstractWindowSurface() [2/3]

kanzi::platform::AbstractWindowSurface::AbstractWindowSurface ( AbstractWindowSurface && )
deletenoexcept

Move constructor.

◆ AbstractWindowSurface() [3/3]

kanzi::platform::AbstractWindowSurface::AbstractWindowSurface ( )
explicitprotecteddefaultnoexcept

Constructor.

Member Function Documentation

◆ operator=() [1/2]

AbstractWindowSurface & kanzi::platform::AbstractWindowSurface::operator= ( const AbstractWindowSurface & )
deletenoexcept

Copy assignment operator.

◆ operator=() [2/2]

AbstractWindowSurface & kanzi::platform::AbstractWindowSurface::operator= ( AbstractWindowSurface && )
deletenoexcept

Move assignment operator.

◆ getNativeSurface()

virtual KZ_NO_DISCARD ::EGLSurface kanzi::platform::AbstractWindowSurface::getNativeSurface ( ) const
pure virtualnoexcept

Gets the underlying EGL surface handle.

Returns
Native EGLSurface.

Implemented in kanzi::platform::StandardSurface, and kanzi::platform::QnxStreamsSurface.

◆ swapBuffers()

virtual bool kanzi::platform::AbstractWindowSurface::swapBuffers ( )
pure virtualnoexcept

Swaps EGL buffers.

Returns
On success, true, otherwise false.

Implemented in kanzi::platform::StandardSurface, and kanzi::platform::QnxStreamsSurface.


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