VTK  9.7.20260805
vtkEGLMesaConfig Class Reference

#include <vtkEGLMesaConfig.h>

Detailed Description

vtkEGLMesaConfig

This class is used to setup the EGL configuration for Mesa offscreen rendering. It supports offscreen rendering using EGL_MESA_platform_surfaceless extension, with optional software rendering via EGL_MESA_device_software when available.

Recommended setup: export GALLIUM_DRIVER=llvmpipe export EGL_PLATFORM=surfaceless

vtkEGLRenderWindowInternals

Definition at line 26 of file vtkEGLMesaConfig.h.

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

Public Member Functions

 vtkEGLMesaConfig ()
 
void CreateWindowSurface (EGLSurface &surface, EGLDisplay display, EGLConfig config, int width, int height) override
 Create a surfaceless surface (EGL_NO_SURFACE).
 
void SetOnscreenRendering (bool onscreenRendering) override
 As only offscreen rendering is supported, this method is a noop and the onscreenRendering member is set to false in the constructor.
 
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
 

Additional Inherited Members

- Protected Attributes inherited from vtkEGLConfig
bool OnscreenRendering = false
 

Constructor & Destructor Documentation

◆ vtkEGLMesaConfig()

vtkEGLMesaConfig::vtkEGLMesaConfig ( )

Member Function Documentation

◆ GetDisplay()

void * vtkEGLMesaConfig::GetDisplay ( )
inlinenodiscardoverridevirtual

Implementation of vtkEGLConfig.

Implements vtkEGLConfig.

Definition at line 35 of file vtkEGLMesaConfig.h.

◆ GetPlatform()

EGLenum vtkEGLMesaConfig::GetPlatform ( )
inlinenodiscardoverridevirtual

Implementation of vtkEGLConfig.

Implements vtkEGLConfig.

Definition at line 36 of file vtkEGLMesaConfig.h.

◆ CreateContext()

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

Implementation of vtkEGLConfig.

Implements vtkEGLConfig.

◆ CreateWindowSurface()

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

Create a surfaceless surface (EGL_NO_SURFACE).

Implements vtkEGLConfig.

◆ SetOnscreenRendering()

void vtkEGLMesaConfig::SetOnscreenRendering ( bool onscreenRendering)
inlineoverridevirtual

As only offscreen rendering is supported, this method is a noop and the onscreenRendering member is set to false in the constructor.

Reimplemented from vtkEGLConfig.

Definition at line 50 of file vtkEGLMesaConfig.h.


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