Skip to content

Commit af983b8

Browse files
committed
Added video driver definitions by platform for SDL_syswm.h
1 parent 10a9ed3 commit af983b8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/SDL2/SDL_config.h

+18
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@
6565
#ifndef SDL_VIDEO_OPENGL
6666
#define SDL_VIDEO_OPENGL 1
6767
#endif
68+
#if defined(__WIN32__)
69+
#define SDL_VIDEO_DRIVER_WINDOWS 1
70+
#endif
71+
#if defined (__LINUX__) || defined(__FREEBSD__) || defined(__NETBSD__) || defined(__OPENBSD__) || defined(__SOLARIS__)
72+
#define SDL_VIDEO_DRIVER_X11 1
73+
#endif
74+
#if defined(__LINUX__)
75+
#define SDL_VIDEO_DRIVER_KMSDRM 1
76+
#endif
77+
#if defined(__MACOSX__)
78+
#define SDL_VIDEO_DRIVER_COCOA 1
79+
#endif
80+
#if defined(__IPHONEOS__) || defined(__TVOS__)
81+
#define SDL_VIDEO_DRIVER_UIKIT 1
82+
#endif
83+
#if defined(__ANDROID__)
84+
#define SDL_VIDEO_DRIVER_ANDROID 1
85+
#endif
6886

6987
/* END DEFINES ADDED BY SDL2-COMPAT */
7088

0 commit comments

Comments
 (0)