VTK
9.5.20250813
|
Internal class used to store and control EGL state. More...
#include <vtkEGLRenderWindowInternals.h>
Public Member Functions | |
EGLDisplay | GetDisplay () const |
Return the EGLDisplay. | |
EGLDisplay | GetSurface () const |
Return the EGLSurface. | |
void | SwapBuffer () |
Ensure to call the SwapBuffers() on the correct display and surface. | |
int | GetNumberOfDevices () |
Get the number of devices (graphic cards) from the system. | |
bool | SetDeviceAsDisplay (int deviceIndex) |
Set the wanted device for display if the device is available. | |
void | DestroyWindow () |
Release EGL window. | |
void | ConfigureWindow (int width, int height) |
Configure the current EGLWindow with the requested size. | |
void | SetDeviceIndex (int deviceIndex) |
Setter used to store the device expected by the user. | |
void | SetUseOnscreenRendering (bool useOnscreenRendering) |
Setter to handle onscreen rendering. | |
void | GetSizeFromSurface (int *size) |
Get the current size of the EGLSurface. | |
void | ReleaseCurrent () |
Release the EGL state. | |
bool | MakeCurrent () |
Try to attach the EGL rendering context to the EGL surface. | |
vtkEGLRenderWindowInternals () | |
~vtkEGLRenderWindowInternals ()=default | |
EGLContext | GetContext () const |
Get/Set the EGLContext. | |
void | SetContext (EGLContext context) |
Get/Set the EGLContext. | |
EGLNativeWindowType | GetWindow () const |
Get/Set the EGLWindow. | |
void | SetWindow (EGLNativeWindowType window) |
Get/Set the EGLWindow. | |
Internal class used to store and control EGL state.
Definition at line 19 of file vtkEGLRenderWindowInternals.h.
vtkEGLRenderWindowInternals::vtkEGLRenderWindowInternals | ( | ) |
|
default |
|
inline |
Return the EGLDisplay.
Definition at line 25 of file vtkEGLRenderWindowInternals.h.
|
inline |
Return the EGLSurface.
Definition at line 30 of file vtkEGLRenderWindowInternals.h.
|
inline |
Get/Set the EGLContext.
Definition at line 36 of file vtkEGLRenderWindowInternals.h.
|
inline |
Get/Set the EGLContext.
Definition at line 37 of file vtkEGLRenderWindowInternals.h.
|
inline |
Get/Set the EGLWindow.
Definition at line 44 of file vtkEGLRenderWindowInternals.h.
|
inline |
Get/Set the EGLWindow.
Definition at line 45 of file vtkEGLRenderWindowInternals.h.
void vtkEGLRenderWindowInternals::SwapBuffer | ( | ) |
Ensure to call the SwapBuffers() on the correct display and surface.
int vtkEGLRenderWindowInternals::GetNumberOfDevices | ( | ) |
Get the number of devices (graphic cards) from the system.
bool vtkEGLRenderWindowInternals::SetDeviceAsDisplay | ( | int | deviceIndex | ) |
Set the wanted device for display if the device is available.
Return true if it found a valid device, false otherwiise.
void vtkEGLRenderWindowInternals::DestroyWindow | ( | ) |
Release EGL window.
void vtkEGLRenderWindowInternals::ConfigureWindow | ( | int | width, |
int | height | ||
) |
Configure the current EGLWindow with the requested size.
Ensure to create the window if its not already the case.
|
inline |
Setter used to store the device expected by the user.
Definition at line 78 of file vtkEGLRenderWindowInternals.h.
void vtkEGLRenderWindowInternals::SetUseOnscreenRendering | ( | bool | useOnscreenRendering | ) |
Setter to handle onscreen rendering.
See upper class for more information espcially regarding limitations regarding platforms.
void vtkEGLRenderWindowInternals::GetSizeFromSurface | ( | int * | size | ) |
Get the current size of the EGLSurface.
void vtkEGLRenderWindowInternals::ReleaseCurrent | ( | ) |
Release the EGL state.
bool vtkEGLRenderWindowInternals::MakeCurrent | ( | ) |
Try to attach the EGL rendering context to the EGL surface.
Return false if it fails.