ruby2d 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. checksums.yaml +4 -4
  2. data/assets/include/GLES2/gl2.h +656 -0
  3. data/assets/include/GLES2/gl2ext.h +3949 -0
  4. data/assets/include/GLES2/gl2ext_angle.h +701 -0
  5. data/assets/include/GLES2/gl2platform.h +27 -0
  6. data/assets/include/GLES3/gl3.h +1192 -0
  7. data/assets/include/GLES3/gl31.h +1507 -0
  8. data/assets/include/GLES3/gl32.h +1808 -0
  9. data/assets/include/GLES3/gl3platform.h +27 -0
  10. data/assets/include/KHR/khrplatform.h +290 -0
  11. data/assets/include/SDL2/SDL.h +1 -0
  12. data/assets/include/SDL2/SDL_assert.h +4 -2
  13. data/assets/include/SDL2/SDL_atomic.h +20 -0
  14. data/assets/include/SDL2/SDL_audio.h +40 -4
  15. data/assets/include/SDL2/SDL_blendmode.h +4 -6
  16. data/assets/include/SDL2/SDL_clipboard.h +47 -0
  17. data/assets/include/SDL2/SDL_config.h +6 -2
  18. data/assets/include/SDL2/SDL_config_android.h +2 -0
  19. data/assets/include/SDL2/SDL_config_emscripten.h +2 -0
  20. data/assets/include/SDL2/SDL_config_iphoneos.h +3 -1
  21. data/assets/include/SDL2/SDL_config_macosx.h +3 -6
  22. data/assets/include/SDL2/SDL_config_minimal.h +18 -11
  23. data/assets/include/SDL2/SDL_config_ngage.h +89 -0
  24. data/assets/include/SDL2/SDL_config_os2.h +5 -3
  25. data/assets/include/SDL2/SDL_config_pandora.h +1 -0
  26. data/assets/include/SDL2/SDL_config_windows.h +71 -45
  27. data/assets/include/SDL2/SDL_config_wingdk.h +253 -0
  28. data/assets/include/SDL2/SDL_config_winrt.h +11 -49
  29. data/assets/include/SDL2/SDL_config_xbox.h +235 -0
  30. data/assets/include/SDL2/SDL_cpuinfo.h +39 -4
  31. data/assets/include/SDL2/SDL_egl.h +59 -9
  32. data/assets/include/SDL2/SDL_endian.h +34 -3
  33. data/assets/include/SDL2/SDL_events.h +32 -1
  34. data/assets/include/SDL2/SDL_filesystem.h +5 -1
  35. data/assets/include/SDL2/SDL_gamecontroller.h +78 -5
  36. data/assets/include/SDL2/SDL_guid.h +100 -0
  37. data/assets/include/SDL2/SDL_hints.h +645 -43
  38. data/assets/include/SDL2/SDL_image.h +2045 -33
  39. data/assets/include/SDL2/SDL_joystick.h +127 -7
  40. data/assets/include/SDL2/SDL_keyboard.h +38 -1
  41. data/assets/include/SDL2/SDL_keycode.h +6 -1
  42. data/assets/include/SDL2/SDL_log.h +2 -2
  43. data/assets/include/SDL2/SDL_main.h +42 -2
  44. data/assets/include/SDL2/SDL_metal.h +2 -1
  45. data/assets/include/SDL2/SDL_mixer.h +2529 -396
  46. data/assets/include/SDL2/SDL_mouse.h +12 -1
  47. data/assets/include/SDL2/SDL_opengl.h +0 -51
  48. data/assets/include/SDL2/SDL_opengl_glext.h +2260 -231
  49. data/assets/include/SDL2/SDL_opengles2_gl2.h +374 -339
  50. data/assets/include/SDL2/SDL_opengles2_gl2ext.h +3479 -1496
  51. data/assets/include/SDL2/SDL_opengles2_gl2platform.h +6 -9
  52. data/assets/include/SDL2/SDL_opengles2_khrplatform.h +43 -14
  53. data/assets/include/SDL2/SDL_platform.h +32 -6
  54. data/assets/include/SDL2/SDL_rect.h +154 -2
  55. data/assets/include/SDL2/SDL_render.h +46 -17
  56. data/assets/include/SDL2/SDL_revision.h +4 -0
  57. data/assets/include/SDL2/SDL_rwops.h +1 -15
  58. data/assets/include/SDL2/SDL_scancode.h +46 -21
  59. data/assets/include/SDL2/SDL_sensor.h +24 -3
  60. data/assets/include/SDL2/SDL_stdinc.h +119 -8
  61. data/assets/include/SDL2/SDL_surface.h +3 -1
  62. data/assets/include/SDL2/SDL_system.h +66 -6
  63. data/assets/include/SDL2/SDL_syswm.h +2 -0
  64. data/assets/include/SDL2/SDL_test_common.h +1 -0
  65. data/assets/include/SDL2/SDL_test_font.h +90 -3
  66. data/assets/include/SDL2/SDL_thread.h +3 -3
  67. data/assets/include/SDL2/SDL_touch.h +8 -0
  68. data/assets/include/SDL2/SDL_ttf.h +2084 -155
  69. data/assets/include/SDL2/SDL_version.h +19 -3
  70. data/assets/include/SDL2/SDL_video.h +71 -9
  71. data/assets/include/SDL2/begin_code.h +4 -4
  72. data/assets/include/mrbconf.h +15 -17
  73. data/assets/include/mruby/array.h +8 -21
  74. data/assets/include/mruby/boxing_nan.h +115 -86
  75. data/assets/include/mruby/boxing_word.h +104 -78
  76. data/assets/include/mruby/common.h +6 -0
  77. data/assets/include/mruby/compile.h +3 -4
  78. data/assets/include/mruby/debug.h +4 -2
  79. data/assets/include/mruby/dump.h +5 -2
  80. data/assets/include/mruby/error.h +12 -2
  81. data/assets/include/mruby/gc.h +2 -0
  82. data/assets/include/mruby/hash.h +1 -3
  83. data/assets/include/mruby/irep.h +4 -4
  84. data/assets/include/mruby/numeric.h +21 -13
  85. data/assets/include/mruby/opcode.h +30 -0
  86. data/assets/include/mruby/ops.h +99 -101
  87. data/assets/include/mruby/presym/scanning.h +15 -9
  88. data/assets/include/mruby/proc.h +4 -2
  89. data/assets/include/mruby/string.h +3 -24
  90. data/assets/include/mruby/value.h +80 -40
  91. data/assets/include/mruby/variable.h +0 -15
  92. data/assets/include/mruby/version.h +5 -5
  93. data/assets/include/mruby.h +86 -16
  94. data/assets/macos/universal/bin/mrbc +0 -0
  95. data/assets/macos/universal/lib/libFLAC.a +0 -0
  96. data/assets/macos/universal/lib/libSDL2.a +0 -0
  97. data/assets/macos/universal/lib/libSDL2_image.a +0 -0
  98. data/assets/macos/universal/lib/libSDL2_mixer.a +0 -0
  99. data/assets/macos/universal/lib/libSDL2_ttf.a +0 -0
  100. data/assets/macos/universal/lib/libavif.a +0 -0
  101. data/assets/macos/universal/lib/libbrotlicommon-static.a +0 -0
  102. data/assets/macos/universal/lib/libbrotlidec-static.a +0 -0
  103. data/assets/macos/universal/lib/libfreetype.a +0 -0
  104. data/assets/macos/universal/lib/libgraphite2.a +0 -0
  105. data/assets/macos/universal/lib/libharfbuzz.a +0 -0
  106. data/assets/macos/universal/lib/libhwy.a +0 -0
  107. data/assets/macos/universal/lib/libjpeg.a +0 -0
  108. data/assets/macos/universal/lib/libjxl.a +0 -0
  109. data/assets/macos/universal/lib/libmodplug.a +0 -0
  110. data/assets/macos/universal/lib/libmpg123.a +0 -0
  111. data/assets/macos/universal/lib/libmruby.a +0 -0
  112. data/assets/macos/universal/lib/libogg.a +0 -0
  113. data/assets/macos/universal/lib/libpng.a +0 -0
  114. data/assets/macos/universal/lib/libtiff.a +0 -0
  115. data/assets/macos/universal/lib/libvorbis.a +0 -0
  116. data/assets/macos/universal/lib/libvorbisfile.a +0 -0
  117. data/assets/macos/universal/lib/libwebp.a +0 -0
  118. data/assets/macos/universal/lib/libzstd.a +0 -0
  119. data/assets/wasm/libmruby.a +0 -0
  120. data/assets/wasm/template.html +52 -4
  121. data/assets/windows/mingw-w64-ucrt-x86_64/bin/mrbc.exe +0 -0
  122. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a +0 -0
  123. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a +0 -0
  124. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a +0 -0
  125. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_image.a +0 -0
  126. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a +0 -0
  127. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_ttf.a +0 -0
  128. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlicommon.a +0 -0
  129. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlidec.a +0 -0
  130. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbz2.a +0 -0
  131. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libdeflate.a +0 -0
  132. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a +0 -0
  133. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a +0 -0
  134. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a +0 -0
  135. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a +0 -0
  136. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libhwy.a +0 -0
  137. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a +0 -0
  138. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a +0 -0
  139. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjxl.a +0 -0
  140. data/assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a +0 -0
  141. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a +0 -0
  142. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
  143. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a +0 -0
  144. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a +0 -0
  145. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
  146. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a +0 -0
  147. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libpng.a +0 -0
  148. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
  149. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a +1 -0
  150. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
  151. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a +0 -0
  152. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a +0 -0
  153. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a +0 -0
  154. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a +0 -0
  155. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
  156. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.a +0 -0
  157. data/assets/windows/mingw-w64-x86_64/bin/mrbc.exe +0 -0
  158. data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
  159. data/assets/windows/mingw-w64-x86_64/lib/libLerc.a +0 -0
  160. data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
  161. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a +0 -0
  162. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
  163. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a +0 -0
  164. data/assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a +0 -0
  165. data/assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a +0 -0
  166. data/assets/windows/mingw-w64-x86_64/lib/libdeflate.a +0 -0
  167. data/assets/windows/mingw-w64-x86_64/lib/libfreetype.a +0 -0
  168. data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
  169. data/assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a +0 -0
  170. data/assets/windows/mingw-w64-x86_64/lib/libhwy.a +0 -0
  171. data/assets/windows/mingw-w64-x86_64/lib/libjpeg.a +0 -0
  172. data/assets/windows/mingw-w64-x86_64/lib/libjxl.a +0 -0
  173. data/assets/windows/mingw-w64-x86_64/lib/liblzma.a +0 -0
  174. data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
  175. data/assets/windows/mingw-w64-x86_64/lib/libmruby.a +0 -0
  176. data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
  177. data/assets/windows/mingw-w64-x86_64/lib/libpng.a +0 -0
  178. data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
  179. data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -0
  180. data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
  181. data/assets/windows/mingw-w64-x86_64/lib/libtiff.a +0 -0
  182. data/assets/windows/mingw-w64-x86_64/lib/libwebp.a +0 -0
  183. data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
  184. data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
  185. data/ext/ruby2d/canvas.c +540 -0
  186. data/ext/ruby2d/extconf.rb +39 -21
  187. data/ext/ruby2d/gl.c +3 -3
  188. data/ext/ruby2d/image.c +7 -7
  189. data/ext/ruby2d/ruby2d.c +741 -24
  190. data/ext/ruby2d/ruby2d.h +66 -3
  191. data/ext/ruby2d/sound.c +16 -2
  192. data/lib/ruby2d/canvas.rb +315 -0
  193. data/lib/ruby2d/circle.rb +30 -15
  194. data/lib/ruby2d/cli/build.rb +11 -4
  195. data/lib/ruby2d/cli/enable_console.rb +3 -1
  196. data/lib/ruby2d/color.rb +133 -77
  197. data/lib/ruby2d/core.rb +32 -0
  198. data/lib/ruby2d/dsl.rb +38 -32
  199. data/lib/ruby2d/exceptions.rb +2 -1
  200. data/lib/ruby2d/font.rb +97 -62
  201. data/lib/ruby2d/image.rb +48 -27
  202. data/lib/ruby2d/line.rb +84 -45
  203. data/lib/ruby2d/music.rb +33 -23
  204. data/lib/ruby2d/pixel.rb +10 -9
  205. data/lib/ruby2d/pixmap.rb +39 -0
  206. data/lib/ruby2d/pixmap_atlas.rb +56 -0
  207. data/lib/ruby2d/quad.rb +98 -49
  208. data/lib/ruby2d/rectangle.rb +35 -36
  209. data/lib/ruby2d/renderable.rb +7 -6
  210. data/lib/ruby2d/sound.rb +23 -17
  211. data/lib/ruby2d/sprite.rb +181 -140
  212. data/lib/ruby2d/square.rb +21 -20
  213. data/lib/ruby2d/text.rb +47 -19
  214. data/lib/ruby2d/texture.rb +13 -3
  215. data/lib/ruby2d/tileset.rb +97 -44
  216. data/lib/ruby2d/triangle.rb +91 -42
  217. data/lib/ruby2d/version.rb +3 -1
  218. data/lib/ruby2d/vertices.rb +81 -45
  219. data/lib/ruby2d/window.rb +508 -371
  220. data/lib/ruby2d.rb +11 -29
  221. metadata +84 -16
  222. data/assets/include/SDL2/SDL_config_psp.h +0 -165
  223. data/assets/include/SDL2/SDL_config_wiz.h +0 -154
  224. data/assets/include/glew.h +0 -23686
  225. data/assets/macos/universal/lib/libpng16.a +0 -0
  226. data/assets/wasm/build_config.rb +0 -13
  227. data/assets/windows/glew/README.md +0 -10
  228. data/assets/windows/glew/glew.h +0 -23686
  229. data/assets/windows/glew/libglew32.a +0 -0
  230. data/assets/windows/mingw-w64-x86_64/lib/libpng16.a +0 -0
  231. data/lib/ruby2d/entity.rb +0 -17
data/lib/ruby2d.rb CHANGED
@@ -1,33 +1,9 @@
1
- # Ruby2D module and native extension loader, adds DSL
2
-
3
- unless RUBY_ENGINE == 'mruby'
4
- require 'ruby2d/cli/colorize'
5
- require 'ruby2d/exceptions'
6
- require 'ruby2d/renderable'
7
- require 'ruby2d/color'
8
- require 'ruby2d/window'
9
- require 'ruby2d/dsl'
10
- require 'ruby2d/entity'
11
- require 'ruby2d/quad'
12
- require 'ruby2d/line'
13
- require 'ruby2d/circle'
14
- require 'ruby2d/rectangle'
15
- require 'ruby2d/square'
16
- require 'ruby2d/triangle'
17
- require 'ruby2d/pixel'
18
- require 'ruby2d/image'
19
- require 'ruby2d/sprite'
20
- require 'ruby2d/tileset'
21
- require 'ruby2d/font'
22
- require 'ruby2d/text'
23
- require 'ruby2d/sound'
24
- require 'ruby2d/music'
25
- require 'ruby2d/texture'
26
- require 'ruby2d/vertices'
27
- require 'ruby2d/ruby2d' # load native extension
28
- end
1
+ # frozen_string_literal: true
29
2
 
3
+ require 'ruby2d/core' unless RUBY_ENGINE == 'mruby'
30
4
 
5
+ # Create 2D applications, games, and visualizations with ease. Just a few lines of code is enough to get started.
6
+ # Visit https://www.ruby2d.com for more information.
31
7
  module Ruby2D
32
8
  def self.gem_dir
33
9
  # mruby doesn't define `Gem`
@@ -47,6 +23,12 @@ module Ruby2D
47
23
  end
48
24
  end
49
25
 
26
+ # Ruby2D adds DSL
27
+ # Apps can avoid the mixins by using: require "ruby2d/core"
50
28
 
29
+ # --- start lint exception
30
+ # rubocop:disable Style/MixinUsage
51
31
  include Ruby2D
52
- extend Ruby2D::DSL
32
+ extend Ruby2D::DSL
33
+ # rubocop:enable Style/MixinUsage
34
+ # --- end lint exception
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Black
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-10 00:00:00.000000000 Z
11
+ date: 2023-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.10'
19
+ version: '3.12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.10'
26
+ version: '3.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.40'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.40'
27
41
  description: Make cross-platform 2D applications in Ruby
28
42
  email: tom@blacktm.com
29
43
  executables:
@@ -33,6 +47,15 @@ extensions:
33
47
  extra_rdoc_files: []
34
48
  files:
35
49
  - assets/app.icns
50
+ - assets/include/GLES2/gl2.h
51
+ - assets/include/GLES2/gl2ext.h
52
+ - assets/include/GLES2/gl2ext_angle.h
53
+ - assets/include/GLES2/gl2platform.h
54
+ - assets/include/GLES3/gl3.h
55
+ - assets/include/GLES3/gl31.h
56
+ - assets/include/GLES3/gl32.h
57
+ - assets/include/GLES3/gl3platform.h
58
+ - assets/include/KHR/khrplatform.h
36
59
  - assets/include/SDL2/SDL.h
37
60
  - assets/include/SDL2/SDL_assert.h
38
61
  - assets/include/SDL2/SDL_atomic.h
@@ -46,12 +69,13 @@ files:
46
69
  - assets/include/SDL2/SDL_config_iphoneos.h
47
70
  - assets/include/SDL2/SDL_config_macosx.h
48
71
  - assets/include/SDL2/SDL_config_minimal.h
72
+ - assets/include/SDL2/SDL_config_ngage.h
49
73
  - assets/include/SDL2/SDL_config_os2.h
50
74
  - assets/include/SDL2/SDL_config_pandora.h
51
- - assets/include/SDL2/SDL_config_psp.h
52
75
  - assets/include/SDL2/SDL_config_windows.h
76
+ - assets/include/SDL2/SDL_config_wingdk.h
53
77
  - assets/include/SDL2/SDL_config_winrt.h
54
- - assets/include/SDL2/SDL_config_wiz.h
78
+ - assets/include/SDL2/SDL_config_xbox.h
55
79
  - assets/include/SDL2/SDL_copying.h
56
80
  - assets/include/SDL2/SDL_cpuinfo.h
57
81
  - assets/include/SDL2/SDL_egl.h
@@ -61,6 +85,7 @@ files:
61
85
  - assets/include/SDL2/SDL_filesystem.h
62
86
  - assets/include/SDL2/SDL_gamecontroller.h
63
87
  - assets/include/SDL2/SDL_gesture.h
88
+ - assets/include/SDL2/SDL_guid.h
64
89
  - assets/include/SDL2/SDL_haptic.h
65
90
  - assets/include/SDL2/SDL_hidapi.h
66
91
  - assets/include/SDL2/SDL_hints.h
@@ -125,7 +150,6 @@ files:
125
150
  - assets/include/SDL2/SDL_vulkan.h
126
151
  - assets/include/SDL2/begin_code.h
127
152
  - assets/include/SDL2/close_code.h
128
- - assets/include/glew.h
129
153
  - assets/include/mrbconf.h
130
154
  - assets/include/mruby.h
131
155
  - assets/include/mruby/array.h
@@ -167,19 +191,25 @@ files:
167
191
  - assets/macos/universal/lib/libSDL2_image.a
168
192
  - assets/macos/universal/lib/libSDL2_mixer.a
169
193
  - assets/macos/universal/lib/libSDL2_ttf.a
194
+ - assets/macos/universal/lib/libavif.a
195
+ - assets/macos/universal/lib/libbrotlicommon-static.a
196
+ - assets/macos/universal/lib/libbrotlidec-static.a
170
197
  - assets/macos/universal/lib/libfreetype.a
171
198
  - assets/macos/universal/lib/libgraphite2.a
172
199
  - assets/macos/universal/lib/libharfbuzz.a
200
+ - assets/macos/universal/lib/libhwy.a
173
201
  - assets/macos/universal/lib/libjpeg.a
202
+ - assets/macos/universal/lib/libjxl.a
174
203
  - assets/macos/universal/lib/libmodplug.a
175
204
  - assets/macos/universal/lib/libmpg123.a
176
205
  - assets/macos/universal/lib/libmruby.a
177
206
  - assets/macos/universal/lib/libogg.a
178
- - assets/macos/universal/lib/libpng16.a
207
+ - assets/macos/universal/lib/libpng.a
179
208
  - assets/macos/universal/lib/libtiff.a
180
209
  - assets/macos/universal/lib/libvorbis.a
181
210
  - assets/macos/universal/lib/libvorbisfile.a
182
211
  - assets/macos/universal/lib/libwebp.a
212
+ - assets/macos/universal/lib/libzstd.a
183
213
  - assets/test_media/README.md
184
214
  - assets/test_media/bitstream_vera/COPYRIGHT.txt
185
215
  - assets/test_media/bitstream_vera/vera.ttf
@@ -210,12 +240,44 @@ files:
210
240
  - assets/test_media/sound.wav
211
241
  - assets/test_media/sprite_sheet.png
212
242
  - assets/test_media/texture_atlas.png
213
- - assets/wasm/build_config.rb
214
243
  - assets/wasm/libmruby.a
215
244
  - assets/wasm/template.html
216
- - assets/windows/glew/README.md
217
- - assets/windows/glew/glew.h
218
- - assets/windows/glew/libglew32.a
245
+ - assets/windows/mingw-w64-ucrt-x86_64/bin/mrbc.exe
246
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a
247
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a
248
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a
249
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_image.a
250
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a
251
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_ttf.a
252
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlicommon.a
253
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlidec.a
254
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libbz2.a
255
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libdeflate.a
256
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a
257
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a
258
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a
259
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a
260
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libhwy.a
261
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a
262
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a
263
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libjxl.a
264
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a
265
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a
266
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a
267
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a
268
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a
269
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a
270
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a
271
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libpng.a
272
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a
273
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a
274
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a
275
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a
276
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a
277
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a
278
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a
279
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a
280
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.a
219
281
  - assets/windows/mingw-w64-x86_64/bin/mrbc.exe
220
282
  - assets/windows/mingw-w64-x86_64/lib/libFLAC.a
221
283
  - assets/windows/mingw-w64-x86_64/lib/libLerc.a
@@ -231,8 +293,10 @@ files:
231
293
  - assets/windows/mingw-w64-x86_64/lib/libglew32.a
232
294
  - assets/windows/mingw-w64-x86_64/lib/libgraphite2.a
233
295
  - assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a
296
+ - assets/windows/mingw-w64-x86_64/lib/libhwy.a
234
297
  - assets/windows/mingw-w64-x86_64/lib/libjbig.a
235
298
  - assets/windows/mingw-w64-x86_64/lib/libjpeg.a
299
+ - assets/windows/mingw-w64-x86_64/lib/libjxl.a
236
300
  - assets/windows/mingw-w64-x86_64/lib/liblzma.a
237
301
  - assets/windows/mingw-w64-x86_64/lib/libmodplug.a
238
302
  - assets/windows/mingw-w64-x86_64/lib/libmpg123.a
@@ -240,7 +304,7 @@ files:
240
304
  - assets/windows/mingw-w64-x86_64/lib/libogg.a
241
305
  - assets/windows/mingw-w64-x86_64/lib/libopus.a
242
306
  - assets/windows/mingw-w64-x86_64/lib/libopusfile.a
243
- - assets/windows/mingw-w64-x86_64/lib/libpng16.a
307
+ - assets/windows/mingw-w64-x86_64/lib/libpng.a
244
308
  - assets/windows/mingw-w64-x86_64/lib/libsndfile.a
245
309
  - assets/windows/mingw-w64-x86_64/lib/libssp.a
246
310
  - assets/windows/mingw-w64-x86_64/lib/libstdc++.a
@@ -365,6 +429,7 @@ files:
365
429
  - assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
366
430
  - assets/xcode/tvos/main.c
367
431
  - bin/ruby2d
432
+ - ext/ruby2d/canvas.c
368
433
  - ext/ruby2d/common.c
369
434
  - ext/ruby2d/controllers.c
370
435
  - ext/ruby2d/extconf.rb
@@ -383,6 +448,7 @@ files:
383
448
  - ext/ruby2d/text.c
384
449
  - ext/ruby2d/window.c
385
450
  - lib/ruby2d.rb
451
+ - lib/ruby2d/canvas.rb
386
452
  - lib/ruby2d/circle.rb
387
453
  - lib/ruby2d/cli/build.rb
388
454
  - lib/ruby2d/cli/colorize.rb
@@ -391,14 +457,16 @@ files:
391
457
  - lib/ruby2d/cli/launch.rb
392
458
  - lib/ruby2d/cli/platform.rb
393
459
  - lib/ruby2d/color.rb
460
+ - lib/ruby2d/core.rb
394
461
  - lib/ruby2d/dsl.rb
395
- - lib/ruby2d/entity.rb
396
462
  - lib/ruby2d/exceptions.rb
397
463
  - lib/ruby2d/font.rb
398
464
  - lib/ruby2d/image.rb
399
465
  - lib/ruby2d/line.rb
400
466
  - lib/ruby2d/music.rb
401
467
  - lib/ruby2d/pixel.rb
468
+ - lib/ruby2d/pixmap.rb
469
+ - lib/ruby2d/pixmap_atlas.rb
402
470
  - lib/ruby2d/quad.rb
403
471
  - lib/ruby2d/rectangle.rb
404
472
  - lib/ruby2d/renderable.rb
@@ -424,14 +492,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
424
492
  requirements:
425
493
  - - ">="
426
494
  - !ruby/object:Gem::Version
427
- version: 2.0.0
495
+ version: 2.7.0
428
496
  required_rubygems_version: !ruby/object:Gem::Requirement
429
497
  requirements:
430
498
  - - ">="
431
499
  - !ruby/object:Gem::Version
432
500
  version: '0'
433
501
  requirements: []
434
- rubygems_version: 3.3.9
502
+ rubygems_version: 3.3.26
435
503
  signing_key:
436
504
  specification_version: 4
437
505
  summary: Ruby 2D
@@ -1,165 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2022 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
- #ifdef __GNUC__
29
- #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
30
- #endif
31
-
32
- #define HAVE_GCC_ATOMICS 1
33
-
34
- #define STDC_HEADERS 1
35
- #define HAVE_ALLOCA_H 1
36
- #define HAVE_CTYPE_H 1
37
- #define HAVE_INTTYPES_H 1
38
- #define HAVE_LIMITS_H 1
39
- #define HAVE_MATH_H 1
40
- #define HAVE_SIGNAL_H 1
41
- #define HAVE_STDINT_H 1
42
- #define HAVE_STDIO_H 1
43
- #define HAVE_STRING_H 1
44
- #define HAVE_SYS_TYPES_H 1
45
-
46
- /* C library functions */
47
- #define HAVE_MALLOC 1
48
- #define HAVE_CALLOC 1
49
- #define HAVE_REALLOC 1
50
- #define HAVE_FREE 1
51
- #define HAVE_ALLOCA 1
52
- #define HAVE_GETENV 1
53
- #define HAVE_SETENV 1
54
- #define HAVE_PUTENV 1
55
- #define HAVE_SETENV 1
56
- #define HAVE_UNSETENV 1
57
- #define HAVE_QSORT 1
58
- #define HAVE_ABS 1
59
- #define HAVE_BCOPY 1
60
- #define HAVE_MEMSET 1
61
- #define HAVE_MEMCPY 1
62
- #define HAVE_MEMMOVE 1
63
- #define HAVE_MEMCMP 1
64
- #define HAVE_STRLEN 1
65
- #define HAVE_STRLCPY 1
66
- #define HAVE_STRLCAT 1
67
- #define HAVE_STRCHR 1
68
- #define HAVE_STRRCHR 1
69
- #define HAVE_STRSTR 1
70
- #define HAVE_STRTOL 1
71
- #define HAVE_STRTOUL 1
72
- #define HAVE_STRTOLL 1
73
- #define HAVE_STRTOULL 1
74
- #define HAVE_STRTOD 1
75
- #define HAVE_ATOI 1
76
- #define HAVE_ATOF 1
77
- #define HAVE_STRCMP 1
78
- #define HAVE_STRNCMP 1
79
- #define HAVE_STRCASECMP 1
80
- #define HAVE_STRNCASECMP 1
81
- #define HAVE_VSSCANF 1
82
- #define HAVE_VSNPRINTF 1
83
- #define HAVE_M_PI 1
84
- #define HAVE_ACOS 1
85
- #define HAVE_ACOSF 1
86
- #define HAVE_ASIN 1
87
- #define HAVE_ASINF 1
88
- #define HAVE_ATAN 1
89
- #define HAVE_ATANF 1
90
- #define HAVE_ATAN2 1
91
- #define HAVE_ATAN2F 1
92
- #define HAVE_CEIL 1
93
- #define HAVE_CEILF 1
94
- #define HAVE_COPYSIGN 1
95
- #define HAVE_COPYSIGNF 1
96
- #define HAVE_COS 1
97
- #define HAVE_COSF 1
98
- #define HAVE_EXP 1
99
- #define HAVE_EXPF 1
100
- #define HAVE_FABS 1
101
- #define HAVE_FABSF 1
102
- #define HAVE_FLOOR 1
103
- #define HAVE_FLOORF 1
104
- #define HAVE_FMOD 1
105
- #define HAVE_FMODF 1
106
- #define HAVE_LOG 1
107
- #define HAVE_LOGF 1
108
- #define HAVE_LOG10 1
109
- #define HAVE_LOG10F 1
110
- #define HAVE_POW 1
111
- #define HAVE_POWF 1
112
- #define HAVE_SCALBN 1
113
- #define HAVE_SCALBNF 1
114
- #define HAVE_SIN 1
115
- #define HAVE_SINF 1
116
- #define HAVE_SQRT 1
117
- #define HAVE_SQRTF 1
118
- #define HAVE_TAN 1
119
- #define HAVE_TANF 1
120
- #define HAVE_SETJMP 1
121
- #define HAVE_NANOSLEEP 1
122
- /* #define HAVE_SYSCONF 1 */
123
- /* #define HAVE_SIGACTION 1 */
124
-
125
-
126
- /* PSP isn't that sophisticated */
127
- #define LACKS_SYS_MMAN_H 1
128
-
129
- /* Enable the PSP thread support (src/thread/psp/\*.c) */
130
- #define SDL_THREAD_PSP 1
131
-
132
- /* Enable the PSP timer support (src/timer/psp/\*.c) */
133
- #define SDL_TIMER_PSP 1
134
-
135
- /* Enable the PSP joystick driver (src/joystick/psp/\*.c) */
136
- #define SDL_JOYSTICK_PSP 1
137
- #define SDL_JOYSTICK_VIRTUAL 1
138
-
139
- /* Enable the dummy sensor driver */
140
- #define SDL_SENSOR_DUMMY 1
141
-
142
- /* Enable the PSP audio driver (src/audio/psp/\*.c) */
143
- #define SDL_AUDIO_DRIVER_PSP 1
144
-
145
- /* PSP video driver */
146
- #define SDL_VIDEO_DRIVER_PSP 1
147
-
148
- /* PSP render driver */
149
- #define SDL_VIDEO_RENDER_PSP 1
150
-
151
- #define SDL_POWER_PSP 1
152
-
153
- /* Enable the PSP filesystem support (src/filesystem/psp/\*.c) */
154
- #define SDL_FILESYSTEM_PSP 1
155
-
156
- /* PSP doesn't have haptic device (src/haptic/dummy/\*.c) */
157
- #define SDL_HAPTIC_DISABLED 1
158
-
159
- /* PSP doesn't have HIDAPI available */
160
- #define SDL_HIDAPI_DISABLED 1
161
-
162
- /* PSP can't load shared object (src/loadso/dummy/\*.c) */
163
- #define SDL_LOADSO_DISABLED 1
164
-
165
- #endif /* SDL_config_psp_h_ */
@@ -1,154 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2022 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_wiz_h_
23
- #define SDL_config_wiz_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
- #define SDL_BYTEORDER 1234
32
-
33
- #define STDC_HEADERS 1
34
- #define HAVE_ALLOCA_H 1
35
- #define HAVE_CTYPE_H 1
36
- #define HAVE_ICONV_H 1
37
- #define HAVE_INTTYPES_H 1
38
- #define HAVE_LIMITS_H 1
39
- #define HAVE_MALLOC_H 1
40
- #define HAVE_MATH_H 1
41
- #define HAVE_MEMORY_H 1
42
- #define HAVE_SIGNAL_H 1
43
- #define HAVE_STDARG_H 1
44
- #define HAVE_STDINT_H 1
45
- #define HAVE_STDIO_H 1
46
- #define HAVE_STDLIB_H 1
47
- #define HAVE_STRINGS_H 1
48
- #define HAVE_STRING_H 1
49
- #define HAVE_SYS_TYPES_H 1
50
-
51
- #define HAVE_DLOPEN 1
52
- #define HAVE_MALLOC 1
53
- #define HAVE_CALLOC 1
54
- #define HAVE_REALLOC 1
55
- #define HAVE_FREE 1
56
- #define HAVE_ALLOCA 1
57
- #define HAVE_GETENV 1
58
- #define HAVE_SETENV 1
59
- #define HAVE_PUTENV 1
60
- #define HAVE_UNSETENV 1
61
- #define HAVE_QSORT 1
62
- #define HAVE_ABS 1
63
- #define HAVE_BCOPY 1
64
- #define HAVE_MEMSET 1
65
- #define HAVE_MEMCPY 1
66
- #define HAVE_MEMMOVE 1
67
- #define HAVE_STRLEN 1
68
- #define HAVE_STRCHR 1
69
- #define HAVE_STRRCHR 1
70
- #define HAVE_STRSTR 1
71
- #define HAVE_STRTOK_R 1
72
- #define HAVE_STRTOL 1
73
- #define HAVE_STRTOUL 1
74
- #define HAVE_STRTOLL 1
75
- #define HAVE_STRTOULL 1
76
- #define HAVE_ATOI 1
77
- #define HAVE_ATOF 1
78
- #define HAVE_STRCMP 1
79
- #define HAVE_STRNCMP 1
80
- #define HAVE_STRCASECMP 1
81
- #define HAVE_STRNCASECMP 1
82
- #define HAVE_VSSCANF 1
83
- #define HAVE_VSNPRINTF 1
84
- #define HAVE_M_PI 1
85
- #define HAVE_ACOS 1
86
- #define HAVE_ACOSF 1
87
- #define HAVE_ASIN 1
88
- #define HAVE_ASINF 1
89
- #define HAVE_ATAN 1
90
- #define HAVE_ATANF 1
91
- #define HAVE_ATAN2 1
92
- #define HAVE_ATAN2F 1
93
- #define HAVE_CEIL 1
94
- #define HAVE_CEILF 1
95
- #define HAVE_COPYSIGN 1
96
- #define HAVE_COPYSIGNF 1
97
- #define HAVE_COS 1
98
- #define HAVE_COSF 1
99
- #define HAVE_EXP 1
100
- #define HAVE_EXPF 1
101
- #define HAVE_FABS 1
102
- #define HAVE_FABSF 1
103
- #define HAVE_FLOOR 1
104
- #define HAVE_FLOORF 1
105
- #define HAVE_FMOD 1
106
- #define HAVE_FMODF 1
107
- #define HAVE_LOG 1
108
- #define HAVE_LOGF 1
109
- #define HAVE_LOG10 1
110
- #define HAVE_LOG10F 1
111
- #define HAVE_LROUND 1
112
- #define HAVE_LROUNDF 1
113
- #define HAVE_POW 1
114
- #define HAVE_POWF 1
115
- #define HAVE_ROUND 1
116
- #define HAVE_ROUNDF 1
117
- #define HAVE_SCALBN 1
118
- #define HAVE_SCALBNF 1
119
- #define HAVE_SIN 1
120
- #define HAVE_SINF 1
121
- #define HAVE_SQRT 1
122
- #define HAVE_SQRTF 1
123
- #define HAVE_TAN 1
124
- #define HAVE_TANF 1
125
- #define HAVE_TRUNC 1
126
- #define HAVE_TRUNCF 1
127
- #define HAVE_SIGACTION 1
128
- #define HAVE_SETJMP 1
129
- #define HAVE_NANOSLEEP 1
130
- #define HAVE_POW 1
131
-
132
- #define SDL_AUDIO_DRIVER_DUMMY 1
133
- #define SDL_AUDIO_DRIVER_OSS 1
134
-
135
- #define SDL_INPUT_LINUXEV 1
136
- #define SDL_JOYSTICK_LINUX 1
137
- #define SDL_JOYSTICK_VIRTUAL 1
138
- #define SDL_HAPTIC_LINUX 1
139
-
140
- #define SDL_SENSOR_DUMMY 1
141
-
142
- #define SDL_LOADSO_DLOPEN 1
143
-
144
- #define SDL_THREAD_PTHREAD 1
145
- #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
146
-
147
- #define SDL_TIMER_UNIX 1
148
-
149
- #define SDL_VIDEO_DRIVER_DUMMY 1
150
- #define SDL_VIDEO_DRIVER_PANDORA 1
151
- #define SDL_VIDEO_RENDER_OGL_ES 1
152
- #define SDL_VIDEO_OPENGL_ES 1
153
-
154
- #endif /* SDL_config_wiz_h_ */