|
Blender V4.3
|
#include <GHOST_ContextSDL.hh>
Inherits GHOST_Context.
Additional Inherited Members | |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
Definition at line 29 of file GHOST_ContextSDL.hh.
| GHOST_ContextSDL::GHOST_ContextSDL | ( | bool | stereoVisual, |
| SDL_Window * | window, | ||
| int | contextProfileMask, | ||
| int | contextMajorVersion, | ||
| int | contextMinorVersion, | ||
| int | contextFlags, | ||
| int | contextResetNotificationStrategy ) |
Constructor.
Definition at line 22 of file GHOST_ContextSDL.cc.
|
override |
Destructor.
Definition at line 42 of file GHOST_ContextSDL.cc.
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 74 of file GHOST_ContextSDL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Gets the current swap interval for swapBuffers.
| intervalOut | Variable to store the swap interval if it can be read. |
Reimplemented from GHOST_Context.
Definition at line 165 of file GHOST_ContextSDL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 91 of file GHOST_ContextSDL.cc.
References GHOST_kFailure, GHOST_kSuccess, and GHOST_Context::m_stereoVisual.
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 82 of file GHOST_ContextSDL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 150 of file GHOST_ContextSDL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 157 of file GHOST_ContextSDL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 67 of file GHOST_ContextSDL.cc.
References GHOST_kSuccess.