12 #ifndef vtkSDL2OpenGLRenderWindow_h
13 #define vtkSDL2OpenGLRenderWindow_h
16 #include "vtkRenderingOpenGL2Module.h"
26 #pragma clang diagnostic push
27 #pragma clang diagnostic ignored "-Wreserved-identifier"
31 #pragma clang diagnostic pop
35 VTK_ABI_NAMESPACE_BEGIN
72 void SetSize(
int,
int)
override;
85 void SetPosition(
int,
int) override;
103 void SetWindowName(const
char*) override;
105 void* GetGenericDisplayId()
override {
return (
void*)this->ContextId; }
133 void Frame()
override;
183 void CleanUpRenderers();
192 VTK_ABI_NAMESPACE_END
virtual void PopContext()
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
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...
std::stack< SDL_Window * > WindowStack
void SetSize(int a[2]) override
Set the size of the window in pixels.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
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.
static const std::string DEFAULT_BASE_WINDOW_NAME
virtual void Finalize()
Finalize the rendering process.
virtual void SetShowWindow(bool)
Show or not Show the window.
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
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 int * GetScreenSize()
Get the current size of the screen in pixels.
std::stack< SDL_GLContext > ContextStack
virtual void Initialize()
Initialize the rendering window.
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.
#define VTK_SIZEHINT(...)
virtual bool SetSwapControl(int)
Set the number of vertical syncs required between frames.
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual int * GetSize()
Get the size (width and height) of the rendering window in screen coordinates (in pixels)...
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.
virtual void CreateAWindow()=0
Create a not-off-screen window.