Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWayland.cpp
| Show First 20 Lines • Show All 3,807 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| GHOST_IWindow *GHOST_SystemWayland::createWindow(const char *title, | GHOST_IWindow *GHOST_SystemWayland::createWindow(const char *title, | ||||
| const int32_t left, | const int32_t left, | ||||
| const int32_t top, | const int32_t top, | ||||
| const uint32_t width, | const uint32_t width, | ||||
| const uint32_t height, | const uint32_t height, | ||||
| const GHOST_TWindowState state, | const GHOST_TWindowState state, | ||||
| const GHOST_TDrawingContextType type, | |||||
| const GHOST_GLSettings glSettings, | const 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) | ||||
| { | { | ||||
| /* Globally store pointer to window manager. */ | /* Globally store pointer to window manager. */ | ||||
| if (!window_manager) { | if (!window_manager) { | ||||
| window_manager = getWindowManager(); | window_manager = getWindowManager(); | ||||
| } | } | ||||
| GHOST_WindowWayland *window = new GHOST_WindowWayland( | GHOST_WindowWayland *window = new GHOST_WindowWayland( | ||||
| this, | this, | ||||
| title, | title, | ||||
| left, | left, | ||||
| top, | top, | ||||
| width, | width, | ||||
| height, | height, | ||||
| state, | state, | ||||
| parentWindow, | parentWindow, | ||||
| type, | glSettings.context_type, | ||||
| is_dialog, | is_dialog, | ||||
| ((glSettings.flags & GHOST_glStereoVisual) != 0), | ((glSettings.flags & GHOST_glStereoVisual) != 0), | ||||
| exclusive); | exclusive); | ||||
| if (window) { | if (window) { | ||||
| if (window->getValid()) { | if (window->getValid()) { | ||||
| m_windowManager->addWindow(window); | m_windowManager->addWindow(window); | ||||
| m_windowManager->setActiveWindow(window); | m_windowManager->setActiveWindow(window); | ||||
| ▲ Show 20 Lines • Show All 811 Lines • Show Last 20 Lines | |||||