15#ifndef vtkWebAssemblyWebGPURenderWindow_h
16#define vtkWebAssemblyWebGPURenderWindow_h
18#if !defined(__EMSCRIPTEN__)
19#error "vtkWebAssemblyWebGPURenderWindow cannot be built without emscripten!"
24#include "vtkRenderingWebGPUModule.h"
26VTK_ABI_NAMESPACE_BEGIN
72 void* GetGenericWindowId()
override {
return (
void*)this->WindowId; }
113 vtkGetStringMacro(CanvasSelector);
114 vtkSetStringMacro(CanvasSelector);
132 void* WindowId =
nullptr;
133 char* CanvasSelector =
nullptr;
a simple class to control print indentation
void CreateAWindow() override
Create a not-off-screen window.
bool WindowSetup() override
Initialize the rendering window.
int GetColorBufferSizes(int *rgba) override
Get the size of the color buffer.
void SetSize(int, int) override
Set the size of the window in pixels.
void SetShowWindow(bool) override
Make the setter for ShowWindow no-op.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetUseOffScreenBuffers(bool) override
Make the setter for UseOffscreenBuffers no-op.
void DestroyWindow() override
Destroy a not-off-screen window.
void Clean()
Clean up device contexts, rendering contexts, etc.
void ReleaseCurrent() override
Release the current context.
static vtkWebAssemblyWebGPURenderWindow * New()
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
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 * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
vtkWebAssemblyWebGPURenderWindow()
void Finalize() override
Finalize the rendering window.
void MakeCurrent() override
Make the window current.
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
void SetSize(int a[2]) override
Set the size of the window in pixels.
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...
std::string MakeDefaultWindowNameWithBackend() override
Construct the window title as "Visualization Toolkit - <WindowSystem> <GraphicsBackend>" Ex: "Visuali...
~vtkWebAssemblyWebGPURenderWindow() override
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
int * GetScreenSize() override
Get the current size of the screen in pixels.
#define VTK_SIZEHINT(...)