SDLRuby 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +12 -0
- data/lib/SDLRuby/audio.rb +65 -0
- data/lib/SDLRuby/cursor.rb +46 -0
- data/lib/SDLRuby/display.rb +79 -0
- data/lib/SDLRuby/event/accessor.rb +127 -0
- data/lib/SDLRuby/event/type.rb +75 -0
- data/lib/SDLRuby/event.rb +80 -0
- data/lib/SDLRuby/font.rb +227 -0
- data/lib/SDLRuby/hint.rb +36 -0
- data/lib/SDLRuby/image/image.rb +23 -0
- data/lib/SDLRuby/image/include/SDL_image.h.rb +61 -0
- data/lib/SDLRuby/image.rb +69 -0
- data/lib/SDLRuby/keyboard.rb +58 -0
- data/lib/SDLRuby/mixer/channel.rb +43 -0
- data/lib/SDLRuby/mixer/chunk.rb +49 -0
- data/lib/SDLRuby/mixer/controller.rb +44 -0
- data/lib/SDLRuby/mixer/include/SDL_mixer.h.rb +95 -0
- data/lib/SDLRuby/mixer/sdl_mixer.rb +60 -0
- data/lib/SDLRuby/mixer.rb +87 -0
- data/lib/SDLRuby/mouse.rb +52 -0
- data/lib/SDLRuby/music.rb +158 -0
- data/lib/SDLRuby/palette.rb +49 -0
- data/lib/SDLRuby/pixel_formatter.rb +67 -0
- data/lib/SDLRuby/rect.rb +11 -0
- data/lib/SDLRuby/renderer/accessor.rb +70 -0
- data/lib/SDLRuby/renderer/drawer.rb +107 -0
- data/lib/SDLRuby/renderer/renderer_info.rb +27 -0
- data/lib/SDLRuby/renderer.rb +101 -0
- data/lib/SDLRuby/rw_ops/rw_object.rb +128 -0
- data/lib/SDLRuby/rw_ops.rb +216 -0
- data/lib/SDLRuby/sdl/include/SDL.h.rb +33 -0
- data/lib/SDLRuby/sdl/include/SDL_audio.h.rb +49 -0
- data/lib/SDLRuby/sdl/include/SDL_blendmode.h.rb +6 -0
- data/lib/SDLRuby/sdl/include/SDL_clipboard.h.rb +10 -0
- data/lib/SDLRuby/sdl/include/SDL_config.h.rb +13 -0
- data/lib/SDLRuby/sdl/include/SDL_cpuinfo.h.rb +27 -0
- data/lib/SDLRuby/sdl/include/SDL_endian.h.rb +3 -0
- data/lib/SDLRuby/sdl/include/SDL_error.h.rb +9 -0
- data/lib/SDLRuby/sdl/include/SDL_events.h.rb +32 -0
- data/lib/SDLRuby/sdl/include/SDL_filesystem.h.rb +6 -0
- data/lib/SDLRuby/sdl/include/SDL_gamecontroller.h.rb +66 -0
- data/lib/SDLRuby/sdl/include/SDL_gesture.h.rb +12 -0
- data/lib/SDLRuby/sdl/include/SDL_guid.h.rb +7 -0
- data/lib/SDLRuby/sdl/include/SDL_hints.h.rb +14 -0
- data/lib/SDLRuby/sdl/include/SDL_joystick.h.rb +69 -0
- data/lib/SDLRuby/sdl/include/SDL_keyboard.h.rb +26 -0
- data/lib/SDLRuby/sdl/include/SDL_keycode.h.rb +7 -0
- data/lib/SDLRuby/sdl/include/SDL_locale.h.rb +6 -0
- data/lib/SDLRuby/sdl/include/SDL_main.h.rb +3 -0
- data/lib/SDLRuby/sdl/include/SDL_messagebox.h.rb +10 -0
- data/lib/SDLRuby/sdl/include/SDL_misc.h.rb +5 -0
- data/lib/SDLRuby/sdl/include/SDL_mouse.h.rb +26 -0
- data/lib/SDLRuby/sdl/include/SDL_pixels.h.rb +25 -0
- data/lib/SDLRuby/sdl/include/SDL_platform.h.rb +3 -0
- data/lib/SDLRuby/sdl/include/SDL_power.h.rb +6 -0
- data/lib/SDLRuby/sdl/include/SDL_rect.h.rb +17 -0
- data/lib/SDLRuby/sdl/include/SDL_render.h.rb +94 -0
- data/lib/SDLRuby/sdl/include/SDL_revision.h.rb +2 -0
- data/lib/SDLRuby/sdl/include/SDL_rwops.h.rb +34 -0
- data/lib/SDLRuby/sdl/include/SDL_scancode.h.rb +5 -0
- data/lib/SDLRuby/sdl/include/SDL_sensor.h.rb +25 -0
- data/lib/SDLRuby/sdl/include/SDL_shape.h.rb +13 -0
- data/lib/SDLRuby/sdl/include/SDL_stdinc.h.rb +24 -0
- data/lib/SDLRuby/sdl/include/SDL_surface.h.rb +37 -0
- data/lib/SDLRuby/sdl/include/SDL_system.h.rb +6 -0
- data/lib/SDLRuby/sdl/include/SDL_syswm.h.rb +16 -0
- data/lib/SDLRuby/sdl/include/SDL_timer.h.rb +13 -0
- data/lib/SDLRuby/sdl/include/SDL_touch.h.rb +15 -0
- data/lib/SDLRuby/sdl/include/SDL_types.h.rb +3 -0
- data/lib/SDLRuby/sdl/include/SDL_version.h.rb +6 -0
- data/lib/SDLRuby/sdl/include/SDL_video.h.rb +117 -0
- data/lib/SDLRuby/sdl/sdl.rb +55 -0
- data/lib/SDLRuby/sdl/sdl_audio.rb +75 -0
- data/lib/SDLRuby/sdl/sdl_blendmode.rb +10 -0
- data/lib/SDLRuby/sdl/sdl_error.rb +5 -0
- data/lib/SDLRuby/sdl/sdl_events.rb +470 -0
- data/lib/SDLRuby/sdl/sdl_hints.rb +9 -0
- data/lib/SDLRuby/sdl/sdl_keyboard.rb +12 -0
- data/lib/SDLRuby/sdl/sdl_locale.rb +8 -0
- data/lib/SDLRuby/sdl/sdl_message_box.rb +7 -0
- data/lib/SDLRuby/sdl/sdl_mouse.rb +32 -0
- data/lib/SDLRuby/sdl/sdl_palette.rb +12 -0
- data/lib/SDLRuby/sdl/sdl_pixels.rb +138 -0
- data/lib/SDLRuby/sdl/sdl_rect.rb +11 -0
- data/lib/SDLRuby/sdl/sdl_render.rb +35 -0
- data/lib/SDLRuby/sdl/sdl_rw_ops.rb +29 -0
- data/lib/SDLRuby/sdl/sdl_scancode.rb +255 -0
- data/lib/SDLRuby/sdl/sdl_surface.rb +27 -0
- data/lib/SDLRuby/sdl/sdl_version.rb +5 -0
- data/lib/SDLRuby/sdl/sdl_video.rb +104 -0
- data/lib/SDLRuby/sdl.rb +192 -0
- data/lib/SDLRuby/sdl_error.rb +8 -0
- data/lib/SDLRuby/surface/pixel_format.rb +51 -0
- data/lib/SDLRuby/surface/surface_renderer.rb +26 -0
- data/lib/SDLRuby/surface.rb +179 -0
- data/lib/SDLRuby/text_input.rb +38 -0
- data/lib/SDLRuby/texture.rb +93 -0
- data/lib/SDLRuby/ttf/include/SDL_ttf.h.rb +54 -0
- data/lib/SDLRuby/ttf/ttf.rb +41 -0
- data/lib/SDLRuby/ttf.rb +54 -0
- data/lib/SDLRuby/version.rb +5 -0
- data/lib/SDLRuby/window/accessor.rb +125 -0
- data/lib/SDLRuby/window/controller.rb +53 -0
- data/lib/SDLRuby/window/display_info.rb +48 -0
- data/lib/SDLRuby/window/flag.rb +42 -0
- data/lib/SDLRuby/window/hit_tester.rb +61 -0
- data/lib/SDLRuby/window/input.rb +68 -0
- data/lib/SDLRuby/window/shaper.rb +68 -0
- data/lib/SDLRuby/window/surfacer.rb +37 -0
- data/lib/SDLRuby/window/window_renderer.rb +31 -0
- data/lib/SDLRuby/window.rb +90 -0
- data/lib/SDLRuby.rb +16 -0
- data/sig/SDLRuby/event.rbs +104 -0
- data/sig/SDLRuby/pixel_formmater.rbs +24 -0
- data/sig/SDLRuby/rect.rbs +5 -0
- data/sig/SDLRuby/sdl.rbs +606 -0
- data/sig/SDLRuby.rbs +4 -0
- metadata +168 -0
metadata
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: SDLRuby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- shinokaro
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: SDLRuby is a GEM that allows calling the SDL library from Ruby, enabling
|
14
|
+
window creation, image display, audio playback, and more. It easily manages C pointers
|
15
|
+
as Ruby objects, all written in 100% Ruby. Achieve multimedia programming simplicity.
|
16
|
+
email:
|
17
|
+
- shinokaro@hotmail.co.jp
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- CHANGELOG.md
|
23
|
+
- LICENSE.txt
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- lib/SDLRuby.rb
|
27
|
+
- lib/SDLRuby/audio.rb
|
28
|
+
- lib/SDLRuby/cursor.rb
|
29
|
+
- lib/SDLRuby/display.rb
|
30
|
+
- lib/SDLRuby/event.rb
|
31
|
+
- lib/SDLRuby/event/accessor.rb
|
32
|
+
- lib/SDLRuby/event/type.rb
|
33
|
+
- lib/SDLRuby/font.rb
|
34
|
+
- lib/SDLRuby/hint.rb
|
35
|
+
- lib/SDLRuby/image.rb
|
36
|
+
- lib/SDLRuby/image/image.rb
|
37
|
+
- lib/SDLRuby/image/include/SDL_image.h.rb
|
38
|
+
- lib/SDLRuby/keyboard.rb
|
39
|
+
- lib/SDLRuby/mixer.rb
|
40
|
+
- lib/SDLRuby/mixer/channel.rb
|
41
|
+
- lib/SDLRuby/mixer/chunk.rb
|
42
|
+
- lib/SDLRuby/mixer/controller.rb
|
43
|
+
- lib/SDLRuby/mixer/include/SDL_mixer.h.rb
|
44
|
+
- lib/SDLRuby/mixer/sdl_mixer.rb
|
45
|
+
- lib/SDLRuby/mouse.rb
|
46
|
+
- lib/SDLRuby/music.rb
|
47
|
+
- lib/SDLRuby/palette.rb
|
48
|
+
- lib/SDLRuby/pixel_formatter.rb
|
49
|
+
- lib/SDLRuby/rect.rb
|
50
|
+
- lib/SDLRuby/renderer.rb
|
51
|
+
- lib/SDLRuby/renderer/accessor.rb
|
52
|
+
- lib/SDLRuby/renderer/drawer.rb
|
53
|
+
- lib/SDLRuby/renderer/renderer_info.rb
|
54
|
+
- lib/SDLRuby/rw_ops.rb
|
55
|
+
- lib/SDLRuby/rw_ops/rw_object.rb
|
56
|
+
- lib/SDLRuby/sdl.rb
|
57
|
+
- lib/SDLRuby/sdl/include/SDL.h.rb
|
58
|
+
- lib/SDLRuby/sdl/include/SDL_audio.h.rb
|
59
|
+
- lib/SDLRuby/sdl/include/SDL_blendmode.h.rb
|
60
|
+
- lib/SDLRuby/sdl/include/SDL_clipboard.h.rb
|
61
|
+
- lib/SDLRuby/sdl/include/SDL_config.h.rb
|
62
|
+
- lib/SDLRuby/sdl/include/SDL_cpuinfo.h.rb
|
63
|
+
- lib/SDLRuby/sdl/include/SDL_endian.h.rb
|
64
|
+
- lib/SDLRuby/sdl/include/SDL_error.h.rb
|
65
|
+
- lib/SDLRuby/sdl/include/SDL_events.h.rb
|
66
|
+
- lib/SDLRuby/sdl/include/SDL_filesystem.h.rb
|
67
|
+
- lib/SDLRuby/sdl/include/SDL_gamecontroller.h.rb
|
68
|
+
- lib/SDLRuby/sdl/include/SDL_gesture.h.rb
|
69
|
+
- lib/SDLRuby/sdl/include/SDL_guid.h.rb
|
70
|
+
- lib/SDLRuby/sdl/include/SDL_hints.h.rb
|
71
|
+
- lib/SDLRuby/sdl/include/SDL_joystick.h.rb
|
72
|
+
- lib/SDLRuby/sdl/include/SDL_keyboard.h.rb
|
73
|
+
- lib/SDLRuby/sdl/include/SDL_keycode.h.rb
|
74
|
+
- lib/SDLRuby/sdl/include/SDL_locale.h.rb
|
75
|
+
- lib/SDLRuby/sdl/include/SDL_main.h.rb
|
76
|
+
- lib/SDLRuby/sdl/include/SDL_messagebox.h.rb
|
77
|
+
- lib/SDLRuby/sdl/include/SDL_misc.h.rb
|
78
|
+
- lib/SDLRuby/sdl/include/SDL_mouse.h.rb
|
79
|
+
- lib/SDLRuby/sdl/include/SDL_pixels.h.rb
|
80
|
+
- lib/SDLRuby/sdl/include/SDL_platform.h.rb
|
81
|
+
- lib/SDLRuby/sdl/include/SDL_power.h.rb
|
82
|
+
- lib/SDLRuby/sdl/include/SDL_rect.h.rb
|
83
|
+
- lib/SDLRuby/sdl/include/SDL_render.h.rb
|
84
|
+
- lib/SDLRuby/sdl/include/SDL_revision.h.rb
|
85
|
+
- lib/SDLRuby/sdl/include/SDL_rwops.h.rb
|
86
|
+
- lib/SDLRuby/sdl/include/SDL_scancode.h.rb
|
87
|
+
- lib/SDLRuby/sdl/include/SDL_sensor.h.rb
|
88
|
+
- lib/SDLRuby/sdl/include/SDL_shape.h.rb
|
89
|
+
- lib/SDLRuby/sdl/include/SDL_stdinc.h.rb
|
90
|
+
- lib/SDLRuby/sdl/include/SDL_surface.h.rb
|
91
|
+
- lib/SDLRuby/sdl/include/SDL_system.h.rb
|
92
|
+
- lib/SDLRuby/sdl/include/SDL_syswm.h.rb
|
93
|
+
- lib/SDLRuby/sdl/include/SDL_timer.h.rb
|
94
|
+
- lib/SDLRuby/sdl/include/SDL_touch.h.rb
|
95
|
+
- lib/SDLRuby/sdl/include/SDL_types.h.rb
|
96
|
+
- lib/SDLRuby/sdl/include/SDL_version.h.rb
|
97
|
+
- lib/SDLRuby/sdl/include/SDL_video.h.rb
|
98
|
+
- lib/SDLRuby/sdl/sdl.rb
|
99
|
+
- lib/SDLRuby/sdl/sdl_audio.rb
|
100
|
+
- lib/SDLRuby/sdl/sdl_blendmode.rb
|
101
|
+
- lib/SDLRuby/sdl/sdl_error.rb
|
102
|
+
- lib/SDLRuby/sdl/sdl_events.rb
|
103
|
+
- lib/SDLRuby/sdl/sdl_hints.rb
|
104
|
+
- lib/SDLRuby/sdl/sdl_keyboard.rb
|
105
|
+
- lib/SDLRuby/sdl/sdl_locale.rb
|
106
|
+
- lib/SDLRuby/sdl/sdl_message_box.rb
|
107
|
+
- lib/SDLRuby/sdl/sdl_mouse.rb
|
108
|
+
- lib/SDLRuby/sdl/sdl_palette.rb
|
109
|
+
- lib/SDLRuby/sdl/sdl_pixels.rb
|
110
|
+
- lib/SDLRuby/sdl/sdl_rect.rb
|
111
|
+
- lib/SDLRuby/sdl/sdl_render.rb
|
112
|
+
- lib/SDLRuby/sdl/sdl_rw_ops.rb
|
113
|
+
- lib/SDLRuby/sdl/sdl_scancode.rb
|
114
|
+
- lib/SDLRuby/sdl/sdl_surface.rb
|
115
|
+
- lib/SDLRuby/sdl/sdl_version.rb
|
116
|
+
- lib/SDLRuby/sdl/sdl_video.rb
|
117
|
+
- lib/SDLRuby/sdl_error.rb
|
118
|
+
- lib/SDLRuby/surface.rb
|
119
|
+
- lib/SDLRuby/surface/pixel_format.rb
|
120
|
+
- lib/SDLRuby/surface/surface_renderer.rb
|
121
|
+
- lib/SDLRuby/text_input.rb
|
122
|
+
- lib/SDLRuby/texture.rb
|
123
|
+
- lib/SDLRuby/ttf.rb
|
124
|
+
- lib/SDLRuby/ttf/include/SDL_ttf.h.rb
|
125
|
+
- lib/SDLRuby/ttf/ttf.rb
|
126
|
+
- lib/SDLRuby/version.rb
|
127
|
+
- lib/SDLRuby/window.rb
|
128
|
+
- lib/SDLRuby/window/accessor.rb
|
129
|
+
- lib/SDLRuby/window/controller.rb
|
130
|
+
- lib/SDLRuby/window/display_info.rb
|
131
|
+
- lib/SDLRuby/window/flag.rb
|
132
|
+
- lib/SDLRuby/window/hit_tester.rb
|
133
|
+
- lib/SDLRuby/window/input.rb
|
134
|
+
- lib/SDLRuby/window/shaper.rb
|
135
|
+
- lib/SDLRuby/window/surfacer.rb
|
136
|
+
- lib/SDLRuby/window/window_renderer.rb
|
137
|
+
- sig/SDLRuby.rbs
|
138
|
+
- sig/SDLRuby/event.rbs
|
139
|
+
- sig/SDLRuby/pixel_formmater.rbs
|
140
|
+
- sig/SDLRuby/rect.rbs
|
141
|
+
- sig/SDLRuby/sdl.rbs
|
142
|
+
homepage: https://github.com/shinokaro/SDLRuby
|
143
|
+
licenses:
|
144
|
+
- MIT
|
145
|
+
metadata:
|
146
|
+
homepage_uri: https://github.com/shinokaro/SDLRuby
|
147
|
+
source_code_uri: https://github.com/shinokaro/SDLRuby
|
148
|
+
changelog_uri: https://github.com/shinokaro/SDLRuby/CHANGELOG.md
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 3.2.2
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubygems_version: 3.4.19
|
165
|
+
signing_key:
|
166
|
+
specification_version: 4
|
167
|
+
summary: Using the SDL library from Ruby.
|
168
|
+
test_files: []
|