rubysdl 1.3.0
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.
- data/LICENSE +505 -0
- data/MANIFEST +81 -0
- data/NEWS.en +144 -0
- data/NEWS.ja +151 -0
- data/README.en +117 -0
- data/README.ja +166 -0
- data/SDL_kanji.c +403 -0
- data/SDL_kanji.h +48 -0
- data/depend +18 -0
- data/doc/Makefile +18 -0
- data/doc/cdrom.rsd +431 -0
- data/doc/collision.rsd +162 -0
- data/doc/event.rsd +1487 -0
- data/doc/font.rsd +839 -0
- data/doc/general.rsd +49 -0
- data/doc/init.rsd +175 -0
- data/doc/joystick.rsd +387 -0
- data/doc/mixer.rsd +837 -0
- data/doc/mpeg.rsd +595 -0
- data/doc/rsd.rb +125 -0
- data/doc/sdlskk.rsd +496 -0
- data/doc/time.rsd +45 -0
- data/doc/video.rsd +2499 -0
- data/doc/wm.rsd +113 -0
- data/extconf.rb +92 -0
- data/lib/rubysdl_aliases.rb +431 -0
- data/lib/sdl.rb +271 -0
- data/rubysdl.h +109 -0
- data/rubysdl_cdrom.c +176 -0
- data/rubysdl_const_list.txt +280 -0
- data/rubysdl_doc.en.rd +2180 -0
- data/rubysdl_doc_old.rd +2402 -0
- data/rubysdl_event.c +346 -0
- data/rubysdl_event2.c +417 -0
- data/rubysdl_event_key.c +356 -0
- data/rubysdl_image.c +53 -0
- data/rubysdl_joystick.c +156 -0
- data/rubysdl_kanji.c +135 -0
- data/rubysdl_main.c +202 -0
- data/rubysdl_mixer.c +422 -0
- data/rubysdl_mouse.c +96 -0
- data/rubysdl_opengl.c +63 -0
- data/rubysdl_pixel.c +133 -0
- data/rubysdl_ref.html +5550 -0
- data/rubysdl_ref.rd +6163 -0
- data/rubysdl_rwops.c +90 -0
- data/rubysdl_sdlskk.c +312 -0
- data/rubysdl_sge_video.c +622 -0
- data/rubysdl_smpeg.c +341 -0
- data/rubysdl_time.c +36 -0
- data/rubysdl_ttf.c +324 -0
- data/rubysdl_video.c +749 -0
- data/rubysdl_wm.c +71 -0
- data/sample/aadraw.rb +24 -0
- data/sample/alpha.rb +27 -0
- data/sample/alphadraw.rb +25 -0
- data/sample/bfont.rb +24 -0
- data/sample/cdrom.rb +17 -0
- data/sample/collision.rb +97 -0
- data/sample/cursor.bmp +0 -0
- data/sample/cursor.rb +22 -0
- data/sample/ellipses.rb +35 -0
- data/sample/event2.rb +32 -0
- data/sample/font.bmp +0 -0
- data/sample/font.rb +25 -0
- data/sample/fpstimer.rb +175 -0
- data/sample/icon.bmp +0 -0
- data/sample/joy2.rb +81 -0
- data/sample/kanji.rb +36 -0
- data/sample/movesp.rb +93 -0
- data/sample/playmod.rb +14 -0
- data/sample/plaympeg.rb +48 -0
- data/sample/playwave.rb +16 -0
- data/sample/randrect.rb +40 -0
- data/sample/sample.ttf +0 -0
- data/sample/sdlskk.rb +70 -0
- data/sample/sgetest.rb +31 -0
- data/sample/stetris.rb +275 -0
- data/sample/testgl.rb +166 -0
- data/sample/testsprite.rb +68 -0
- data/sample/transformblit.rb +41 -0
- metadata +121 -0
data/MANIFEST
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
MANIFEST
|
2
|
+
README.ja
|
3
|
+
README.en
|
4
|
+
NEWS.ja
|
5
|
+
NEWS.en
|
6
|
+
LICENSE
|
7
|
+
depend
|
8
|
+
extconf.rb
|
9
|
+
lib/rubysdl_aliases.rb
|
10
|
+
lib/sdl.rb
|
11
|
+
rubysdl.h
|
12
|
+
rubysdl_const_list.txt
|
13
|
+
rubysdl_doc_old.rd
|
14
|
+
rubysdl_ref.rd
|
15
|
+
rubysdl_ref.html
|
16
|
+
rubysdl_doc.en.rd
|
17
|
+
rubysdl_event.c
|
18
|
+
rubysdl_event_key.c
|
19
|
+
rubysdl_main.c
|
20
|
+
rubysdl_mixer.c
|
21
|
+
rubysdl_mouse.c
|
22
|
+
rubysdl_sge_video.c
|
23
|
+
rubysdl_time.c
|
24
|
+
rubysdl_video.c
|
25
|
+
rubysdl_wm.c
|
26
|
+
rubysdl_ttf.c
|
27
|
+
rubysdl_cdrom.c
|
28
|
+
rubysdl_joystick.c
|
29
|
+
rubysdl_image.c
|
30
|
+
rubysdl_opengl.c
|
31
|
+
rubysdl_pixel.c
|
32
|
+
rubysdl_event2.c
|
33
|
+
rubysdl_smpeg.c
|
34
|
+
rubysdl_sdlskk.c
|
35
|
+
rubysdl_kanji.c
|
36
|
+
rubysdl_rwops.c
|
37
|
+
SDL_kanji.c
|
38
|
+
SDL_kanji.h
|
39
|
+
sample/testsprite.rb
|
40
|
+
sample/playwave.rb
|
41
|
+
sample/movesp.rb
|
42
|
+
sample/alpha.rb
|
43
|
+
sample/sgetest.rb
|
44
|
+
sample/font.rb
|
45
|
+
sample/cdrom.rb
|
46
|
+
sample/playmod.rb
|
47
|
+
sample/testgl.rb
|
48
|
+
sample/icon.bmp
|
49
|
+
sample/cursor.rb
|
50
|
+
sample/event2.rb
|
51
|
+
sample/joy2.rb
|
52
|
+
sample/plaympeg.rb
|
53
|
+
sample/cursor.bmp
|
54
|
+
sample/transformblit.rb
|
55
|
+
sample/randrect.rb
|
56
|
+
sample/sdlskk.rb
|
57
|
+
sample/ellipses.rb
|
58
|
+
sample/collision.rb
|
59
|
+
sample/stetris.rb
|
60
|
+
sample/aadraw.rb
|
61
|
+
sample/alphadraw.rb
|
62
|
+
sample/fpstimer.rb
|
63
|
+
sample/bfont.rb
|
64
|
+
sample/font.bmp
|
65
|
+
sample/kanji.rb
|
66
|
+
sample/sample.ttf
|
67
|
+
doc/Makefile
|
68
|
+
doc/rsd.rb
|
69
|
+
doc/cdrom.rsd
|
70
|
+
doc/collision.rsd
|
71
|
+
doc/event.rsd
|
72
|
+
doc/font.rsd
|
73
|
+
doc/general.rsd
|
74
|
+
doc/init.rsd
|
75
|
+
doc/joystick.rsd
|
76
|
+
doc/mixer.rsd
|
77
|
+
doc/mpeg.rsd
|
78
|
+
doc/sdlskk.rsd
|
79
|
+
doc/time.rsd
|
80
|
+
doc/video.rsd
|
81
|
+
doc/wm.rsd
|
data/NEWS.en
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
version 1.3.0
|
2
|
+
Fix/Improve documents
|
3
|
+
Add constant SDL::NOFRAME
|
4
|
+
Add following methods
|
5
|
+
SDL::Screen.update_rects
|
6
|
+
SDL::Event2.pump
|
7
|
+
SDL::Mixer.driver_name
|
8
|
+
SDL::Surface.blit
|
9
|
+
SDL::Mixer.driver_name
|
10
|
+
Fix following methods
|
11
|
+
SDL.video_driver_name
|
12
|
+
|
13
|
+
version 1.2.0
|
14
|
+
Add Japanese reference
|
15
|
+
Add following methods
|
16
|
+
SDL::MPEG#render_final
|
17
|
+
SDL::Surface.load_bmp_from_io
|
18
|
+
SDL::Surface.load_from_io
|
19
|
+
SDL::Mixer::Wave.load_from_io
|
20
|
+
SDL::Mixer::Music.load_from_string
|
21
|
+
Fix the bug that we cannot compile when SMEPG is installed but SDL_mixer is not installed.
|
22
|
+
|
23
|
+
version 1.1.0
|
24
|
+
Change Japanese reference
|
25
|
+
Add following methods
|
26
|
+
SDL::CD.framesToMSF
|
27
|
+
SDL::CD.MSFToFrames
|
28
|
+
SDL::CD#in_drive?
|
29
|
+
SDL::Mixer.playChannelTimed
|
30
|
+
SDL::Mixer.fadeInChannel
|
31
|
+
SDL::Mixer.fadeInChannelTimed
|
32
|
+
SDL::Mixer.expire
|
33
|
+
SDL::Mixer.fading
|
34
|
+
SDL::Mixer.fadeOut
|
35
|
+
SDL::Mixer.fadingMusic
|
36
|
+
SDL::Mouse.show?
|
37
|
+
SDL::CollisionMap#w
|
38
|
+
SDL::CollisionMap#h
|
39
|
+
SDL::BMFont#textSize
|
40
|
+
SDL::TTF#init?
|
41
|
+
Add following class
|
42
|
+
SDL::Event2::VideoExpose
|
43
|
+
Fix bugs in
|
44
|
+
SDL::Key.press?
|
45
|
+
SDL::TTF#familyName
|
46
|
+
SDL::TTF#styleName
|
47
|
+
SDL::BMFont
|
48
|
+
Add some constants about key repeat
|
49
|
+
|
50
|
+
version 1.0.0
|
51
|
+
Add following methods
|
52
|
+
SDL::Surface#drawBezier
|
53
|
+
SDL::Surface#drawAABezier
|
54
|
+
SDL::Surface#drawBezierAlpha
|
55
|
+
SDL::Surface#drawAABezierAlpha
|
56
|
+
Fix bugs in SDL::MPEG#setDisplay
|
57
|
+
|
58
|
+
version 0.9.5
|
59
|
+
Fix bugs in SDL::Surface#getPalette and SDL::Surface#copyRect
|
60
|
+
Add SDL::WM.grubInput, SDL.quit, SDL.putenv and SDL.getenv
|
61
|
+
Fix trivial typo
|
62
|
+
Fix documentation of SDL::TTF#textSize
|
63
|
+
|
64
|
+
version 0.9.4
|
65
|
+
Add SDL::Surface#pixels, SDL::Surface#[RGBA]mask and SDL::Surface.new_from
|
66
|
+
Modyfy SDL::Surface.new
|
67
|
+
Add a little OpenGL document
|
68
|
+
|
69
|
+
version 0.9.3
|
70
|
+
Support bitmap font drawing with sge
|
71
|
+
Support bdf font drawing with SDL_kanji
|
72
|
+
Add following methods
|
73
|
+
SDL::TTF#height
|
74
|
+
SDL::TTF#ascent
|
75
|
+
SDL::TTF#descent
|
76
|
+
SDL::TTF#lineSkip
|
77
|
+
SDL::Surface#copyRect
|
78
|
+
Fix some warnings
|
79
|
+
Fix a critical bug in SDLSKK module
|
80
|
+
Setup OpenGL by default
|
81
|
+
|
82
|
+
version 0.9.2
|
83
|
+
Primitive draw with anti-alias and alpha blending is now available.
|
84
|
+
Modify SDL.transformBlit for alpha blending.
|
85
|
+
|
86
|
+
version 0.9.1
|
87
|
+
Fix two critical bugs in event module.
|
88
|
+
|
89
|
+
version 0.9
|
90
|
+
|
91
|
+
Support SDLSKK 0.4, and stop supporting 0.3.
|
92
|
+
Add collision detection function. ( thanks to Wayne Conrad )
|
93
|
+
Improve MPEG playback function. Enable to load multiple mpeg files.
|
94
|
+
Add sample. ( thanks to Simon Strandgaard )
|
95
|
+
|
96
|
+
version 0.8.3
|
97
|
+
|
98
|
+
Add following methods because of typo. ( thanks to Wayne Conrad )
|
99
|
+
SDL::Surface#drawEllipse
|
100
|
+
SDL::Surface#drawFilledEllipse
|
101
|
+
Fix following method. ( thanks to moumar )
|
102
|
+
SDL.videoInfo
|
103
|
+
|
104
|
+
version 0.8.2
|
105
|
+
|
106
|
+
Support SDLSKK 0.3, and stop supporting 0.2.
|
107
|
+
Bug fix about Joystick subsystem.
|
108
|
+
Add following methods.
|
109
|
+
SDL::Screen#toggleFullScreen
|
110
|
+
SDL::Key.getKeyName
|
111
|
+
Add aliases into documents.
|
112
|
+
|
113
|
+
version 0.8.1
|
114
|
+
|
115
|
+
bug fix
|
116
|
+
|
117
|
+
version 0.8
|
118
|
+
|
119
|
+
Support SDLSKK.
|
120
|
+
Change SDL's finalizer (Thanks to Tamura).
|
121
|
+
Change some methods' name.
|
122
|
+
SDL::CD.name -> SDL::CD.indexName
|
123
|
+
SDL::Joystick.name -> SDL::Joystick.indexName
|
124
|
+
Add Ruby like ( uncapitalized and separated by underbars ) aliases.
|
125
|
+
Add following methods.
|
126
|
+
SDL::Mixer.allocateChannels
|
127
|
+
SDL::TTF#renderSolidUTF8
|
128
|
+
SDL::TTF#renderBlendedUTF8
|
129
|
+
SDL::TTF#renderShadedUTF8
|
130
|
+
SDL::TTF#faces
|
131
|
+
SDL::TTF#fixedWidth?
|
132
|
+
SDL::TTF#familyName
|
133
|
+
SDL::TTF#styleName
|
134
|
+
SDL.videoDriverName
|
135
|
+
SDL.getGammaRamp
|
136
|
+
SDL.setGammaRamp
|
137
|
+
SDL::Surface#saveBMP
|
138
|
+
SDL::Surface#displayFormatAlpha
|
139
|
+
SDL::Surface#getClipRect
|
140
|
+
SDL.autoLock?
|
141
|
+
SDL.autoLockON
|
142
|
+
SDL.autoLockOFF
|
143
|
+
Extend following method.
|
144
|
+
SDL.blitSurace2
|
data/NEWS.ja
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
version 1.3.0
|
2
|
+
$B%I%-%e%a%s%H$r=$@5(B/$B2~A1(B
|
3
|
+
$BDj?t(BSDL::NOFRAME$B$,Dj5A$5$l$F$$$J$+$C$?$N$r=$@5(B
|
4
|
+
$B0J2<$N%a%=%C%I$rDI2C(B
|
5
|
+
SDL::Screen#update_rects
|
6
|
+
SDL::Event2.pump
|
7
|
+
SDL::Screen.open
|
8
|
+
SDL::Surface.blit
|
9
|
+
SDL::Mixer.driver_name
|
10
|
+
$B0J2<$N%a%=%C%I$r=$@5(B
|
11
|
+
SDL.video_driver_name
|
12
|
+
|
13
|
+
|
14
|
+
version 1.2.0
|
15
|
+
$BF|K\8l$N%j%U%!%l%s%9$N(BMPEG$B$N9`L\$r2CI.(B
|
16
|
+
$B0J2<$N%a%=%C%I$rDI2C(B
|
17
|
+
SDL::MPEG#render_final
|
18
|
+
SDL::Surface.load_bmp_from_io
|
19
|
+
SDL::Surface.load_from_io
|
20
|
+
SDL::Mixer::Wave.load_from_io
|
21
|
+
SDL::Mixer::Music.load_from_string
|
22
|
+
SMPEG$BM-!"(BSDL_mixer$BL5$N>l9g$K%3%s%Q%$%k$G$-$J$$%P%0$r=$@5(B
|
23
|
+
|
24
|
+
version 1.1.0
|
25
|
+
$BF|K\8l$N%j%U%!%l%s%9$rA4LL2~D{(B
|
26
|
+
$B0J2<$N%a%=%C%I$rDI2C(B
|
27
|
+
SDL::CD.framesToMSF
|
28
|
+
SDL::CD.MSFToFrames
|
29
|
+
SDL::CD#in_drive?
|
30
|
+
SDL::Mixer.playChannelTimed
|
31
|
+
SDL::Mixer.fadeInChannel
|
32
|
+
SDL::Mixer.fadeInChannelTimed
|
33
|
+
SDL::Mixer.expire
|
34
|
+
SDL::Mixer.fading
|
35
|
+
SDL::Mixer.fadeOut
|
36
|
+
SDL::Mixer.fadingMusic
|
37
|
+
SDL::Mouse.show?
|
38
|
+
SDL::CollisionMap#w
|
39
|
+
SDL::CollisionMap#h
|
40
|
+
SDL::BMFont#textSize
|
41
|
+
SDL::TTF#init?
|
42
|
+
$B0J2<$N%/%i%9$rDI2C(B
|
43
|
+
SDL::Event2::VideoExpose
|
44
|
+
$B0J2<$N%a%=%C%I$N%P%0$r=$@5(B
|
45
|
+
SDL::Key.press?
|
46
|
+
SDL::TTF#familyName
|
47
|
+
SDL::TTF#styleName
|
48
|
+
$B0J2<$N%/%i%9$N=*N;;~%P%0$r=$@5(B
|
49
|
+
SDL::BMFont
|
50
|
+
$B%-!<%j%T!<%H4XO"$NDj?t$rDI2C(B
|
51
|
+
|
52
|
+
version 1.0.0
|
53
|
+
$B0J2<$N%a%=%C%I$rDI2C(B
|
54
|
+
SDL::Surface#drawBezier
|
55
|
+
SDL::Surface#drawAABezier
|
56
|
+
SDL::Surface#drawBezierAlpha
|
57
|
+
SDL::Surface#drawAABezierAlpha
|
58
|
+
$B0J2<$N%a%=%C%I$N%P%0$r=$@5(B
|
59
|
+
SDL::MPEG#setDisplay
|
60
|
+
|
61
|
+
version 0.9.5
|
62
|
+
$B0J2<$N%a%=%C%I$N%P%0$r=$@5(B
|
63
|
+
SDL::Surface#getPalette
|
64
|
+
SDL::Surface#copyRect
|
65
|
+
$B0J2<$N%a%=%C%I$rDI2C(B
|
66
|
+
SDL::WM.grubInput
|
67
|
+
SDL.quit
|
68
|
+
SDL.putenv
|
69
|
+
SDL.getenv
|
70
|
+
$B$5$5$$$J(Btypo$B$r=$@5(B
|
71
|
+
$B%I%-%e%a%s%H$r0lIt=$@5(B(SDL::TTF#textSize)
|
72
|
+
|
73
|
+
version 0.9.4
|
74
|
+
SDL::Surface#pixels, SDL::Surface#[RGBA]mask, SDL::Surface.new_from$B$rDI2C(B
|
75
|
+
SDL::Surface.new$B$r3HD%(B
|
76
|
+
OpenGL$B4XO"$N%I%-%e%a%s%H$r:GDc8B$NJ,DI2C(B
|
77
|
+
|
78
|
+
version 0.9.3
|
79
|
+
sge$B$N(Bbitmap font$BIA2h5!G=$rDI2C(B
|
80
|
+
SDL_kanji$B$K$h$k(Bbdf font$BIA2h5!G=$rDI2C(B
|
81
|
+
SDL::TTF#height, #ascent, #descent, #lineSkip$B$rDI2C(B
|
82
|
+
SDL::Surface#copyRect$B$rDI2C(B
|
83
|
+
warning$B$,$G$kE@$r=$@5(B
|
84
|
+
SDLSKK$B%$%s%?!<%U%'!<%9$NCWL?E*$J%P%0$r=$@5(B
|
85
|
+
OpenGL$B$r%G%U%)%k%H$GM-8z$K$7$?(B
|
86
|
+
|
87
|
+
version 0.9.2
|
88
|
+
sge$B$N%"%k%U%!IU$-?^7AIA2h!"%"%s%A%(%$%j%"%:IU$-?^7AIA2h$r%5%]!<%H(B
|
89
|
+
SDL.transformBlit$B$r(BsetAlpha$B$G$N(Balpha$B$N@_Dj$rM-8z$K$9$k(B
|
90
|
+
|
91
|
+
version 0.9.1
|
92
|
+
|
93
|
+
SDL::Event$B$H(BSDL::Event2$B$NCWL?E*$J%P%0$r=$@5(B
|
94
|
+
|
95
|
+
version 0.9
|
96
|
+
|
97
|
+
SDLSKK 0.4$B$r%5%]!<%H!"(B0.3$B$N%5%]!<%H$rDd;_(B
|
98
|
+
$B>WFMH=Dj5!G=$rDI2C(B ( thanks to Wayne Conrad )
|
99
|
+
MPEG$B:F@85!G=$r6/2=!#J#?t$N(BMPEG$B%U%!%$%k$rFI$_$3$a$k$h$&$K$9$k!"(BSDL_Mixer$B$K$h$k(B
|
100
|
+
$B2;@<:F@85!G=$H$N6&B8$r2DG=$K$9$k$J$I$NJQ99$r$7$?!#(B
|
101
|
+
$B%5%s%W%k$rDI2C!#(B( thanks to Simon Strandgaard )
|
102
|
+
|
103
|
+
version 0.8.3
|
104
|
+
|
105
|
+
$B0J2<$N%a%=%C%I$rDI2C(B(typo$B$N$?$a(B) ( thanks to Wayne Conrad )
|
106
|
+
SDL::Surface#drawEllipse
|
107
|
+
SDL::Surface#drawFilledEllipse
|
108
|
+
$B0J2<$N%a%=%C%I$r=$@5(B( thanks to moumar )
|
109
|
+
SDL.videoInfo
|
110
|
+
|
111
|
+
version 0.8.2
|
112
|
+
|
113
|
+
SDLSKK 0.3$B$r%5%]!<%H!"(B0.2$B0JA0$O%5%]!<%H$7$J$$$3$H$K$7$?(B
|
114
|
+
Joystick$B5!G=$N%P%0$r=$@5(B
|
115
|
+
$B0J2<$N%a%=%C%I$rDI2C(B
|
116
|
+
SDL::Screen#toggleFullScreen
|
117
|
+
SDL::Key.getKeyName
|
118
|
+
$B%I%-%e%a%s%H$K(Balias$B$r5-=R(B
|
119
|
+
|
120
|
+
version 0.8.1
|
121
|
+
|
122
|
+
$B%P%0=$@5(B
|
123
|
+
|
124
|
+
version 0.8
|
125
|
+
|
126
|
+
SDLSKK$B$N%5%]!<%H$r2C$($k!#(B
|
127
|
+
$B=*N;=hM}$NJQ99(B($B$?$`$i$5$s$N%Q%C%A$J$I$K$h$k(B)
|
128
|
+
$B%"%s%@!<%P!<6h@Z$j$N%a%=%C%IL>$rMxMQ$G$-$k$h$&$K$7$?(B( blit_surface $B$J$I(B )
|
129
|
+
$B%a%=%C%IL>$rJQ99(B
|
130
|
+
SDL::CD.name -> SDL::CD.indexName
|
131
|
+
SDL::Joystick.name -> SDL::Joystick.indexName
|
132
|
+
$B0J2<$N%a%=%C%I$NDI2C(B
|
133
|
+
SDL::Mixer.allocateChannels
|
134
|
+
SDL::TTF#renderSolidUTF8
|
135
|
+
SDL::TTF#renderBlendedUTF8
|
136
|
+
SDL::TTF#renderShadedUTF8
|
137
|
+
SDL::TTF#faces
|
138
|
+
SDL::TTF#fixedWidth?
|
139
|
+
SDL::TTF#familyName
|
140
|
+
SDL::TTF#styleName
|
141
|
+
SDL.videoDriverName
|
142
|
+
SDL.getGammaRamp
|
143
|
+
SDL.setGammaRamp
|
144
|
+
SDL::Surface#saveBMP
|
145
|
+
SDL::Surface#displayFormatAlpha
|
146
|
+
SDL::Surface#getClipRect
|
147
|
+
SDL.autoLock?
|
148
|
+
SDL.autoLockON
|
149
|
+
SDL.autoLockOFF
|
150
|
+
$B0J2<$N%a%=%C%I$r3HD%(B
|
151
|
+
SDL.blitSurface2
|
data/README.en
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
|
2
|
+
Ruby/SDL 1.3.0
|
3
|
+
Ohbayashi Ippei
|
4
|
+
|
5
|
+
1 What's Ruby/SDL
|
6
|
+
|
7
|
+
Ruby/SDL is the ruby extension library to use SDL.
|
8
|
+
SDL(Simple DirectMedia Layer) is a cross-platform multimedia library
|
9
|
+
designed to provide fast access to the graphics framebuffer and audio
|
10
|
+
device. See http://www.libsdl.org/ if you want to know SDL in detail.
|
11
|
+
|
12
|
+
2 Platform
|
13
|
+
This library supports
|
14
|
+
Linux on X,Win32,FreeBSD and BeOS.
|
15
|
+
|
16
|
+
3 Library Needed
|
17
|
+
|
18
|
+
Ruby/SDL needs Ruby and SDL and optionally uses SDL_image,SDL_mixer,
|
19
|
+
SDL_ttf, SGE, OpenGL and SMPEG.
|
20
|
+
|
21
|
+
Indispensable
|
22
|
+
Ruby http://www.ruby-lang.org/
|
23
|
+
SDL http://www.libsdl.org/
|
24
|
+
|
25
|
+
Optional
|
26
|
+
SDL_mixer http://www.libsdl.org/projects/SDL_mixer/index.html
|
27
|
+
SDL_ttf http://www.libsdl.org/projects/SDL_ttf/index.html
|
28
|
+
SDL_image http://www.libsdl.org/projects/SDL_image/index.html
|
29
|
+
SGE http://www.etek.chalmers.se/~e8cal1/sge/
|
30
|
+
SMPEG http://www.icculus.org/smpeg/
|
31
|
+
SDLSKK http://www.kmc.gr.jp/~ohai/sdlskk.en.html
|
32
|
+
|
33
|
+
4 INSTALL
|
34
|
+
|
35
|
+
install on FreeBSD
|
36
|
+
Use Port.
|
37
|
+
|
38
|
+
install on Linux
|
39
|
+
(1)install Ruby
|
40
|
+
See Ruby's document and install.
|
41
|
+
(2)install SDL
|
42
|
+
Extract SDL's source and run './configure' with '--disable-pthreads'
|
43
|
+
option.
|
44
|
+
On Linux using pthread with Ruby/SDL makes problem.
|
45
|
+
You can avoid this problem by other way (Please see rubysdl_doc.en.rd).
|
46
|
+
And run 'make','make install'.
|
47
|
+
|
48
|
+
(3)install SGE
|
49
|
+
Run 'make' and 'make install'.
|
50
|
+
|
51
|
+
(4)install SDL_mixer, SDL_ttf, SDL_image, SMPEG and SDLSKK
|
52
|
+
See documents of these libraries and install them .
|
53
|
+
|
54
|
+
(5)install this extension library,Ruby/SDL
|
55
|
+
Run 'ruby extconf.rb','make' and 'make install'.
|
56
|
+
|
57
|
+
5 USE Ruby/SDL
|
58
|
+
Write "require 'sdl'" in your Ruby script.
|
59
|
+
See following documents and samples if you want to know the detail.
|
60
|
+
|
61
|
+
sample/*.rb
|
62
|
+
Ruby/SDL samples.In some script, you have to prepare data such as
|
63
|
+
"sample.wav" and "sample.mpg".
|
64
|
+
rubysdl_doc.en.rd
|
65
|
+
Simple reference manual
|
66
|
+
document of SDL
|
67
|
+
This is in SDL archive.
|
68
|
+
Please read this when you want to know what does't describe
|
69
|
+
these documents.
|
70
|
+
|
71
|
+
6 OpenGL
|
72
|
+
You can use OpenGL with this library.
|
73
|
+
|
74
|
+
(1) Setup OpenGL and SDL.
|
75
|
+
(2) Get OpenGL Interface (http://raa.ruby-lang.org/project/opengl/)
|
76
|
+
(3) Install OpenGL Interface
|
77
|
+
(4) Run "ruby extconf.rb" with "--enable-opengl".
|
78
|
+
(5) Run "make" and "make install"
|
79
|
+
(6) Write "require 'sdl'; require 'opengl'" in your script.
|
80
|
+
|
81
|
+
The interface of OpenGL is same as "OpenGL Interface".
|
82
|
+
Please see SDL's document,OpenGL document and sample/testgl.rb .
|
83
|
+
|
84
|
+
Each OpenGL implementation are a little different in API, so
|
85
|
+
you may fail to compile Ruby's OpenGL Interface. If you can't
|
86
|
+
compile, but if you want to complile it, you should modify
|
87
|
+
sources.
|
88
|
+
|
89
|
+
7 LICENSE
|
90
|
+
This library is distributed under GNU LGPL version 2.1 or later,
|
91
|
+
which can be found in the file "LICENSE".
|
92
|
+
But samples, the Ruby scripts sample/*.rb, are not under LGPL, and
|
93
|
+
you can use their files freely.
|
94
|
+
|
95
|
+
8 Thanks
|
96
|
+
Thanks to ...
|
97
|
+
Tamura : some patches and advertising
|
98
|
+
Akinori MUSHA : Porting on FreeBSD
|
99
|
+
Danny van Bruggen : some ideas are from his library "RUDL"
|
100
|
+
akira yamada : patch of SDL::TTF, making packages of Vine and Debian.
|
101
|
+
Wayne Conrad : some patches
|
102
|
+
Christian Neukirchen, Kent Dahl : send a patch
|
103
|
+
Keffin Barnaby : some patches
|
104
|
+
Rorien Dunn, Dennis Ranke, Keita Urashima : bug reports and useful information
|
105
|
+
Yusuke TABATA : introduce me into SDL world
|
106
|
+
SDLdoc Japanese translation project : base of Ruby/SDL's reference manual
|
107
|
+
Hara Yutaka: Sample TrueTypeFont
|
108
|
+
Members of #sdl-fan-jp @ FriendChat: bug reports and advices
|
109
|
+
|
110
|
+
9 OTHER
|
111
|
+
Some functions, especially SDL::MPEG methods and pallete handling methods,
|
112
|
+
are not tested.
|
113
|
+
|
114
|
+
Please send comments and bug reports to the author.
|
115
|
+
Author's mail address: ohai@kmc.gr.jp
|
116
|
+
|
117
|
+
|