読み取り中…
検索中…
一致する文字列を見つけられません
[詳解]
11#ifndef INCGUARD_MGL_ENVIRONMENT_H_1607497677
12#define INCGUARD_MGL_ENVIRONMENT_H_1607497677
14#if defined(MGL_TARGET_CORE_ONLY)
19 #include <TargetConditionals.h>
23 #if __APPLE__ && TARGET_OS_OSX
25 #define MGL_TARGET_MACOS
28 #define MGL_RENDERER_ENABLE_METAL
31 #define MGL_KEYBOARD_DELEGATE_ENABLE_EVENT
34 #define MGL_MOUSE_DELEGATE_ENABLE_MACOS
37 #define MGL_GAMEPAD_DELEGATE_ENABLE_MFI
38 #define MGL_GAMEPAD_DELEGATE_ENABLE_APPLE_GC
39 #define MGL_GAMEPAD_DELEGATE_ENABLE_IOKIT_HID
42 #define MGL_FILE_DELEGATE_ENABLE_POSIX
43 #define MGL_FILE_DELEGATE_ENABLE_NSFILE
46 #define MGL_AUDIO_RENDERER_ENABLE_APPLE_COREAUDIO
54 #elif __APPLE__ && TARGET_OS_IOS
56 #define MGL_TARGET_IOS
59 #define MGL_RENDERER_ENABLE_METAL
62 #define MGL_INPUT_ENABLE_GAMEPAD
63 #define MGL_INPUT_ENABLE_TOUCH
66 #define MGL_GAMEPAD_DELEGATE_ENABLE_MFI
67 #define MGL_GAMEPAD_DELEGATE_ENABLE_APPLE_GC
70 #define MGL_TOUCH_DELEGATE_ENABLE_EVENT
73 #define MGL_FILE_DELEGATE_ENABLE_NSFILE
76 #define MGL_AUDIO_RENDERER_ENABLE_APPLE_COREAUDIO
84 #elif __APPLE__ && TARGET_OS_TV
86 #define MGL_TARGET_TVOS
89 #define MGL_RENDERER_ENABLE_METAL
92 #define MGL_INPUT_ENABLE_GAMEPAD
95 #define MGL_GAMEPAD_DELEGATE_ENABLE_MFI
96 #define MGL_GAMEPAD_DELEGATE_ENABLE_APPLE_GC
99 #define MGL_FILE_DELEGATE_ENABLE_NSFILE
102 #define MGL_AUDIO_RENDERER_ENABLE_APPLE_COREAUDIO
110 #elif defined(_WIN32)
112 #define MGL_TARGET_WIN32
115 #define MGL_RENDERER_ENABLE_D3D11
118 #define MGL_KEYBOARD_DELEGATE_ENABLE_WIN32
121 #define MGL_MOUSE_DELEGATE_ENABLE_WIN32
124 #define MGL_GAMEPAD_DELEGATE_ENABLE_XINPUT
125 #define MGL_GAMEPAD_DELEGATE_ENABLE_DIRECTINPUT
128 #define MGL_FILE_DELEGATE_ENABLE_WIN32
131 #define MGL_AUDIO_RENDERER_ENABLE_XAUDIO2
140 #define MGL_TARGET_UNKNOWN