OSDN Git Service

first
[psychlops/cpp.git] / psychlops / platform / psychlops_platform_selector.h
1 // psychlops_platform_selector.h
2
3 #if defined(__APPLE__)
4 #define PSYCHLOPS_PLATFORM_OSX
5 #elif defined(LINUX)
6 #else
7 #ifndef PSYCHLOPS_PLATFORM_WIN32GL
8 #define PSYCHLOPS_PLATFORM_WIN32GL
9 #endif
10 #ifdef PSYCHLOPS_PLATFORM_WIN32GL
11 #define PSYCHLOPS_PLATFORM_WIN32
12 #endif
13 #endif
14
15
16 #ifdef PSYCHLOPS_PLATFORM_WIN32
17
18 #ifdef PSYCHLOPS_MAIN_API_PLATFORM
19 #include "win32/psychlops_app_main_Win32.h"
20 #endif
21
22 #ifdef PSYCHLOPS_HID_API_PLATFORM
23 #include "win32/psychlops_io_API_Win32.h"
24 #endif
25
26 #ifdef PSYCHLOPS_APPSTATE_API_PLATFORM
27 #include "win32/psychlops_app_state_Win32.h"
28 #endif
29
30 #ifdef PSYCHLOPS_CLOCK_API_PLATFORM
31 #include "win32/psychlops_io_clock_Win32.h"
32 #endif
33
34 #endif
35
36 #ifdef PSYCHLOPS_PLATFORM_WIN32GL
37
38 #ifdef PSYCHLOPS_WINDOW_API_PLATFORM
39 #include "win32gl/psychlops_g_API_win32gl.h"
40 #endif
41
42 #ifdef PSYCHLOPS_SHADER_PLATFORM
43 #define GLEW_STATIC
44 #include "win32gl/extension/glew/glew.h"
45 #include "win32gl/psychlops_g_API_win32gl.h"
46 #undef GLEW_STATIC
47 #endif
48
49 #endif
50
51
52
53
54 #ifdef PSYCHLOPS_PLATFORM_OSX
55
56 #ifdef PSYCHLOPS_MAIN_API_PLATFORM
57 #include "osx/psychlops_app_main_osx.h"
58 #endif
59
60 #ifdef PSYCHLOPS_APPSTATE_API_PLATFORM
61 #include "osx/psychlops_app_state_OSX.h"
62 #endif
63
64 #ifdef PSYCHLOPS_HID_API_PLATFORM
65 #include "osx/psychlops_io_API_OSX.h"
66 #endif
67
68 #ifdef PSYCHLOPS_CLOCK_API_PLATFORM
69 #include "osx/psychlops_io_clock_OSX.h"
70 #endif
71
72 #ifdef PSYCHLOPS_WINDOW_API_PLATFORM
73 #include "osx/psychlops_g_API_OSX.h"
74 #endif
75
76 #ifdef PSYCHLOPS_SHADER_PLATFORM
77 #if !defined(PANTHER)
78 #include <OpenGL/gl.h>
79 #else
80 #define GLEW_STATIC
81 #include "win32gl/extension/glew/glew.h"
82 #undef GLEW_STATIC
83 #endif
84 #include "osx/psychlops_g_API_OSX.h"
85 #endif
86
87 #endif\r
88 \r
89 \r
90