 |
VTK
9.1.0
|
Go to the documentation of this file.
24 #ifndef vtkSDL2OpenGLRenderWindow_h
25 #define vtkSDL2OpenGLRenderWindow_h
28 #include "vtkRenderingOpenGL2Module.h"
81 void SetPosition(
int,
int) override;
99 void SetWindowName(const
char*) override;
101 void* GetGenericDisplayId()
override {
return (
void*)this->ContextId; }
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
bool SetSwapControl(int i) override
Set the number of vertical syncs required between frames.
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (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...
int * GetSize() override
Get the current size of the window in pixels.
int * GetScreenSize() override
Get the current size of the screen in pixels.
~vtkSDL2OpenGLRenderWindow() override
void PushContext() override
Ability to push and pop this window's context as the current context.
void SetSize(int, int) override
Set the size of the window in pixels.
void DestroyWindow() override
Destroy a not-off-screen window.
void PopContext() override
Ability to push and pop this window's context as the current context.
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...
void Finalize(void) override
Finalize the rendering window.
int GetColorBufferSizes(int *rgba) override
Get the size of the color buffer.
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
void Initialize(void) override
Initialize the rendering window.
void ReleaseCurrent() override
Release the current context.
#define VTK_SIZEHINT(...)
a simple class to control print indentation
void SetShowWindow(bool val) override
Show or not Show the window.
void Clean()
Clean up device contexts, rendering contexts, etc.
std::stack< SDL_GLContext > ContextStack
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
void MakeCurrent() override
Make this windows OpenGL context the current context.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
static const std::string DEFAULT_BASE_WINDOW_NAME
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSDL2OpenGLRenderWindow * New()
void CreateAWindow() override
Create a not-off-screen window.
std::stack< SDL_Window * > WindowStack
vtkSDL2OpenGLRenderWindow()