Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ContextWGL.h
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | public: | ||||
| /** | /** | ||||
| * Gets the current swap interval for swapBuffers. | * Gets the current swap interval for swapBuffers. | ||||
| * \param intervalOut Variable to store the swap interval if it can be read. | * \param intervalOut Variable to store the swap interval if it can be read. | ||||
| * \return Whether the swap interval can be read. | * \return Whether the swap interval can be read. | ||||
| */ | */ | ||||
| GHOST_TSuccess getSwapInterval(int &intervalOut); | 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: | private: | ||||
| int choose_pixel_format( | int choose_pixel_format( | ||||
| bool stereoVisual, | bool stereoVisual, | ||||
| int numOfAASamples, | int numOfAASamples, | ||||
| bool needAlpha, | bool needAlpha, | ||||
| bool needStencil, | bool needStencil, | ||||
| bool sRGB); | bool sRGB); | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||