ruby2d 0.9.0 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/README.md +8 -8
- data/assets/Rakefile +85 -0
- data/assets/include/SDL2/SDL.h +1 -1
- data/assets/include/SDL2/SDL_assert.h +1 -1
- data/assets/include/SDL2/SDL_atomic.h +20 -2
- data/assets/include/SDL2/SDL_audio.h +47 -14
- data/assets/include/SDL2/SDL_bits.h +10 -1
- data/assets/include/SDL2/SDL_blendmode.h +7 -7
- data/assets/include/SDL2/SDL_clipboard.h +1 -1
- data/assets/include/SDL2/SDL_config.h +24 -390
- data/assets/include/SDL2/SDL_config_android.h +178 -0
- data/assets/include/SDL2/SDL_config_iphoneos.h +201 -0
- data/assets/include/SDL2/SDL_config_macosx.h +240 -0
- data/assets/include/SDL2/SDL_config_minimal.h +85 -0
- data/assets/include/SDL2/SDL_config_os2.h +170 -0
- data/assets/include/SDL2/SDL_config_pandora.h +133 -0
- data/assets/include/SDL2/SDL_config_psp.h +164 -0
- data/assets/include/SDL2/SDL_config_windows.h +257 -0
- data/assets/include/SDL2/SDL_config_winrt.h +240 -0
- data/assets/include/SDL2/SDL_config_wiz.h +146 -0
- data/assets/include/SDL2/SDL_copying.h +20 -0
- data/assets/include/SDL2/SDL_cpuinfo.h +90 -8
- data/assets/include/SDL2/SDL_egl.h +1 -1
- data/assets/include/SDL2/SDL_endian.h +1 -1
- data/assets/include/SDL2/SDL_error.h +1 -1
- data/assets/include/SDL2/SDL_events.h +4 -1
- data/assets/include/SDL2/SDL_filesystem.h +1 -1
- data/assets/include/SDL2/SDL_gamecontroller.h +1 -1
- data/assets/include/SDL2/SDL_gesture.h +1 -1
- data/assets/include/SDL2/SDL_haptic.h +1 -1
- data/assets/include/SDL2/SDL_hints.h +145 -14
- data/assets/include/SDL2/SDL_image.h +2 -2
- data/assets/include/SDL2/SDL_joystick.h +1 -1
- data/assets/include/SDL2/SDL_keyboard.h +1 -1
- data/assets/include/SDL2/SDL_keycode.h +1 -1
- data/assets/include/SDL2/SDL_loadso.h +1 -1
- data/assets/include/SDL2/SDL_log.h +1 -1
- data/assets/include/SDL2/SDL_main.h +28 -16
- data/assets/include/SDL2/SDL_messagebox.h +1 -1
- data/assets/include/SDL2/SDL_mouse.h +1 -1
- data/assets/include/SDL2/SDL_mutex.h +1 -1
- data/assets/include/SDL2/SDL_name.h +1 -1
- data/assets/include/SDL2/SDL_opengl.h +1 -1
- data/assets/include/SDL2/SDL_opengles.h +1 -1
- data/assets/include/SDL2/SDL_opengles2.h +1 -1
- data/assets/include/SDL2/SDL_pixels.h +3 -3
- data/assets/include/SDL2/SDL_platform.h +1 -1
- data/assets/include/SDL2/SDL_power.h +1 -1
- data/assets/include/SDL2/SDL_quit.h +1 -1
- data/assets/include/SDL2/SDL_rect.h +29 -3
- data/assets/include/SDL2/SDL_render.h +168 -1
- data/assets/include/SDL2/SDL_revision.h +2 -2
- data/assets/include/SDL2/SDL_rwops.h +50 -13
- data/assets/include/SDL2/SDL_scancode.h +2 -2
- data/assets/include/SDL2/SDL_sensor.h +4 -4
- data/assets/include/SDL2/SDL_shape.h +1 -1
- data/assets/include/SDL2/SDL_stdinc.h +1 -1
- data/assets/include/SDL2/SDL_surface.h +2 -1
- data/assets/include/SDL2/SDL_system.h +1 -1
- data/assets/include/SDL2/SDL_syswm.h +11 -8
- data/assets/include/SDL2/SDL_test.h +1 -1
- data/assets/include/SDL2/SDL_test_assert.h +1 -1
- data/assets/include/SDL2/SDL_test_common.h +22 -5
- data/assets/include/SDL2/SDL_test_compare.h +1 -1
- data/assets/include/SDL2/SDL_test_crc32.h +1 -1
- data/assets/include/SDL2/SDL_test_font.h +1 -1
- data/assets/include/SDL2/SDL_test_fuzzer.h +1 -1
- data/assets/include/SDL2/SDL_test_harness.h +1 -1
- data/assets/include/SDL2/SDL_test_images.h +1 -1
- data/assets/include/SDL2/SDL_test_log.h +1 -1
- data/assets/include/SDL2/SDL_test_md5.h +1 -1
- data/assets/include/SDL2/SDL_test_memory.h +3 -3
- data/assets/include/SDL2/SDL_test_random.h +1 -1
- data/assets/include/SDL2/SDL_thread.h +1 -1
- data/assets/include/SDL2/SDL_timer.h +1 -1
- data/assets/include/SDL2/SDL_touch.h +17 -1
- data/assets/include/SDL2/SDL_types.h +1 -1
- data/assets/include/SDL2/SDL_version.h +2 -2
- data/assets/include/SDL2/SDL_video.h +1 -1
- data/assets/include/SDL2/SDL_vulkan.h +3 -3
- data/assets/include/SDL2/begin_code.h +4 -1
- data/assets/include/SDL2/close_code.h +4 -1
- data/assets/macos/lib/libFLAC.a +0 -0
- data/assets/macos/lib/libSDL2.a +0 -0
- data/assets/macos/lib/libSDL2_image.a +0 -0
- data/assets/macos/lib/libSDL2_mixer.a +0 -0
- data/assets/macos/lib/libSDL2_ttf.a +0 -0
- data/assets/macos/lib/libfreetype.a +0 -0
- data/assets/macos/lib/libjpeg.a +0 -0
- data/assets/macos/lib/libmpg123.a +0 -0
- data/assets/macos/lib/libogg.a +0 -0
- data/assets/macos/lib/libpng16.a +0 -0
- data/assets/macos/lib/libtiff.a +0 -0
- data/assets/macos/lib/libwebp.a +0 -0
- data/assets/mingw/bin/SDL2.dll +0 -0
- data/assets/mingw/bin/SDL2_image.dll +0 -0
- data/assets/mingw/bin/libpng16-16.dll +0 -0
- data/assets/mingw/bin/libtiff-5.dll +0 -0
- data/assets/mingw/bin/libwebp-7.dll +0 -0
- data/assets/mingw/lib/libSDL2.a +0 -0
- data/assets/mingw/lib/libSDL2.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_image.a +0 -0
- data/assets/mingw/lib/libSDL2_image.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_test.a +0 -0
- data/assets/mingw/lib/libSDL2main.a +0 -0
- data/bin/ruby2d +2 -1
- data/ext/ruby2d/common.c +185 -0
- data/ext/ruby2d/controllers.c +110 -0
- data/ext/ruby2d/extconf.rb +97 -46
- data/ext/ruby2d/gl.c +430 -0
- data/ext/ruby2d/gl2.c +146 -0
- data/ext/ruby2d/gl3.c +348 -0
- data/ext/ruby2d/gles.c +308 -0
- data/ext/ruby2d/image.c +138 -0
- data/ext/ruby2d/input.c +48 -0
- data/ext/ruby2d/music.c +114 -0
- data/ext/ruby2d/ruby2d.c +125 -126
- data/{assets/include/simple2d.h → ext/ruby2d/ruby2d.h} +223 -201
- data/ext/ruby2d/shapes.c +154 -0
- data/ext/ruby2d/sound.c +93 -0
- data/ext/ruby2d/sprite.c +147 -0
- data/ext/ruby2d/text.c +129 -0
- data/ext/ruby2d/window.c +414 -0
- data/lib/ruby2d.rb +1 -1
- data/lib/ruby2d/cli/build.rb +3 -8
- data/lib/ruby2d/cli/colorize.rb +10 -0
- data/lib/ruby2d/version.rb +1 -1
- metadata +34 -10
- data/assets/macos/lib/libsimple2d.a +0 -0
- data/assets/mingw/lib/libsimple2d.a +0 -0
- 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
|
data/lib/ruby2d/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|
data/lib/ruby2d/colorize.rb
DELETED
@@ -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
|