diff options
author | Julian Eisel <julian@blender.org> | 2020-03-26 23:03:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-26 23:18:45 +0300 |
commit | c94b6209861ca7cc3985b53474feed7d94c0221a (patch) | |
tree | 752054f0dca1338cda5cf8ad4f6d18573fcca3b9 /intern/ghost/intern/GHOST_SystemWin32.h | |
parent | 357ed79cb93f9d655501a828c6cddd68282de62d (diff) | |
parent | afb1a64ccb81b7ed792f64151986f40f53af8da5 (diff) |
Merge branch 'master' into wm-drag-drop-rewrite
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemWin32.h')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.h b/intern/ghost/intern/GHOST_SystemWin32.h index b069e6cf3b6..e624cc83427 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.h +++ b/intern/ghost/intern/GHOST_SystemWin32.h @@ -30,8 +30,8 @@ #endif // WIN32 #define WIN32_LEAN_AND_MEAN -#include <windows.h> #include <ole2.h> // for drag-n-drop +#include <windows.h> #include "GHOST_System.h" @@ -131,6 +131,13 @@ class GHOST_SystemWin32 : public GHOST_System { GHOST_IContext *createOffscreenContext(); /** + * Create a new offscreen context. + * Never explicitly delete the window, use disposeContext() instead. + * \return The new context (or 0 if creation failed). + */ + GHOST_IContext *createOffscreenContext(GHOST_TDrawingContextType type); + + /** * Dispose of a context. * \param context Pointer to the context to be disposed. * \return Indication of success. @@ -249,6 +256,13 @@ class GHOST_SystemWin32 : public GHOST_System { GHOST_TSuccess exit(); /** + * Create a new offscreen DirectX context. + * Never explicitly delete the window, use disposeContext() instead. + * \return The new context (or 0 if creation failed). + */ + GHOST_IContext *createOffscreenContextD3D(); + + /** * Converts raw WIN32 key codes from the wndproc to GHOST keys. * \param vKey The virtual key from hardKey * \param ScanCode The ScanCode of pressed key (similar to PS/2 Set 1) @@ -400,6 +414,8 @@ class GHOST_SystemWin32 : public GHOST_System { /** The current state of the modifier keys. */ GHOST_ModifierKeys m_modifierKeys; + /** The virtual-key code (VKey) of the last press event. Used to detect repeat events. */ + unsigned short m_keycode_last_repeat_key; /** State variable set at initialization. */ bool m_hasPerformanceCounter; /** High frequency timer variable. */ |