ruby2d 0.9.0 → 0.9.5

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 (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,10 @@
1
+ # String#ruby2d_colorize
2
+
3
+ # Extend `String` to include some fancy colors
4
+ class String
5
+ def ruby2d_colorize(c); "\e[#{c}m#{self}\e[0m" end
6
+ def bold; ruby2d_colorize('1') end
7
+ def info; ruby2d_colorize('1;34') end
8
+ def warn; ruby2d_colorize('1;33') end
9
+ def error; ruby2d_colorize('1;31') end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # Ruby2D::VERSION
2
2
 
3
3
  module Ruby2D
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.5'
5
5
  end
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.9.0
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Black
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-07 00:00:00.000000000 Z
11
+ date: 2021-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -33,6 +33,7 @@ extensions:
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - assets/README.md
36
+ - assets/Rakefile
36
37
  - assets/app.icns
37
38
  - assets/include/SDL2/SDL.h
38
39
  - assets/include/SDL2/SDL_assert.h
@@ -42,6 +43,17 @@ files:
42
43
  - assets/include/SDL2/SDL_blendmode.h
43
44
  - assets/include/SDL2/SDL_clipboard.h
44
45
  - assets/include/SDL2/SDL_config.h
46
+ - assets/include/SDL2/SDL_config_android.h
47
+ - assets/include/SDL2/SDL_config_iphoneos.h
48
+ - assets/include/SDL2/SDL_config_macosx.h
49
+ - assets/include/SDL2/SDL_config_minimal.h
50
+ - assets/include/SDL2/SDL_config_os2.h
51
+ - assets/include/SDL2/SDL_config_pandora.h
52
+ - assets/include/SDL2/SDL_config_psp.h
53
+ - assets/include/SDL2/SDL_config_windows.h
54
+ - assets/include/SDL2/SDL_config_winrt.h
55
+ - assets/include/SDL2/SDL_config_wiz.h
56
+ - assets/include/SDL2/SDL_copying.h
45
57
  - assets/include/SDL2/SDL_cpuinfo.h
46
58
  - assets/include/SDL2/SDL_egl.h
47
59
  - assets/include/SDL2/SDL_endian.h
@@ -111,7 +123,6 @@ files:
111
123
  - assets/include/SDL2/begin_code.h
112
124
  - assets/include/SDL2/close_code.h
113
125
  - assets/include/glew.h
114
- - assets/include/simple2d.h
115
126
  - assets/ios/Assets.xcassets/AppIcon.appiconset/Contents.json
116
127
  - assets/ios/Assets.xcassets/Contents.json
117
128
  - assets/ios/Base.lproj/LaunchScreen.storyboard
@@ -163,7 +174,6 @@ files:
163
174
  - assets/macos/lib/libmpg123.a
164
175
  - assets/macos/lib/libogg.a
165
176
  - assets/macos/lib/libpng16.a
166
- - assets/macos/lib/libsimple2d.a
167
177
  - assets/macos/lib/libtiff.a
168
178
  - assets/macos/lib/libvorbis.a
169
179
  - assets/macos/lib/libvorbisfile.a
@@ -199,7 +209,6 @@ files:
199
209
  - assets/mingw/lib/libSDL2main.a
200
210
  - assets/mingw/lib/libglew32.a
201
211
  - assets/mingw/lib/libglew32.dll.a
202
- - assets/mingw/lib/libsimple2d.a
203
212
  - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
204
213
  - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json
205
214
  - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json
@@ -259,16 +268,31 @@ files:
259
268
  - assets/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
260
269
  - assets/tvos/main.c
261
270
  - bin/ruby2d
271
+ - ext/ruby2d/common.c
272
+ - ext/ruby2d/controllers.c
262
273
  - ext/ruby2d/extconf.rb
274
+ - ext/ruby2d/gl.c
275
+ - ext/ruby2d/gl2.c
276
+ - ext/ruby2d/gl3.c
277
+ - ext/ruby2d/gles.c
278
+ - ext/ruby2d/image.c
279
+ - ext/ruby2d/input.c
280
+ - ext/ruby2d/music.c
263
281
  - ext/ruby2d/ruby2d.c
282
+ - ext/ruby2d/ruby2d.h
283
+ - ext/ruby2d/shapes.c
284
+ - ext/ruby2d/sound.c
285
+ - ext/ruby2d/sprite.c
286
+ - ext/ruby2d/text.c
287
+ - ext/ruby2d/window.c
264
288
  - lib/ruby2d.rb
265
289
  - lib/ruby2d/circle.rb
266
290
  - lib/ruby2d/cli/build.rb
291
+ - lib/ruby2d/cli/colorize.rb
267
292
  - lib/ruby2d/cli/console.rb
268
293
  - lib/ruby2d/cli/enable_console.rb
269
294
  - lib/ruby2d/cli/launch.rb
270
295
  - lib/ruby2d/color.rb
271
- - lib/ruby2d/colorize.rb
272
296
  - lib/ruby2d/dsl.rb
273
297
  - lib/ruby2d/exceptions.rb
274
298
  - lib/ruby2d/font.rb
@@ -289,7 +313,7 @@ homepage: http://www.ruby2d.com
289
313
  licenses:
290
314
  - MIT
291
315
  metadata: {}
292
- post_install_message:
316
+ post_install_message:
293
317
  rdoc_options: []
294
318
  require_paths:
295
319
  - lib
@@ -304,8 +328,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
328
  - !ruby/object:Gem::Version
305
329
  version: '0'
306
330
  requirements: []
307
- rubygems_version: 3.0.3
308
- signing_key:
331
+ rubygems_version: 3.2.9
332
+ signing_key:
309
333
  specification_version: 4
310
334
  summary: Ruby 2D
311
335
  test_files: []
Binary file
Binary file
@@ -1,10 +0,0 @@
1
- # String#colorize
2
-
3
- # Extend `String` to include some fancy colors
4
- class String
5
- def colorize(c); "\e[#{c}m#{self}\e[0m" end
6
- def bold; colorize('1') end
7
- def info; colorize('1;34') end
8
- def warn; colorize('1;33') end
9
- def error; colorize('1;31') end
10
- end