Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemSDL.cpp
| Show All 36 Lines | |||||
| } | } | ||||
| GHOST_IWindow *GHOST_SystemSDL::createWindow(const char *title, | GHOST_IWindow *GHOST_SystemSDL::createWindow(const char *title, | ||||
| int32_t left, | int32_t left, | ||||
| int32_t top, | int32_t top, | ||||
| uint32_t width, | uint32_t width, | ||||
| uint32_t height, | uint32_t height, | ||||
| GHOST_TWindowState state, | GHOST_TWindowState state, | ||||
| GHOST_TDrawingContextType type, | |||||
| GHOST_GLSettings glSettings, | GHOST_GLSettings glSettings, | ||||
| const bool exclusive, | const bool exclusive, | ||||
| const bool /* is_dialog */, | const bool /* is_dialog */, | ||||
| const GHOST_IWindow *parentWindow) | const GHOST_IWindow *parentWindow) | ||||
| { | { | ||||
| GHOST_WindowSDL *window = nullptr; | GHOST_WindowSDL *window = nullptr; | ||||
| window = new GHOST_WindowSDL(this, | window = new GHOST_WindowSDL(this, | ||||
| title, | title, | ||||
| left, | left, | ||||
| top, | top, | ||||
| width, | width, | ||||
| height, | height, | ||||
| state, | state, | ||||
| type, | glSettings.context_type, | ||||
| ((glSettings.flags & GHOST_glStereoVisual) != 0), | ((glSettings.flags & GHOST_glStereoVisual) != 0), | ||||
| exclusive, | exclusive, | ||||
| parentWindow); | parentWindow); | ||||
| if (window) { | if (window) { | ||||
| if (GHOST_kWindowStateFullScreen == state) { | if (GHOST_kWindowStateFullScreen == state) { | ||||
| SDL_Window *sdl_win = window->getSDLWindow(); | SDL_Window *sdl_win = window->getSDLWindow(); | ||||
| SDL_DisplayMode mode; | SDL_DisplayMode mode; | ||||
| ▲ Show 20 Lines • Show All 700 Lines • Show Last 20 Lines | |||||