diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_ContextWGL.h')
-rw-r--r-- | intern/ghost/intern/GHOST_ContextWGL.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_ContextWGL.h b/intern/ghost/intern/GHOST_ContextWGL.h index a07cc1b6301..0d9986a0802 100644 --- a/intern/ghost/intern/GHOST_ContextWGL.h +++ b/intern/ghost/intern/GHOST_ContextWGL.h @@ -105,6 +105,20 @@ public: */ GHOST_TSuccess getSwapInterval(int &intervalOut); + /** + * Gets the maximum supported OpenGL context for the user hardware + * \return Whether major_version and minor_version resulted in a valid context. + */ + static GHOST_TSuccess getMaximumSupportedOpenGLVersion( + HWND hwnd, + bool wantStereoVisual, + bool wantAlphaBackground, + GHOST_TUns16 wantNumOfAASamples, + int contextProfileMask, + bool debugContext, + GHOST_TUns8 *r_major_version, + GHOST_TUns8 *r_minor_version); + private: int choose_pixel_format( bool stereoVisual, |