diff options
author | Julian Eisel <julian@blender.org> | 2020-04-02 18:40:29 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-04-02 18:43:45 +0300 |
commit | 34465a7fb091664b07611353d99dcaa0862d4a4c (patch) | |
tree | 973457851e3836286daf07345b4ea4fd517347e1 /intern/ghost/GHOST_Types.h | |
parent | 868d4526a8818fbffc5ea993fbbbd3890046a6e9 (diff) |
VR: Refactor DirectX context management
All DirectX management happens on Ghost level now, higher level code can
just assume everything is OpenGL (except of the upside-down drawing that
still needs to be done for DirectX). This is similar to how the
metal-layer is hidden outside of Ghost.
The Ghost-XR graphics binding for DirectX is responsible for managing
the DirectX compatibility now.
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r-- | intern/ghost/GHOST_Types.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index 637935d9142..6667d113fe8 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -621,9 +621,8 @@ typedef void (*GHOST_XrErrorHandlerFn)(const struct GHOST_XrError *); typedef void (*GHOST_XrSessionExitFn)(void *customdata); -typedef void *(*GHOST_XrGraphicsContextBindFn)(enum GHOST_TXrGraphicsBinding graphics_lib); -typedef void (*GHOST_XrGraphicsContextUnbindFn)(enum GHOST_TXrGraphicsBinding graphics_lib, - GHOST_ContextHandle graphics_context); +typedef void *(*GHOST_XrGraphicsContextBindFn)(); +typedef void (*GHOST_XrGraphicsContextUnbindFn)(GHOST_ContextHandle graphics_context); typedef void (*GHOST_XrDrawViewFn)(const struct GHOST_XrDrawViewInfo *draw_view, void *customdata); /* An array of GHOST_TXrGraphicsBinding items defining the candidate bindings to use. The first |