12#ifndef vtkSDL2WebGPURenderWindow_h
13#define vtkSDL2WebGPURenderWindow_h
15#if !defined(__EMSCRIPTEN__)
16#error "vtkSDL2WebGPURenderWindow cannot be built without emscripten!"
22#include "vtkRenderingWebGPUModule.h"
24VTK_ABI_NAMESPACE_BEGIN
26 "Please use one of the dedicated platform render window or "
27 "vtkWebAssemblyWebGPURenderWindow if your application targets WebAssembly.")
77 void SetPosition(
int,
int) override;
78 void SetPosition(
int a[2])
override { this->
SetPosition(a[0], a[1]); }
95 void SetWindowName(const
char*) override;
97 void* GetGenericWindowId()
override {
return (
void*)this->WindowId; }
139 void* WindowId =
nullptr;
a simple class to control print indentation
int * GetSize() override
Get the current size of the window in pixels.
int GetColorBufferSizes(int *rgba) override
Get the size of the color buffer.
~vtkWebAssemblyWebGPURenderWindow() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPosition(int a[2]) override
Set the position of the window.
bool Initialize() override
Initialize the rendering window.
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
void HideCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void SetShowWindow(bool val) override
Show or not Show the window.
static vtkSDL2WebGPURenderWindow * New()
void Clean()
Clean up device contexts, rendering contexts, etc.
void SetSize(int a[2]) override
Set the size of the window in pixels.
void CreateAWindow() override
Create a not-off-screen window.
vtkWebAssemblyWebGPURenderWindow()
std::string MakeDefaultWindowNameWithBackend() override
Construct the window title as "Visualization Toolkit - <WindowSystem> <GraphicsBackend>" Ex: "Visuali...
void SetSize(int, int) override
Set the size of the window in pixels.
void ShowCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void Finalize() override
Finalize the rendering window.
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
void MakeCurrent() override
Make the window current.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
void DestroyWindow() override
Destroy a not-off-screen window.
void ReleaseCurrent() override
Release the current context.
int * GetScreenSize() override
Get the current size of the screen in pixels.
#define VTK_DEPRECATED_IN_9_4_0(reason)
#define VTK_SIZEHINT(...)