VTK  9.5.20250810
Public Member Functions | List of all members
vtkEGLWaylandConfig Class Reference

vtkEGLWaylandConfig More...

#include <vtkEGLWaylandConfig.h>

Inheritance diagram for vtkEGLWaylandConfig:
[legend]
Collaboration diagram for vtkEGLWaylandConfig:
[legend]

Public Member Functions

 vtkEGLWaylandConfig ()
 Setup wayland attributes.
 
 ~vtkEGLWaylandConfig ()
 
void CreateWindowSurface (EGLSurface &surface, EGLDisplay display, EGLConfig config, int width, int height) override
 Create the EGL window surface.
 
void * GetDisplay () override
 Implementation of vtkEGLConfig.
 
EGLenum GetPlatform () override
 Implementation of vtkEGLConfig.
 
void CreateContext (EGLContext &context, EGLDisplay display, EGLConfig config) override
 Implementation of vtkEGLConfig.
 
- Public Member Functions inherited from vtkEGLConfig
 vtkEGLConfig ()=default
 
virtual ~vtkEGLConfig ()=default
 
virtual void SetOnscreenRendering (bool onscreenRendering)
 Set the onscreen rendering flag.
 
virtual EGLenum GetPlatform ()=0
 Get the platform type.
 
virtual void * GetDisplay ()=0
 Get the display object.
 
virtual void CreateWindowSurface (EGLSurface &surface, EGLDisplay display, EGLConfig config, int width, int height)=0
 Create an EGL window surface.
 
virtual void CreateContext (EGLContext &context, EGLDisplay display, EGLConfig config)=0
 Create an EGL context.
 

Additional Inherited Members

- Protected Attributes inherited from vtkEGLConfig
bool OnscreenRendering = false
 

Detailed Description

vtkEGLWaylandConfig

This class is used to setup the EGL configuration for Wayland.

This wayland implementation depends on xdg-shell and not wl-shell, see: https://wayland-book.com/xdg-shell-basics.html

vtkEGLConfig vtkEGLRenderWindowInternals

Definition at line 26 of file vtkEGLWaylandConfig.h.

Constructor & Destructor Documentation

◆ vtkEGLWaylandConfig()

vtkEGLWaylandConfig::vtkEGLWaylandConfig ( )

Setup wayland attributes.

◆ ~vtkEGLWaylandConfig()

vtkEGLWaylandConfig::~vtkEGLWaylandConfig ( )

Member Function Documentation

◆ GetDisplay()

void * vtkEGLWaylandConfig::GetDisplay ( )
inlineoverridevirtual

Implementation of vtkEGLConfig.

Implements vtkEGLConfig.

Definition at line 39 of file vtkEGLWaylandConfig.h.

◆ GetPlatform()

EGLenum vtkEGLWaylandConfig::GetPlatform ( )
inlineoverridevirtual

Implementation of vtkEGLConfig.

Implements vtkEGLConfig.

Definition at line 40 of file vtkEGLWaylandConfig.h.

◆ CreateContext()

void vtkEGLWaylandConfig::CreateContext ( EGLContext &  context,
EGLDisplay  display,
EGLConfig  config 
)
overridevirtual

Implementation of vtkEGLConfig.

Implements vtkEGLConfig.

◆ CreateWindowSurface()

void vtkEGLWaylandConfig::CreateWindowSurface ( EGLSurface &  surface,
EGLDisplay  display,
EGLConfig  config,
int  width,
int  height 
)
overridevirtual

Create the EGL window surface.

If the vtkEGLRenderWindow required offscreen rendering, the surface is created using a pbuffer surface.

Requires the wl_display and wl_surface to be set.

Implements vtkEGLConfig.


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