VTK  9.7.1
vtkEGLAndroidConfig.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 #ifndef vtkEGLAndroidConfig_h
4 #define vtkEGLAndroidConfig_h
5 
6 #include "Private/vtkEGLConfig.h"
7 #include "vtkABINamespace.h"
8 
9 #include <android/native_window.h>
10 
11 VTK_ABI_NAMESPACE_BEGIN
12 
20 {
21 public:
27 
29 
32  [[nodiscard]] void* GetDisplay() override { return EGL_NO_DISPLAY; }
33  [[nodiscard]] EGLenum GetPlatform() override { return EGL_PLATFORM_DEVICE_EXT; }
34  void CreateContext(EGLContext& context, EGLDisplay display, EGLConfig config) override;
36 
41  EGLSurface& surface, EGLDisplay display, EGLConfig config, int width, int height) override;
42 
47  void SetOnscreenRendering([[maybe_unused]] bool onscreenRendering) override { /*noop*/ }
48 
49 private:
50  EGLNativeWindowType Window;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif
vtkEGLAndroidConfig
void * GetDisplay() override
Implementation of vtkEGLConfig.
void CreateWindowSurface(EGLSurface &surface, EGLDisplay display, EGLConfig config, int width, int height) override
Create the window surface.
void CreateContext(EGLContext &context, EGLDisplay display, EGLConfig config) override
Implementation of vtkEGLConfig.
vtkEGLAndroidConfig()
Constructor for vtkEGLAndroidConfig.
void SetOnscreenRendering([[maybe_unused]] bool onscreenRendering) override
As only onscreen rendering is supported, this method is a noop and the onscreenRendering member is se...
Base class for EGL configuration.
Definition: vtkEGLConfig.h:22
EGLenum GetPlatform() override
Implementation of vtkEGLConfig.