ruby2d 0.9.0 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/assets/README.md +8 -8
  3. data/assets/Rakefile +85 -0
  4. data/assets/include/SDL2/SDL.h +1 -1
  5. data/assets/include/SDL2/SDL_assert.h +1 -1
  6. data/assets/include/SDL2/SDL_atomic.h +20 -2
  7. data/assets/include/SDL2/SDL_audio.h +47 -14
  8. data/assets/include/SDL2/SDL_bits.h +10 -1
  9. data/assets/include/SDL2/SDL_blendmode.h +7 -7
  10. data/assets/include/SDL2/SDL_clipboard.h +1 -1
  11. data/assets/include/SDL2/SDL_config.h +24 -390
  12. data/assets/include/SDL2/SDL_config_android.h +178 -0
  13. data/assets/include/SDL2/SDL_config_iphoneos.h +201 -0
  14. data/assets/include/SDL2/SDL_config_macosx.h +240 -0
  15. data/assets/include/SDL2/SDL_config_minimal.h +85 -0
  16. data/assets/include/SDL2/SDL_config_os2.h +170 -0
  17. data/assets/include/SDL2/SDL_config_pandora.h +133 -0
  18. data/assets/include/SDL2/SDL_config_psp.h +164 -0
  19. data/assets/include/SDL2/SDL_config_windows.h +257 -0
  20. data/assets/include/SDL2/SDL_config_winrt.h +240 -0
  21. data/assets/include/SDL2/SDL_config_wiz.h +146 -0
  22. data/assets/include/SDL2/SDL_copying.h +20 -0
  23. data/assets/include/SDL2/SDL_cpuinfo.h +90 -8
  24. data/assets/include/SDL2/SDL_egl.h +1 -1
  25. data/assets/include/SDL2/SDL_endian.h +1 -1
  26. data/assets/include/SDL2/SDL_error.h +1 -1
  27. data/assets/include/SDL2/SDL_events.h +4 -1
  28. data/assets/include/SDL2/SDL_filesystem.h +1 -1
  29. data/assets/include/SDL2/SDL_gamecontroller.h +1 -1
  30. data/assets/include/SDL2/SDL_gesture.h +1 -1
  31. data/assets/include/SDL2/SDL_haptic.h +1 -1
  32. data/assets/include/SDL2/SDL_hints.h +145 -14
  33. data/assets/include/SDL2/SDL_image.h +2 -2
  34. data/assets/include/SDL2/SDL_joystick.h +1 -1
  35. data/assets/include/SDL2/SDL_keyboard.h +1 -1
  36. data/assets/include/SDL2/SDL_keycode.h +1 -1
  37. data/assets/include/SDL2/SDL_loadso.h +1 -1
  38. data/assets/include/SDL2/SDL_log.h +1 -1
  39. data/assets/include/SDL2/SDL_main.h +28 -16
  40. data/assets/include/SDL2/SDL_messagebox.h +1 -1
  41. data/assets/include/SDL2/SDL_mouse.h +1 -1
  42. data/assets/include/SDL2/SDL_mutex.h +1 -1
  43. data/assets/include/SDL2/SDL_name.h +1 -1
  44. data/assets/include/SDL2/SDL_opengl.h +1 -1
  45. data/assets/include/SDL2/SDL_opengles.h +1 -1
  46. data/assets/include/SDL2/SDL_opengles2.h +1 -1
  47. data/assets/include/SDL2/SDL_pixels.h +3 -3
  48. data/assets/include/SDL2/SDL_platform.h +1 -1
  49. data/assets/include/SDL2/SDL_power.h +1 -1
  50. data/assets/include/SDL2/SDL_quit.h +1 -1
  51. data/assets/include/SDL2/SDL_rect.h +29 -3
  52. data/assets/include/SDL2/SDL_render.h +168 -1
  53. data/assets/include/SDL2/SDL_revision.h +2 -2
  54. data/assets/include/SDL2/SDL_rwops.h +50 -13
  55. data/assets/include/SDL2/SDL_scancode.h +2 -2
  56. data/assets/include/SDL2/SDL_sensor.h +4 -4
  57. data/assets/include/SDL2/SDL_shape.h +1 -1
  58. data/assets/include/SDL2/SDL_stdinc.h +1 -1
  59. data/assets/include/SDL2/SDL_surface.h +2 -1
  60. data/assets/include/SDL2/SDL_system.h +1 -1
  61. data/assets/include/SDL2/SDL_syswm.h +11 -8
  62. data/assets/include/SDL2/SDL_test.h +1 -1
  63. data/assets/include/SDL2/SDL_test_assert.h +1 -1
  64. data/assets/include/SDL2/SDL_test_common.h +22 -5
  65. data/assets/include/SDL2/SDL_test_compare.h +1 -1
  66. data/assets/include/SDL2/SDL_test_crc32.h +1 -1
  67. data/assets/include/SDL2/SDL_test_font.h +1 -1
  68. data/assets/include/SDL2/SDL_test_fuzzer.h +1 -1
  69. data/assets/include/SDL2/SDL_test_harness.h +1 -1
  70. data/assets/include/SDL2/SDL_test_images.h +1 -1
  71. data/assets/include/SDL2/SDL_test_log.h +1 -1
  72. data/assets/include/SDL2/SDL_test_md5.h +1 -1
  73. data/assets/include/SDL2/SDL_test_memory.h +3 -3
  74. data/assets/include/SDL2/SDL_test_random.h +1 -1
  75. data/assets/include/SDL2/SDL_thread.h +1 -1
  76. data/assets/include/SDL2/SDL_timer.h +1 -1
  77. data/assets/include/SDL2/SDL_touch.h +17 -1
  78. data/assets/include/SDL2/SDL_types.h +1 -1
  79. data/assets/include/SDL2/SDL_version.h +2 -2
  80. data/assets/include/SDL2/SDL_video.h +1 -1
  81. data/assets/include/SDL2/SDL_vulkan.h +3 -3
  82. data/assets/include/SDL2/begin_code.h +4 -1
  83. data/assets/include/SDL2/close_code.h +4 -1
  84. data/assets/macos/lib/libFLAC.a +0 -0
  85. data/assets/macos/lib/libSDL2.a +0 -0
  86. data/assets/macos/lib/libSDL2_image.a +0 -0
  87. data/assets/macos/lib/libSDL2_mixer.a +0 -0
  88. data/assets/macos/lib/libSDL2_ttf.a +0 -0
  89. data/assets/macos/lib/libfreetype.a +0 -0
  90. data/assets/macos/lib/libjpeg.a +0 -0
  91. data/assets/macos/lib/libmpg123.a +0 -0
  92. data/assets/macos/lib/libogg.a +0 -0
  93. data/assets/macos/lib/libpng16.a +0 -0
  94. data/assets/macos/lib/libtiff.a +0 -0
  95. data/assets/macos/lib/libwebp.a +0 -0
  96. data/assets/mingw/bin/SDL2.dll +0 -0
  97. data/assets/mingw/bin/SDL2_image.dll +0 -0
  98. data/assets/mingw/bin/libpng16-16.dll +0 -0
  99. data/assets/mingw/bin/libtiff-5.dll +0 -0
  100. data/assets/mingw/bin/libwebp-7.dll +0 -0
  101. data/assets/mingw/lib/libSDL2.a +0 -0
  102. data/assets/mingw/lib/libSDL2.dll.a +0 -0
  103. data/assets/mingw/lib/libSDL2_image.a +0 -0
  104. data/assets/mingw/lib/libSDL2_image.dll.a +0 -0
  105. data/assets/mingw/lib/libSDL2_test.a +0 -0
  106. data/assets/mingw/lib/libSDL2main.a +0 -0
  107. data/bin/ruby2d +2 -1
  108. data/ext/ruby2d/common.c +185 -0
  109. data/ext/ruby2d/controllers.c +110 -0
  110. data/ext/ruby2d/extconf.rb +97 -46
  111. data/ext/ruby2d/gl.c +430 -0
  112. data/ext/ruby2d/gl2.c +146 -0
  113. data/ext/ruby2d/gl3.c +348 -0
  114. data/ext/ruby2d/gles.c +308 -0
  115. data/ext/ruby2d/image.c +138 -0
  116. data/ext/ruby2d/input.c +48 -0
  117. data/ext/ruby2d/music.c +114 -0
  118. data/ext/ruby2d/ruby2d.c +125 -126
  119. data/{assets/include/simple2d.h → ext/ruby2d/ruby2d.h} +223 -201
  120. data/ext/ruby2d/shapes.c +154 -0
  121. data/ext/ruby2d/sound.c +93 -0
  122. data/ext/ruby2d/sprite.c +147 -0
  123. data/ext/ruby2d/text.c +129 -0
  124. data/ext/ruby2d/window.c +414 -0
  125. data/lib/ruby2d.rb +1 -1
  126. data/lib/ruby2d/cli/build.rb +3 -8
  127. data/lib/ruby2d/cli/colorize.rb +10 -0
  128. data/lib/ruby2d/version.rb +1 -1
  129. metadata +34 -10
  130. data/assets/macos/lib/libsimple2d.a +0 -0
  131. data/assets/mingw/lib/libsimple2d.a +0 -0
  132. data/lib/ruby2d/colorize.rb +0 -10
@@ -0,0 +1,85 @@
1
+ /*
2
+ Simple DirectMedia Layer
3
+ Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
20
+ */
21
+
22
+ #ifndef SDL_config_minimal_h_
23
+ #define SDL_config_minimal_h_
24
+ #define SDL_config_h_
25
+
26
+ #include "SDL_platform.h"
27
+
28
+ /**
29
+ * \file SDL_config_minimal.h
30
+ *
31
+ * This is the minimal configuration that can be used to build SDL.
32
+ */
33
+
34
+ #define HAVE_STDARG_H 1
35
+ #define HAVE_STDDEF_H 1
36
+
37
+ /* Most everything except Visual Studio 2008 and earlier has stdint.h now */
38
+ #if defined(_MSC_VER) && (_MSC_VER < 1600)
39
+ /* Here are some reasonable defaults */
40
+ typedef unsigned int size_t;
41
+ typedef signed char int8_t;
42
+ typedef unsigned char uint8_t;
43
+ typedef signed short int16_t;
44
+ typedef unsigned short uint16_t;
45
+ typedef signed int int32_t;
46
+ typedef unsigned int uint32_t;
47
+ typedef signed long long int64_t;
48
+ typedef unsigned long long uint64_t;
49
+ typedef unsigned long uintptr_t;
50
+ #else
51
+ #define HAVE_STDINT_H 1
52
+ #endif /* Visual Studio 2008 */
53
+
54
+ #ifdef __GNUC__
55
+ #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
56
+ #endif
57
+
58
+ /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
59
+ #define SDL_AUDIO_DRIVER_DUMMY 1
60
+
61
+ /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
62
+ #define SDL_JOYSTICK_DISABLED 1
63
+
64
+ /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
65
+ #define SDL_HAPTIC_DISABLED 1
66
+
67
+ /* Enable the stub sensor driver (src/sensor/dummy/\*.c) */
68
+ #define SDL_SENSOR_DISABLED 1
69
+
70
+ /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
71
+ #define SDL_LOADSO_DISABLED 1
72
+
73
+ /* Enable the stub thread support (src/thread/generic/\*.c) */
74
+ #define SDL_THREADS_DISABLED 1
75
+
76
+ /* Enable the stub timer support (src/timer/dummy/\*.c) */
77
+ #define SDL_TIMERS_DISABLED 1
78
+
79
+ /* Enable the dummy video driver (src/video/dummy/\*.c) */
80
+ #define SDL_VIDEO_DRIVER_DUMMY 1
81
+
82
+ /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
83
+ #define SDL_FILESYSTEM_DUMMY 1
84
+
85
+ #endif /* SDL_config_minimal_h_ */
@@ -0,0 +1,170 @@
1
+ /*
2
+ Simple DirectMedia Layer
3
+ Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
20
+ */
21
+
22
+ #ifndef SDL_config_os2_h_
23
+ #define SDL_config_os2_h_
24
+ #define SDL_config_h_
25
+
26
+ #include "SDL_platform.h"
27
+
28
+ #define SDL_AUDIO_DRIVER_DUMMY 1
29
+ #define SDL_AUDIO_DRIVER_DISK 1
30
+
31
+ #define SDL_POWER_DISABLED 1
32
+ #define SDL_JOYSTICK_DISABLED 1
33
+ #define SDL_HAPTIC_DISABLED 1
34
+ /*#undef SDL_JOYSTICK_HIDAPI */
35
+
36
+ #define SDL_SENSOR_DUMMY 1
37
+ #define SDL_VIDEO_DRIVER_DUMMY 1
38
+
39
+ /* Enable OpenGL support */
40
+ /* #undef SDL_VIDEO_OPENGL */
41
+
42
+ /* Enable Vulkan support */
43
+ /* #undef SDL_VIDEO_VULKAN */
44
+
45
+ #define SDL_LOADSO_DISABLED 1
46
+ #define SDL_THREADS_DISABLED 1
47
+ #define SDL_TIMERS_DISABLED 1
48
+ #define SDL_FILESYSTEM_DUMMY 1
49
+
50
+ /* Enable assembly routines */
51
+ #define SDL_ASSEMBLY_ROUTINES 1
52
+
53
+ /* #undef HAVE_LIBSAMPLERATE_H */
54
+
55
+ /* Enable dynamic libsamplerate support */
56
+ /* #undef SDL_LIBSAMPLERATE_DYNAMIC */
57
+
58
+ #define HAVE_LIBC 1
59
+
60
+ #define HAVE_SYS_TYPES_H 1
61
+ #define HAVE_STDIO_H 1
62
+ #define STDC_HEADERS 1
63
+ #define HAVE_STDLIB_H 1
64
+ #define HAVE_STDARG_H 1
65
+ #define HAVE_STDDEF_H 1
66
+ #define HAVE_MALLOC_H 1
67
+ #define HAVE_MEMORY_H 1
68
+ #define HAVE_STRING_H 1
69
+ #define HAVE_STRINGS_H 1
70
+ #define HAVE_WCHAR_H 1
71
+ #define HAVE_INTTYPES_H 1
72
+ #define HAVE_STDINT_H 1
73
+ #define HAVE_LIMITS_H 1
74
+ #define HAVE_CTYPE_H 1
75
+ #define HAVE_MATH_H 1
76
+ #define HAVE_FLOAT_H 1
77
+ #define HAVE_SIGNAL_H 1
78
+
79
+ #define HAVE_MALLOC 1
80
+ #define HAVE_CALLOC 1
81
+ #define HAVE_REALLOC 1
82
+ #define HAVE_FREE 1
83
+ #if defined(__WATCOMC__)
84
+ #define HAVE__FSEEKI64 1
85
+ #define HAVE__FTELLI64 1
86
+ #endif
87
+ #define HAVE_ALLOCA 1
88
+ #define HAVE_GETENV 1
89
+ #define HAVE_SETENV 1
90
+ #define HAVE_PUTENV 1
91
+ #define HAVE_QSORT 1
92
+ #define HAVE_ABS 1
93
+ #define HAVE_BCOPY 1
94
+ #define HAVE_MEMSET 1
95
+ #define HAVE_MEMCPY 1
96
+ #define HAVE_MEMMOVE 1
97
+ #define HAVE_MEMCMP 1
98
+ #define HAVE_WCSLEN 1
99
+ #define HAVE_WCSLCPY 1
100
+ #define HAVE_WCSLCAT 1
101
+ #define HAVE_WCSCMP 1
102
+ #define HAVE_STRLEN 1
103
+ #define HAVE_STRLCPY 1
104
+ #define HAVE_STRLCAT 1
105
+ #define HAVE__STRREV 1
106
+ #define HAVE__STRUPR 1
107
+ #define HAVE__STRLWR 1
108
+ #define HAVE_INDEX 1
109
+ #define HAVE_RINDEX 1
110
+ #define HAVE_STRCHR 1
111
+ #define HAVE_STRRCHR 1
112
+ #define HAVE_STRSTR 1
113
+ #define HAVE_ITOA 1
114
+ #define HAVE__LTOA 1
115
+ #define HAVE__ULTOA 1
116
+ #define HAVE_STRTOL 1
117
+ #define HAVE_STRTOUL 1
118
+ #define HAVE__I64TOA 1
119
+ #define HAVE__UI64TOA 1
120
+ #define HAVE_STRTOLL 1
121
+ #define HAVE_STRTOULL 1
122
+ #define HAVE_STRTOD 1
123
+ #define HAVE_ATOI 1
124
+ #define HAVE_ATOF 1
125
+ #define HAVE_STRCMP 1
126
+ #define HAVE_STRNCMP 1
127
+ #define HAVE_STRICMP 1
128
+ #define HAVE_STRCASECMP 1
129
+ #define HAVE_STRNCASECMP 1
130
+ #define HAVE_SSCANF 1
131
+ #define HAVE_SNPRINTF 1
132
+ #define HAVE_VSNPRINTF 1
133
+ #define HAVE_SETJMP 1
134
+ #define HAVE_ACOS 1
135
+ /* #undef HAVE_ACOSF */
136
+ #define HAVE_ASIN 1
137
+ /* #undef HAVE_ASINF */
138
+ #define HAVE_ATAN 1
139
+ #define HAVE_ATAN2 1
140
+ /* #undef HAVE_ATAN2F */
141
+ #define HAVE_CEIL 1
142
+ /* #undef HAVE_CEILF */
143
+ /* #undef HAVE_COPYSIGN */
144
+ /* #undef HAVE_COPYSIGNF */
145
+ #define HAVE_COS 1
146
+ /* #undef HAVE_COSF */
147
+ #define HAVE_EXP 1
148
+ /* #undef HAVE_EXPF */
149
+ #define HAVE_FABS 1
150
+ /* #undef HAVE_FABSF */
151
+ #define HAVE_FLOOR 1
152
+ /* #undef HAVE_FLOORF */
153
+ #define HAVE_FMOD 1
154
+ /* #undef HAVE_FMODF */
155
+ #define HAVE_LOG 1
156
+ /* #undef HAVE_LOGF */
157
+ #define HAVE_LOG10 1
158
+ /* #undef HAVE_LOG10F */
159
+ #define HAVE_POW 1
160
+ /* #undef HAVE_POWF */
161
+ #define HAVE_SIN 1
162
+ /* #undef HAVE_SINF */
163
+ /* #undef HAVE_SCALBN */
164
+ /* #undef HAVE_SCALBNF */
165
+ #define HAVE_SQRT 1
166
+ /* #undef HAVE_SQRTF */
167
+ #define HAVE_TAN 1
168
+ /* #undef HAVE_TANF */
169
+
170
+ #endif /* SDL_config_os2_h_ */
@@ -0,0 +1,133 @@
1
+ /*
2
+ Simple DirectMedia Layer
3
+ Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
20
+ */
21
+
22
+ #ifndef SDL_config_pandora_h_
23
+ #define SDL_config_pandora_h_
24
+ #define SDL_config_h_
25
+
26
+ /* This is a set of defines to configure the SDL features */
27
+
28
+ /* General platform specific identifiers */
29
+ #include "SDL_platform.h"
30
+
31
+ #ifdef __LP64__
32
+ #define SIZEOF_VOIDP 8
33
+ #else
34
+ #define SIZEOF_VOIDP 4
35
+ #endif
36
+
37
+ #define SDL_BYTEORDER 1234
38
+
39
+ #define STDC_HEADERS 1
40
+ #define HAVE_ALLOCA_H 1
41
+ #define HAVE_CTYPE_H 1
42
+ #define HAVE_ICONV_H 1
43
+ #define HAVE_INTTYPES_H 1
44
+ #define HAVE_LIMITS_H 1
45
+ #define HAVE_MALLOC_H 1
46
+ #define HAVE_MATH_H 1
47
+ #define HAVE_MEMORY_H 1
48
+ #define HAVE_SIGNAL_H 1
49
+ #define HAVE_STDARG_H 1
50
+ #define HAVE_STDINT_H 1
51
+ #define HAVE_STDIO_H 1
52
+ #define HAVE_STDLIB_H 1
53
+ #define HAVE_STRINGS_H 1
54
+ #define HAVE_STRING_H 1
55
+ #define HAVE_SYS_TYPES_H 1
56
+
57
+ #define HAVE_MALLOC 1
58
+ #define HAVE_CALLOC 1
59
+ #define HAVE_REALLOC 1
60
+ #define HAVE_FREE 1
61
+ #define HAVE_ALLOCA 1
62
+ #define HAVE_GETENV 1
63
+ #define HAVE_SETENV 1
64
+ #define HAVE_PUTENV 1
65
+ #define HAVE_UNSETENV 1
66
+ #define HAVE_QSORT 1
67
+ #define HAVE_ABS 1
68
+ #define HAVE_BCOPY 1
69
+ #define HAVE_MEMSET 1
70
+ #define HAVE_MEMCPY 1
71
+ #define HAVE_MEMMOVE 1
72
+ #define HAVE_STRLEN 1
73
+ #define HAVE_STRCHR 1
74
+ #define HAVE_STRRCHR 1
75
+ #define HAVE_STRSTR 1
76
+ #define HAVE_STRTOL 1
77
+ #define HAVE_STRTOUL 1
78
+ #define HAVE_STRTOLL 1
79
+ #define HAVE_STRTOULL 1
80
+ #define HAVE_ATOI 1
81
+ #define HAVE_ATOF 1
82
+ #define HAVE_STRCMP 1
83
+ #define HAVE_STRNCMP 1
84
+ #define HAVE_STRCASECMP 1
85
+ #define HAVE_STRNCASECMP 1
86
+ #define HAVE_VSSCANF 1
87
+ #define HAVE_VSNPRINTF 1
88
+ #define HAVE_M_PI 1
89
+ #define HAVE_CEIL 1
90
+ #define HAVE_COPYSIGN 1
91
+ #define HAVE_COS 1
92
+ #define HAVE_COSF 1
93
+ #define HAVE_EXP 1
94
+ #define HAVE_FABS 1
95
+ #define HAVE_FLOOR 1
96
+ #define HAVE_LOG 1
97
+ #define HAVE_LOG10 1
98
+ #define HAVE_SCALBN 1
99
+ #define HAVE_SIN 1
100
+ #define HAVE_SINF 1
101
+ #define HAVE_SQRT 1
102
+ #define HAVE_SQRTF 1
103
+ #define HAVE_TAN 1
104
+ #define HAVE_TANF 1
105
+ #define HAVE_SIGACTION 1
106
+ #define HAVE_SETJMP 1
107
+ #define HAVE_NANOSLEEP 1
108
+
109
+ #define SDL_AUDIO_DRIVER_DUMMY 1
110
+ #define SDL_AUDIO_DRIVER_OSS 1
111
+
112
+ #define SDL_INPUT_LINUXEV 1
113
+ #define SDL_INPUT_TSLIB 1
114
+ #define SDL_JOYSTICK_LINUX 1
115
+ #define SDL_HAPTIC_LINUX 1
116
+
117
+ #define SDL_SENSOR_DUMMY 1
118
+
119
+ #define SDL_LOADSO_DLOPEN 1
120
+
121
+ #define SDL_THREAD_PTHREAD 1
122
+ #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
123
+
124
+ #define SDL_TIMER_UNIX 1
125
+ #define SDL_FILESYSTEM_UNIX 1
126
+
127
+ #define SDL_VIDEO_DRIVER_DUMMY 1
128
+ #define SDL_VIDEO_DRIVER_X11 1
129
+ #define SDL_VIDEO_DRIVER_PANDORA 1
130
+ #define SDL_VIDEO_RENDER_OGL_ES 1
131
+ #define SDL_VIDEO_OPENGL_ES 1
132
+
133
+ #endif /* SDL_config_pandora_h_ */
@@ -0,0 +1,164 @@
1
+ /*
2
+ Simple DirectMedia Layer
3
+ Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
20
+ */
21
+
22
+ #ifndef SDL_config_psp_h_
23
+ #define SDL_config_psp_h_
24
+ #define SDL_config_h_
25
+
26
+ #include "SDL_platform.h"
27
+
28
+
29
+
30
+ #ifdef __GNUC__
31
+ #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
32
+ #endif
33
+
34
+ #define HAVE_GCC_ATOMICS 1
35
+
36
+ #define STDC_HEADERS 1
37
+ #define HAVE_ALLOCA_H 1
38
+ #define HAVE_CTYPE_H 1
39
+ #define HAVE_INTTYPES_H 1
40
+ #define HAVE_LIMITS_H 1
41
+ #define HAVE_MATH_H 1
42
+ #define HAVE_SIGNAL_H 1
43
+ #define HAVE_STDINT_H 1
44
+ #define HAVE_STDIO_H 1
45
+ #define HAVE_STRING_H 1
46
+ #define HAVE_SYS_TYPES_H 1
47
+
48
+ /* C library functions */
49
+ #define HAVE_MALLOC 1
50
+ #define HAVE_CALLOC 1
51
+ #define HAVE_REALLOC 1
52
+ #define HAVE_FREE 1
53
+ #define HAVE_ALLOCA 1
54
+ #define HAVE_GETENV 1
55
+ #define HAVE_SETENV 1
56
+ #define HAVE_PUTENV 1
57
+ #define HAVE_SETENV 1
58
+ #define HAVE_UNSETENV 1
59
+ #define HAVE_QSORT 1
60
+ #define HAVE_ABS 1
61
+ #define HAVE_BCOPY 1
62
+ #define HAVE_MEMSET 1
63
+ #define HAVE_MEMCPY 1
64
+ #define HAVE_MEMMOVE 1
65
+ #define HAVE_MEMCMP 1
66
+ #define HAVE_STRLEN 1
67
+ #define HAVE_STRLCPY 1
68
+ #define HAVE_STRLCAT 1
69
+ #define HAVE_STRCHR 1
70
+ #define HAVE_STRRCHR 1
71
+ #define HAVE_STRSTR 1
72
+ #define HAVE_STRTOL 1
73
+ #define HAVE_STRTOUL 1
74
+ #define HAVE_STRTOLL 1
75
+ #define HAVE_STRTOULL 1
76
+ #define HAVE_STRTOD 1
77
+ #define HAVE_ATOI 1
78
+ #define HAVE_ATOF 1
79
+ #define HAVE_STRCMP 1
80
+ #define HAVE_STRNCMP 1
81
+ #define HAVE_STRCASECMP 1
82
+ #define HAVE_STRNCASECMP 1
83
+ #define HAVE_VSSCANF 1
84
+ #define HAVE_VSNPRINTF 1
85
+ #define HAVE_M_PI 1
86
+ #define HAVE_ACOS 1
87
+ #define HAVE_ACOSF 1
88
+ #define HAVE_ASIN 1
89
+ #define HAVE_ASINF 1
90
+ #define HAVE_ATAN 1
91
+ #define HAVE_ATANF 1
92
+ #define HAVE_ATAN2 1
93
+ #define HAVE_ATAN2F 1
94
+ #define HAVE_CEIL 1
95
+ #define HAVE_CEILF 1
96
+ #define HAVE_COPYSIGN 1
97
+ #define HAVE_COPYSIGNF 1
98
+ #define HAVE_COS 1
99
+ #define HAVE_COSF 1
100
+ #define HAVE_EXP 1
101
+ #define HAVE_EXPF 1
102
+ #define HAVE_FABS 1
103
+ #define HAVE_FABSF 1
104
+ #define HAVE_FLOOR 1
105
+ #define HAVE_FLOORF 1
106
+ #define HAVE_FMOD 1
107
+ #define HAVE_FMODF 1
108
+ #define HAVE_LOG 1
109
+ #define HAVE_LOGF 1
110
+ #define HAVE_LOG10 1
111
+ #define HAVE_LOG10F 1
112
+ #define HAVE_POW 1
113
+ #define HAVE_POWF 1
114
+ #define HAVE_SCALBN 1
115
+ #define HAVE_SCALBNF 1
116
+ #define HAVE_SIN 1
117
+ #define HAVE_SINF 1
118
+ #define HAVE_SQRT 1
119
+ #define HAVE_SQRTF 1
120
+ #define HAVE_TAN 1
121
+ #define HAVE_TANF 1
122
+ #define HAVE_SETJMP 1
123
+ #define HAVE_NANOSLEEP 1
124
+ /* #define HAVE_SYSCONF 1 */
125
+ /* #define HAVE_SIGACTION 1 */
126
+
127
+
128
+ /* PSP isn't that sophisticated */
129
+ #define LACKS_SYS_MMAN_H 1
130
+
131
+ /* Enable the PSP thread support (src/thread/psp/\*.c) */
132
+ #define SDL_THREAD_PSP 1
133
+
134
+ /* Enable the PSP timer support (src/timer/psp/\*.c) */
135
+ #define SDL_TIMERS_PSP 1
136
+
137
+ /* Enable the PSP joystick driver (src/joystick/psp/\*.c) */
138
+ #define SDL_JOYSTICK_PSP 1
139
+
140
+ /* Enable the dummy sensor driver */
141
+ #define SDL_SENSOR_DUMMY 1
142
+
143
+ /* Enable the PSP audio driver (src/audio/psp/\*.c) */
144
+ #define SDL_AUDIO_DRIVER_PSP 1
145
+
146
+ /* PSP video driver */
147
+ #define SDL_VIDEO_DRIVER_PSP 1
148
+
149
+ /* PSP render driver */
150
+ #define SDL_VIDEO_RENDER_PSP 1
151
+
152
+ #define SDL_POWER_PSP 1
153
+
154
+ /* !!! FIXME: what does PSP do for filesystem stuff? */
155
+ #define SDL_FILESYSTEM_DUMMY 1
156
+
157
+ /* PSP doesn't have haptic device (src/haptic/dummy/\*.c) */
158
+ #define SDL_HAPTIC_DISABLED 1
159
+
160
+ /* PSP can't load shared object (src/loadso/dummy/\*.c) */
161
+ #define SDL_LOADSO_DISABLED 1
162
+
163
+
164
+ #endif /* SDL_config_psp_h_ */