ruby2d 0.11.3 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/assets/{windows/glew → include/GL}/glew.h +26427 -23686
  3. data/assets/include/GLES2/gl2.h +656 -0
  4. data/assets/include/GLES2/gl2ext.h +3949 -0
  5. data/assets/include/GLES2/gl2ext_angle.h +701 -0
  6. data/assets/include/GLES2/gl2platform.h +27 -0
  7. data/assets/include/GLES3/gl3.h +1192 -0
  8. data/assets/include/GLES3/gl31.h +1507 -0
  9. data/assets/include/GLES3/gl32.h +1808 -0
  10. data/assets/include/GLES3/gl3platform.h +27 -0
  11. data/assets/include/KHR/khrplatform.h +290 -0
  12. data/assets/include/SDL2/SDL.h +1 -0
  13. data/assets/include/SDL2/SDL_assert.h +4 -2
  14. data/assets/include/SDL2/SDL_atomic.h +20 -0
  15. data/assets/include/SDL2/SDL_audio.h +40 -4
  16. data/assets/include/SDL2/SDL_blendmode.h +4 -6
  17. data/assets/include/SDL2/SDL_clipboard.h +47 -0
  18. data/assets/include/SDL2/SDL_config.h +6 -2
  19. data/assets/include/SDL2/SDL_config_android.h +2 -0
  20. data/assets/include/SDL2/SDL_config_emscripten.h +2 -0
  21. data/assets/include/SDL2/SDL_config_iphoneos.h +3 -1
  22. data/assets/include/SDL2/SDL_config_macosx.h +3 -6
  23. data/assets/include/SDL2/SDL_config_minimal.h +18 -11
  24. data/assets/include/SDL2/SDL_config_ngage.h +89 -0
  25. data/assets/include/SDL2/SDL_config_os2.h +5 -3
  26. data/assets/include/SDL2/SDL_config_pandora.h +1 -0
  27. data/assets/include/SDL2/SDL_config_windows.h +71 -45
  28. data/assets/include/SDL2/SDL_config_wingdk.h +253 -0
  29. data/assets/include/SDL2/SDL_config_winrt.h +11 -49
  30. data/assets/include/SDL2/SDL_config_xbox.h +235 -0
  31. data/assets/include/SDL2/SDL_cpuinfo.h +39 -4
  32. data/assets/include/SDL2/SDL_egl.h +59 -9
  33. data/assets/include/SDL2/SDL_endian.h +34 -3
  34. data/assets/include/SDL2/SDL_events.h +32 -1
  35. data/assets/include/SDL2/SDL_filesystem.h +5 -1
  36. data/assets/include/SDL2/SDL_gamecontroller.h +78 -5
  37. data/assets/include/SDL2/SDL_guid.h +100 -0
  38. data/assets/include/SDL2/SDL_hints.h +645 -43
  39. data/assets/include/SDL2/SDL_image.h +2045 -33
  40. data/assets/include/SDL2/SDL_joystick.h +127 -7
  41. data/assets/include/SDL2/SDL_keyboard.h +38 -1
  42. data/assets/include/SDL2/SDL_keycode.h +6 -1
  43. data/assets/include/SDL2/SDL_log.h +2 -2
  44. data/assets/include/SDL2/SDL_main.h +42 -2
  45. data/assets/include/SDL2/SDL_metal.h +2 -1
  46. data/assets/include/SDL2/SDL_mixer.h +2529 -396
  47. data/assets/include/SDL2/SDL_mouse.h +12 -1
  48. data/assets/include/SDL2/SDL_opengl.h +0 -51
  49. data/assets/include/SDL2/SDL_opengl_glext.h +2260 -231
  50. data/assets/include/SDL2/SDL_opengles2_gl2.h +374 -339
  51. data/assets/include/SDL2/SDL_opengles2_gl2ext.h +3479 -1496
  52. data/assets/include/SDL2/SDL_opengles2_gl2platform.h +6 -9
  53. data/assets/include/SDL2/SDL_opengles2_khrplatform.h +43 -14
  54. data/assets/include/SDL2/SDL_platform.h +32 -6
  55. data/assets/include/SDL2/SDL_rect.h +154 -2
  56. data/assets/include/SDL2/SDL_render.h +46 -17
  57. data/assets/include/SDL2/SDL_revision.h +4 -0
  58. data/assets/include/SDL2/SDL_rwops.h +1 -15
  59. data/assets/include/SDL2/SDL_scancode.h +46 -21
  60. data/assets/include/SDL2/SDL_sensor.h +24 -3
  61. data/assets/include/SDL2/SDL_stdinc.h +119 -8
  62. data/assets/include/SDL2/SDL_surface.h +3 -1
  63. data/assets/include/SDL2/SDL_system.h +66 -6
  64. data/assets/include/SDL2/SDL_syswm.h +2 -0
  65. data/assets/include/SDL2/SDL_test_common.h +1 -0
  66. data/assets/include/SDL2/SDL_test_font.h +90 -3
  67. data/assets/include/SDL2/SDL_thread.h +3 -3
  68. data/assets/include/SDL2/SDL_touch.h +8 -0
  69. data/assets/include/SDL2/SDL_ttf.h +2084 -155
  70. data/assets/include/SDL2/SDL_version.h +19 -3
  71. data/assets/include/SDL2/SDL_video.h +71 -9
  72. data/assets/include/SDL2/begin_code.h +4 -4
  73. data/assets/include/mrbconf.h +15 -17
  74. data/assets/include/mruby/array.h +8 -21
  75. data/assets/include/mruby/boxing_nan.h +115 -86
  76. data/assets/include/mruby/boxing_word.h +104 -78
  77. data/assets/include/mruby/common.h +6 -0
  78. data/assets/include/mruby/compile.h +3 -4
  79. data/assets/include/mruby/debug.h +4 -2
  80. data/assets/include/mruby/dump.h +5 -2
  81. data/assets/include/mruby/error.h +12 -2
  82. data/assets/include/mruby/gc.h +2 -0
  83. data/assets/include/mruby/hash.h +1 -3
  84. data/assets/include/mruby/irep.h +4 -4
  85. data/assets/include/mruby/numeric.h +21 -13
  86. data/assets/include/mruby/opcode.h +30 -0
  87. data/assets/include/mruby/ops.h +99 -101
  88. data/assets/include/mruby/presym/scanning.h +15 -9
  89. data/assets/include/mruby/proc.h +4 -2
  90. data/assets/include/mruby/string.h +3 -24
  91. data/assets/include/mruby/value.h +80 -40
  92. data/assets/include/mruby/variable.h +0 -15
  93. data/assets/include/mruby/version.h +5 -5
  94. data/assets/include/mruby.h +86 -16
  95. data/assets/macos/universal/bin/mrbc +0 -0
  96. data/assets/macos/universal/lib/libFLAC.a +0 -0
  97. data/assets/macos/universal/lib/libSDL2.a +0 -0
  98. data/assets/macos/universal/lib/libSDL2_image.a +0 -0
  99. data/assets/macos/universal/lib/libSDL2_mixer.a +0 -0
  100. data/assets/macos/universal/lib/libSDL2_ttf.a +0 -0
  101. data/assets/macos/universal/lib/libavif.a +0 -0
  102. data/assets/macos/universal/lib/libbrotlicommon-static.a +0 -0
  103. data/assets/macos/universal/lib/libbrotlidec-static.a +0 -0
  104. data/assets/macos/universal/lib/libfreetype.a +0 -0
  105. data/assets/macos/universal/lib/libgraphite2.a +0 -0
  106. data/assets/macos/universal/lib/libharfbuzz.a +0 -0
  107. data/assets/macos/universal/lib/libhwy.a +0 -0
  108. data/assets/macos/universal/lib/libjpeg.a +0 -0
  109. data/assets/macos/universal/lib/libjxl.a +0 -0
  110. data/assets/macos/universal/lib/libmodplug.a +0 -0
  111. data/assets/macos/universal/lib/libmpg123.a +0 -0
  112. data/assets/macos/universal/lib/libmruby.a +0 -0
  113. data/assets/macos/universal/lib/libogg.a +0 -0
  114. data/assets/macos/universal/lib/libpng.a +0 -0
  115. data/assets/macos/universal/lib/libtiff.a +0 -0
  116. data/assets/macos/universal/lib/libvorbis.a +0 -0
  117. data/assets/macos/universal/lib/libvorbisfile.a +0 -0
  118. data/assets/macos/universal/lib/libwebp.a +0 -0
  119. data/assets/macos/universal/lib/libzstd.a +0 -0
  120. data/assets/wasm/template.html +2 -1
  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/libdeflate.a +0 -0
  131. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a +0 -0
  132. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a +0 -0
  133. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a +0 -0
  134. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libhwy.a +0 -0
  135. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a +0 -0
  136. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjxl.a +0 -0
  137. data/assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a +0 -0
  138. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
  139. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a +0 -0
  140. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
  141. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libpng.a +0 -0
  142. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
  143. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a +0 -0
  144. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
  145. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a +0 -0
  146. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a +0 -0
  147. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
  148. data/assets/windows/mingw-w64-x86_64/bin/mrbc.exe +0 -0
  149. data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
  150. data/assets/windows/mingw-w64-x86_64/lib/libLerc.a +0 -0
  151. data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
  152. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a +0 -0
  153. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
  154. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a +0 -0
  155. data/assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a +0 -0
  156. data/assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a +0 -0
  157. data/assets/windows/mingw-w64-x86_64/lib/libdeflate.a +0 -0
  158. data/assets/windows/mingw-w64-x86_64/lib/libfreetype.a +0 -0
  159. data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
  160. data/assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a +0 -0
  161. data/assets/windows/mingw-w64-x86_64/lib/libhwy.a +0 -0
  162. data/assets/windows/mingw-w64-x86_64/lib/libjpeg.a +0 -0
  163. data/assets/windows/mingw-w64-x86_64/lib/libjxl.a +0 -0
  164. data/assets/windows/mingw-w64-x86_64/lib/liblzma.a +0 -0
  165. data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
  166. data/assets/windows/mingw-w64-x86_64/lib/libmruby.a +0 -0
  167. data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
  168. data/assets/windows/mingw-w64-x86_64/lib/libpng.a +0 -0
  169. data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
  170. data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -0
  171. data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
  172. data/assets/windows/mingw-w64-x86_64/lib/libtiff.a +0 -0
  173. data/assets/windows/mingw-w64-x86_64/lib/libwebp.a +0 -0
  174. data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
  175. data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
  176. data/ext/ruby2d/canvas.c +540 -0
  177. data/ext/ruby2d/extconf.rb +33 -20
  178. data/ext/ruby2d/gl.c +3 -3
  179. data/ext/ruby2d/image.c +7 -7
  180. data/ext/ruby2d/ruby2d.c +741 -24
  181. data/ext/ruby2d/ruby2d.h +66 -3
  182. data/ext/ruby2d/sound.c +16 -2
  183. data/lib/ruby2d/canvas.rb +315 -0
  184. data/lib/ruby2d/circle.rb +30 -15
  185. data/lib/ruby2d/cli/build.rb +5 -3
  186. data/lib/ruby2d/cli/enable_console.rb +3 -1
  187. data/lib/ruby2d/color.rb +133 -77
  188. data/lib/ruby2d/core.rb +32 -0
  189. data/lib/ruby2d/dsl.rb +38 -32
  190. data/lib/ruby2d/exceptions.rb +2 -1
  191. data/lib/ruby2d/font.rb +97 -62
  192. data/lib/ruby2d/image.rb +48 -27
  193. data/lib/ruby2d/line.rb +84 -45
  194. data/lib/ruby2d/music.rb +33 -23
  195. data/lib/ruby2d/pixel.rb +10 -9
  196. data/lib/ruby2d/pixmap.rb +39 -0
  197. data/lib/ruby2d/pixmap_atlas.rb +56 -0
  198. data/lib/ruby2d/quad.rb +98 -49
  199. data/lib/ruby2d/rectangle.rb +35 -36
  200. data/lib/ruby2d/renderable.rb +7 -6
  201. data/lib/ruby2d/sound.rb +23 -17
  202. data/lib/ruby2d/sprite.rb +181 -140
  203. data/lib/ruby2d/square.rb +21 -20
  204. data/lib/ruby2d/text.rb +47 -19
  205. data/lib/ruby2d/texture.rb +13 -3
  206. data/lib/ruby2d/tileset.rb +97 -44
  207. data/lib/ruby2d/triangle.rb +91 -42
  208. data/lib/ruby2d/version.rb +3 -1
  209. data/lib/ruby2d/vertices.rb +81 -45
  210. data/lib/ruby2d/window.rb +508 -371
  211. data/lib/ruby2d.rb +11 -29
  212. metadata +66 -16
  213. data/assets/include/SDL2/SDL_config_psp.h +0 -165
  214. data/assets/include/SDL2/SDL_config_wiz.h +0 -154
  215. data/assets/include/glew.h +0 -23686
  216. data/assets/macos/universal/lib/libpng16.a +0 -0
  217. data/assets/windows/glew/README.md +0 -10
  218. data/assets/windows/glew/libglew32.a +0 -0
  219. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libpng16.a +0 -0
  220. data/assets/windows/mingw-w64-x86_64/lib/libpng16.a +0 -0
  221. 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,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.12.1
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-04-05 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rspec
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '3.10'
33
+ version: '3.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.42'
20
48
  type: :development
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: '3.10'
54
+ version: '1.42'
27
55
  description: Make cross-platform 2D applications in Ruby
28
56
  email: tom@blacktm.com
29
57
  executables:
@@ -33,6 +61,16 @@ extensions:
33
61
  extra_rdoc_files: []
34
62
  files:
35
63
  - assets/app.icns
64
+ - assets/include/GL/glew.h
65
+ - assets/include/GLES2/gl2.h
66
+ - assets/include/GLES2/gl2ext.h
67
+ - assets/include/GLES2/gl2ext_angle.h
68
+ - assets/include/GLES2/gl2platform.h
69
+ - assets/include/GLES3/gl3.h
70
+ - assets/include/GLES3/gl31.h
71
+ - assets/include/GLES3/gl32.h
72
+ - assets/include/GLES3/gl3platform.h
73
+ - assets/include/KHR/khrplatform.h
36
74
  - assets/include/SDL2/SDL.h
37
75
  - assets/include/SDL2/SDL_assert.h
38
76
  - assets/include/SDL2/SDL_atomic.h
@@ -46,12 +84,13 @@ files:
46
84
  - assets/include/SDL2/SDL_config_iphoneos.h
47
85
  - assets/include/SDL2/SDL_config_macosx.h
48
86
  - assets/include/SDL2/SDL_config_minimal.h
87
+ - assets/include/SDL2/SDL_config_ngage.h
49
88
  - assets/include/SDL2/SDL_config_os2.h
50
89
  - assets/include/SDL2/SDL_config_pandora.h
51
- - assets/include/SDL2/SDL_config_psp.h
52
90
  - assets/include/SDL2/SDL_config_windows.h
91
+ - assets/include/SDL2/SDL_config_wingdk.h
53
92
  - assets/include/SDL2/SDL_config_winrt.h
54
- - assets/include/SDL2/SDL_config_wiz.h
93
+ - assets/include/SDL2/SDL_config_xbox.h
55
94
  - assets/include/SDL2/SDL_copying.h
56
95
  - assets/include/SDL2/SDL_cpuinfo.h
57
96
  - assets/include/SDL2/SDL_egl.h
@@ -61,6 +100,7 @@ files:
61
100
  - assets/include/SDL2/SDL_filesystem.h
62
101
  - assets/include/SDL2/SDL_gamecontroller.h
63
102
  - assets/include/SDL2/SDL_gesture.h
103
+ - assets/include/SDL2/SDL_guid.h
64
104
  - assets/include/SDL2/SDL_haptic.h
65
105
  - assets/include/SDL2/SDL_hidapi.h
66
106
  - assets/include/SDL2/SDL_hints.h
@@ -125,7 +165,6 @@ files:
125
165
  - assets/include/SDL2/SDL_vulkan.h
126
166
  - assets/include/SDL2/begin_code.h
127
167
  - assets/include/SDL2/close_code.h
128
- - assets/include/glew.h
129
168
  - assets/include/mrbconf.h
130
169
  - assets/include/mruby.h
131
170
  - assets/include/mruby/array.h
@@ -167,19 +206,25 @@ files:
167
206
  - assets/macos/universal/lib/libSDL2_image.a
168
207
  - assets/macos/universal/lib/libSDL2_mixer.a
169
208
  - assets/macos/universal/lib/libSDL2_ttf.a
209
+ - assets/macos/universal/lib/libavif.a
210
+ - assets/macos/universal/lib/libbrotlicommon-static.a
211
+ - assets/macos/universal/lib/libbrotlidec-static.a
170
212
  - assets/macos/universal/lib/libfreetype.a
171
213
  - assets/macos/universal/lib/libgraphite2.a
172
214
  - assets/macos/universal/lib/libharfbuzz.a
215
+ - assets/macos/universal/lib/libhwy.a
173
216
  - assets/macos/universal/lib/libjpeg.a
217
+ - assets/macos/universal/lib/libjxl.a
174
218
  - assets/macos/universal/lib/libmodplug.a
175
219
  - assets/macos/universal/lib/libmpg123.a
176
220
  - assets/macos/universal/lib/libmruby.a
177
221
  - assets/macos/universal/lib/libogg.a
178
- - assets/macos/universal/lib/libpng16.a
222
+ - assets/macos/universal/lib/libpng.a
179
223
  - assets/macos/universal/lib/libtiff.a
180
224
  - assets/macos/universal/lib/libvorbis.a
181
225
  - assets/macos/universal/lib/libvorbisfile.a
182
226
  - assets/macos/universal/lib/libwebp.a
227
+ - assets/macos/universal/lib/libzstd.a
183
228
  - assets/test_media/README.md
184
229
  - assets/test_media/bitstream_vera/COPYRIGHT.txt
185
230
  - assets/test_media/bitstream_vera/vera.ttf
@@ -212,9 +257,6 @@ files:
212
257
  - assets/test_media/texture_atlas.png
213
258
  - assets/wasm/libmruby.a
214
259
  - assets/wasm/template.html
215
- - assets/windows/glew/README.md
216
- - assets/windows/glew/glew.h
217
- - assets/windows/glew/libglew32.a
218
260
  - assets/windows/mingw-w64-ucrt-x86_64/bin/mrbc.exe
219
261
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a
220
262
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a
@@ -230,8 +272,10 @@ files:
230
272
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a
231
273
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a
232
274
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a
275
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libhwy.a
233
276
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a
234
277
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a
278
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libjxl.a
235
279
  - assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a
236
280
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a
237
281
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a
@@ -239,7 +283,7 @@ files:
239
283
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a
240
284
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a
241
285
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a
242
- - assets/windows/mingw-w64-ucrt-x86_64/lib/libpng16.a
286
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libpng.a
243
287
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a
244
288
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a
245
289
  - assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a
@@ -264,8 +308,10 @@ files:
264
308
  - assets/windows/mingw-w64-x86_64/lib/libglew32.a
265
309
  - assets/windows/mingw-w64-x86_64/lib/libgraphite2.a
266
310
  - assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a
311
+ - assets/windows/mingw-w64-x86_64/lib/libhwy.a
267
312
  - assets/windows/mingw-w64-x86_64/lib/libjbig.a
268
313
  - assets/windows/mingw-w64-x86_64/lib/libjpeg.a
314
+ - assets/windows/mingw-w64-x86_64/lib/libjxl.a
269
315
  - assets/windows/mingw-w64-x86_64/lib/liblzma.a
270
316
  - assets/windows/mingw-w64-x86_64/lib/libmodplug.a
271
317
  - assets/windows/mingw-w64-x86_64/lib/libmpg123.a
@@ -273,7 +319,7 @@ files:
273
319
  - assets/windows/mingw-w64-x86_64/lib/libogg.a
274
320
  - assets/windows/mingw-w64-x86_64/lib/libopus.a
275
321
  - assets/windows/mingw-w64-x86_64/lib/libopusfile.a
276
- - assets/windows/mingw-w64-x86_64/lib/libpng16.a
322
+ - assets/windows/mingw-w64-x86_64/lib/libpng.a
277
323
  - assets/windows/mingw-w64-x86_64/lib/libsndfile.a
278
324
  - assets/windows/mingw-w64-x86_64/lib/libssp.a
279
325
  - assets/windows/mingw-w64-x86_64/lib/libstdc++.a
@@ -398,6 +444,7 @@ files:
398
444
  - assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
399
445
  - assets/xcode/tvos/main.c
400
446
  - bin/ruby2d
447
+ - ext/ruby2d/canvas.c
401
448
  - ext/ruby2d/common.c
402
449
  - ext/ruby2d/controllers.c
403
450
  - ext/ruby2d/extconf.rb
@@ -416,6 +463,7 @@ files:
416
463
  - ext/ruby2d/text.c
417
464
  - ext/ruby2d/window.c
418
465
  - lib/ruby2d.rb
466
+ - lib/ruby2d/canvas.rb
419
467
  - lib/ruby2d/circle.rb
420
468
  - lib/ruby2d/cli/build.rb
421
469
  - lib/ruby2d/cli/colorize.rb
@@ -424,14 +472,16 @@ files:
424
472
  - lib/ruby2d/cli/launch.rb
425
473
  - lib/ruby2d/cli/platform.rb
426
474
  - lib/ruby2d/color.rb
475
+ - lib/ruby2d/core.rb
427
476
  - lib/ruby2d/dsl.rb
428
- - lib/ruby2d/entity.rb
429
477
  - lib/ruby2d/exceptions.rb
430
478
  - lib/ruby2d/font.rb
431
479
  - lib/ruby2d/image.rb
432
480
  - lib/ruby2d/line.rb
433
481
  - lib/ruby2d/music.rb
434
482
  - lib/ruby2d/pixel.rb
483
+ - lib/ruby2d/pixmap.rb
484
+ - lib/ruby2d/pixmap_atlas.rb
435
485
  - lib/ruby2d/quad.rb
436
486
  - lib/ruby2d/rectangle.rb
437
487
  - lib/ruby2d/renderable.rb
@@ -457,14 +507,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
457
507
  requirements:
458
508
  - - ">="
459
509
  - !ruby/object:Gem::Version
460
- version: 2.0.0
510
+ version: 2.7.0
461
511
  required_rubygems_version: !ruby/object:Gem::Requirement
462
512
  requirements:
463
513
  - - ">="
464
514
  - !ruby/object:Gem::Version
465
515
  version: '0'
466
516
  requirements: []
467
- rubygems_version: 3.3.10
517
+ rubygems_version: 3.4.2
468
518
  signing_key:
469
519
  specification_version: 4
470
520
  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_ */