Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.cpp
| Show All 9 Lines | |||||
| #include "GHOST_ContextNone.h" | #include "GHOST_ContextNone.h" | ||||
| #include "GHOST_DropTargetWin32.h" | #include "GHOST_DropTargetWin32.h" | ||||
| #include "GHOST_SystemWin32.h" | #include "GHOST_SystemWin32.h" | ||||
| #include "GHOST_WindowManager.h" | #include "GHOST_WindowManager.h" | ||||
| #include "utf_winfunc.h" | #include "utf_winfunc.h" | ||||
| #include "utfconv.h" | #include "utfconv.h" | ||||
| #include "GHOST_ContextWGL.h" | #include "GHOST_ContextWGL.h" | ||||
| #ifdef WITH_VULKAN_BACKEND | |||||
| # include "GHOST_ContextVK.h" | |||||
| #endif | |||||
| #include <Dwmapi.h> | #include <Dwmapi.h> | ||||
| #include <assert.h> | #include <assert.h> | ||||
| #include <math.h> | #include <math.h> | ||||
| #include <shellscalingapi.h> | #include <shellscalingapi.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| #include <windowsx.h> | #include <windowsx.h> | ||||
| ▲ Show 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | else if (type == GHOST_kDrawingContextTypeD3D) { | ||||
| if (!context->initializeDrawingContext()) { | if (!context->initializeDrawingContext()) { | ||||
| delete context; | delete context; | ||||
| context = nullptr; | context = nullptr; | ||||
| } | } | ||||
| return context; | return context; | ||||
| } | } | ||||
| #ifdef WITH_VULKAN_BACKEND | |||||
| else if (type == GHOST_kDrawingContextTypeVulkan) { | |||||
| GHOST_Context *context = new GHOST_ContextVK(false, m_hWnd, 1, 0, m_debug_context); | |||||
| if (context->initializeDrawingContext()) { | |||||
| return context; | |||||
| } | |||||
| else { | |||||
| delete context; | |||||
| } | |||||
| } | |||||
| #endif | |||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| void GHOST_WindowWin32::lostMouseCapture() | void GHOST_WindowWin32::lostMouseCapture() | ||||
| { | { | ||||
| if (m_hasMouseCaptured) { | if (m_hasMouseCaptured) { | ||||
| m_hasGrabMouse = false; | m_hasGrabMouse = false; | ||||
| m_nPressedButtons = 0; | m_nPressedButtons = 0; | ||||
| ▲ Show 20 Lines • Show All 529 Lines • Show Last 20 Lines | |||||