14 #ifndef vtkWebAssemblyOpenGLRenderWindow_h
15 #define vtkWebAssemblyOpenGLRenderWindow_h
18 #include "vtkRenderingOpenGL2Module.h"
22 VTK_ABI_NAMESPACE_BEGIN
58 void SetSize(
int,
int)
override;
80 void* GetGenericDisplayId()
override {
return (
void*)this->ContextId; }
145 vtkGetStringMacro(CanvasSelector);
146 vtkSetStringMacro(CanvasSelector);
172 vtkSetEnumMacro(PowerPreference, PowerPreferenceType);
173 vtkGetEnumMacro(PowerPreference, PowerPreferenceType);
207 char* CanvasSelector =
nullptr;
210 void CleanUpRenderers();
219 #define vtkWebAssemblyOpenGLRenderWindow_OVERRIDE_ATTRIBUTES \
220 vtkWebAssemblyOpenGLRenderWindow::CreateOverrideAttributes()
221 VTK_ABI_NAMESPACE_END
Attribute for vtkObjectFactory overrides.
virtual void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual void PopContext()
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
std::stack< unsigned long > ContextStack
void SetUseOffScreenBuffers(bool) override
Make the setter for UseOffscreenBuffers no-op.
void SetPosition(int x, int y) override
Set the position of the window.
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
virtual void Finalize()
Finalize the rendering process.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
void SetShowWindow(bool) override
Make the setter for ShowWindow no-op.
void PreferLowPowerAdapter()
Set preference for a high-performance or low-power device.
static vtkOpenGLRenderWindow * New()
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
PowerPreferenceType
These enums have a one-one correspondence with the webgpu enums.
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
void Initialize() override
Initialize the rendering window.
static vtkOverrideAttribute * CreateOverrideAttributes()
int GetColorBufferSizes(int *rgba) override
Get the size of the color buffer.
virtual void MakeCurrent()
Make the window current.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
#define VTK_SIZEHINT(...)
virtual bool SetSwapControl(int)
Set the number of vertical syncs required between frames.
void SetPosition(int a[2]) override
Set the position of the window.
virtual void ReleaseCurrent()
Release the current context.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetSize(int a[2]) override
Set the size of the window in pixels.
void PreferHighPerformanceAdapter()
Set preference for a high-performance or low-power device.
virtual void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual void CreateAWindow()=0
Create a not-off-screen window.