Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Context.h
| Show All 30 Lines | public: | ||||
| virtual ~GHOST_Context() | virtual ~GHOST_Context() | ||||
| { | { | ||||
| } | } | ||||
| /** | /** | ||||
| * Swaps front and back buffers of a window. | * Swaps front and back buffers of a window. | ||||
| * \return A boolean success indicator. | * \return A boolean success indicator. | ||||
| */ | */ | ||||
| virtual GHOST_TSuccess swapBuffers() = 0; | virtual GHOST_TSuccess swapBuffers() override = 0; | ||||
| /** | /** | ||||
| * Activates the drawing context of this window. | * Activates the drawing context of this window. | ||||
| * \return A boolean success indicator. | * \return A boolean success indicator. | ||||
| */ | */ | ||||
| virtual GHOST_TSuccess activateDrawingContext() = 0; | virtual GHOST_TSuccess activateDrawingContext() override = 0; | ||||
| /** | /** | ||||
| * Release the drawing context of the calling thread. | * Release the drawing context of the calling thread. | ||||
| * \return A boolean success indicator. | * \return A boolean success indicator. | ||||
| */ | */ | ||||
| virtual GHOST_TSuccess releaseDrawingContext() = 0; | virtual GHOST_TSuccess releaseDrawingContext() override = 0; | ||||
| /** | /** | ||||
| * Call immediately after new to initialize. If this fails then immediately delete the object. | * Call immediately after new to initialize. If this fails then immediately delete the object. | ||||
| * \return Indication as to whether initialization has succeeded. | * \return Indication as to whether initialization has succeeded. | ||||
| */ | */ | ||||
| virtual GHOST_TSuccess initializeDrawingContext() = 0; | virtual GHOST_TSuccess initializeDrawingContext() = 0; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public: | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| /** | /** | ||||
| * Gets the OpenGL frame-buffer associated with the OpenGL context | * Gets the OpenGL frame-buffer associated with the OpenGL context | ||||
| * \return The ID of an OpenGL frame-buffer object. | * \return The ID of an OpenGL frame-buffer object. | ||||
| */ | */ | ||||
| virtual unsigned int getDefaultFramebuffer() | virtual unsigned int getDefaultFramebuffer() override | ||||
| { | { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| protected: | protected: | ||||
| bool m_stereoVisual; | bool m_stereoVisual; | ||||
| /** Caller specified, not for internal use. */ | /** Caller specified, not for internal use. */ | ||||
| Show All 21 Lines | |||||