Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemSDL.cpp
| Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | void GHOST_SystemSDL::getMainDisplayDimensions(GHOST_TUns32 &width, GHOST_TUns32 &height) const | ||||
| height = mode.h; | height = mode.h; | ||||
| } | } | ||||
| GHOST_TUns8 GHOST_SystemSDL::getNumDisplays() const | GHOST_TUns8 GHOST_SystemSDL::getNumDisplays() const | ||||
| { | { | ||||
| return SDL_GetNumVideoDisplays(); | return SDL_GetNumVideoDisplays(); | ||||
| } | } | ||||
| GHOST_IContext *GHOST_SystemSDL::createOffscreenContext() | GHOST_IContext *GHOST_SystemSDL::createOffscreenContext( | ||||
| GHOST_PlatformSupportCallbackPtr platform_support_callback) | |||||
| { | { | ||||
| GHOST_Context *context = new GHOST_ContextSDL(0, | GHOST_Context *context = new GHOST_ContextSDL(0, | ||||
| NULL, | NULL, | ||||
| 0, // profile bit | 0, // profile bit | ||||
| 3, | 3, | ||||
| 3, | 3, | ||||
| GHOST_OPENGL_SDL_CONTEXT_FLAGS, | GHOST_OPENGL_SDL_CONTEXT_FLAGS, | ||||
| GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY); | GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY); | ||||
| ▲ Show 20 Lines • Show All 598 Lines • Show Last 20 Lines | |||||