VTK  9.7.20260805
vtkEGLMesaConfig.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef vtkEGLMesaConfig_h
5#define vtkEGLMesaConfig_h
6
8#include "vtkABINamespace.h"
9#include "vtkSetGet.h" // for vtkNotUsed
10
11VTK_ABI_NAMESPACE_BEGIN
12
27{
28public:
30
32
35 [[nodiscard]] void* GetDisplay() override { return nullptr; }
36 [[nodiscard]] EGLenum GetPlatform() override { return EGL_PLATFORM_SURFACELESS_MESA; }
37 void CreateContext(EGLContext& context, EGLDisplay display, EGLConfig config) override;
39
44 EGLSurface& surface, EGLDisplay display, EGLConfig config, int width, int height) override;
45
50 void SetOnscreenRendering(bool vtkNotUsed(onscreenRendering)) override { /*noop*/ }
51};
52
53VTK_ABI_NAMESPACE_END
54
55#endif
vtkEGLConfig()=default
void CreateContext(EGLContext &context, EGLDisplay display, EGLConfig config) override
Implementation of vtkEGLConfig.
void SetOnscreenRendering(bool onscreenRendering) override
As only offscreen rendering is supported, this method is a noop and the onscreenRendering member is s...
void CreateWindowSurface(EGLSurface &surface, EGLDisplay display, EGLConfig config, int width, int height) override
Create a surfaceless surface (EGL_NO_SURFACE).
void * GetDisplay() override
Implementation of vtkEGLConfig.
EGLenum GetPlatform() override
Implementation of vtkEGLConfig.