Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Xr_openxr_includes.h
| Show All 36 Lines | |||||
| #endif | #endif | ||||
| #ifdef XR_USE_GRAPHICS_API_D3D11 | #ifdef XR_USE_GRAPHICS_API_D3D11 | ||||
| # include <d3d11.h> | # include <d3d11.h> | ||||
| #endif | #endif | ||||
| #ifdef XR_USE_GRAPHICS_API_D3D12 | #ifdef XR_USE_GRAPHICS_API_D3D12 | ||||
| # include <d3d12.h> | # include <d3d12.h> | ||||
| #endif | #endif | ||||
| #ifdef WITH_GHOST_X11 | #ifdef WITH_GHOST_X11 | ||||
| # include <GL/glxew.h> | # include <GL/glxew.h> | ||||
brecht: Don't include this if EGL is used.
Maybe some package will even leave it out when GLEW is… | |||||
| #endif | #endif | ||||
| #ifdef WITH_GL_EGL | |||||
| /* TODO: Why do we have to create this typedef manually? */ | |||||
| typedef void (* (*PFNEGLGETPROCADDRESSPROC)(const char *procname))(void); | |||||
brechtUnsubmitted Done Inline ActionsIt's not clear to me which problem this fixes, is this still needed? brecht: It's not clear to me which problem this fixes, is this still needed?
| |||||
christian.rauchAuthorUnsubmitted Done Inline ActionsYes, but I don't really know why. I took this from: https://gitlab.freedesktop.org/monado/monado/-/blob/2b996f30/src/xrt/include/xrt/xrt_openxr_includes.h#L36-37 If someone can point me to an alternative source where PFNEGLGETPROCADDRESSPROC is defined, I am happy to replace this manual typedef. christian.rauch: Yes, but I don't really know why.
I took this from: https://gitlab.freedesktop. | |||||
| # include <GL/eglew.h> | |||||
| #endif | |||||
| #include <openxr/openxr.h> | #include <openxr/openxr.h> | ||||
| #include <openxr/openxr_platform.h> | #include <openxr/openxr_platform.h> | ||||
Don't include this if EGL is used.
Maybe some package will even leave it out when GLEW is compiled for EGL.