Added an OpenVR video driver (thanks @cnlohr!)

This commit is contained in:
Sam Lantinga committed 2024-10-17 19:38:04 -07:00
1 parent 569691797d
commit e81e917c5e
10 files changed
+5060

No files matched your search

+13
View File
@@ -662,6 +662,19 @@ macro(CheckVivante)
endif()
endmacro()
# Requires:
# - n/a
macro(CheckOpenVR)
if(SDL_OPENVR)
set(HAVE_OPENVR TRUE)
set(HAVE_OPENVR_VIDEO TRUE)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/openvr/*.c")
set(SDL_VIDEO_DRIVER_OPENVR 1)
sdl_link_dependency(egl LIBS EGL)
endif()
endmacro()
# Requires:
# - nada
macro(CheckGLX)