rubysdl-mswin32-1.9 2.1.0.1 → 2.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.en +13 -0
- data/NEWS.ja +91 -78
- data/README.en +13 -12
- data/README.en.win32 +5 -10
- data/README.ja +139 -140
- data/README.ja.win32 +6 -6
- data/dll/SDL.dll +0 -0
- data/dll/SDL_image.dll +0 -0
- data/dll/SDL_mixer.dll +0 -0
- data/dll/jpeg.dll +0 -0
- data/dll/libogg-0.dll +0 -0
- data/dll/libpng12-0.dll +0 -0
- data/dll/libtiff-3.dll +0 -0
- data/dll/libvorbis-0.dll +0 -0
- data/dll/libvorbisfile-3.dll +0 -0
- data/dll/smpeg.dll +0 -0
- data/dll/zlib1.dll +0 -0
- data/ext/opengl.so +0 -0
- data/ext/sdl_ext.so +0 -0
- data/lib/rubysdl_compatible_ver1.rb +5 -3
- data/lib/sdl.rb +2 -2
- data/rubysdl_ref.en.html +5868 -0
- data/rubysdl_ref.html +6181 -5888
- data/sample/load_from_io.rb +2 -3
- data/sample/testgl.rb +96 -93
- metadata +5 -24
- data/doc/cdrom.rd +0 -305
- data/doc/collision.rd +0 -121
- data/doc/event.rd +0 -1090
- data/doc/font.rd +0 -625
- data/doc/general.rd +0 -60
- data/doc/init.rd +0 -142
- data/doc/joystick.rd +0 -301
- data/doc/mixer.rd +0 -584
- data/doc/mpeg.rd +0 -420
- data/doc/opengl.rd +0 -144
- data/doc/rsd.rb +0 -158
- data/doc/sdlskk.rd +0 -404
- data/doc/time.rd +0 -34
- data/doc/video.rd +0 -2269
- data/doc/wm.rd +0 -78
- data/ext/sdl.so +0 -0
- data/rubysdl_doc_old.en.rd +0 -2181
- data/rubysdl_doc_old.rd +0 -2402
- data/rubysdl_ref.rd +0 -6577
- data/sample/caption.rb +0 -21
- data/sample/rubysdl.rb +0 -33
data/sample/load_from_io.rb
CHANGED
@@ -20,9 +20,8 @@ img2 = File.open("icon.bmp", "rb"){|f| SDL::Surface.loadBMPFromIO(f) }
|
|
20
20
|
img3 = Zlib::GzipReader.open("icon.bmp.gz"){|f| SDL::Surface.loadBMPFromIO(f) }
|
21
21
|
img4 = File.open("icon.png", "rb"){|f| SDL::Surface.loadFromIO(f) }
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
wav = File.open('sample.wav', "rb"){|f| SDL::Mixer::Wave.loadFromIO(f) }
|
23
|
+
mus = SDL::Mixer::Music.loadFromString(File.read("track01.ogg"))
|
24
|
+
wav = File.open('sample.wav'){|f| SDL::Mixer::Wave.loadFromIO(f) }
|
26
25
|
|
27
26
|
SDL.blitSurface(img,0,0,32,32,screen,100,100)
|
28
27
|
SDL.blitSurface(img2,0,0,32,32,screen,200,100)
|
data/sample/testgl.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
# a sample with ruby-opengl and Ruby/SDL
|
1
2
|
require 'sdl'
|
2
|
-
require '
|
3
|
+
require 'gl'
|
4
|
+
|
5
|
+
include Gl
|
3
6
|
|
4
7
|
# initialize SDL and opengl
|
5
8
|
SDL.init SDL::INIT_VIDEO
|
@@ -10,18 +13,18 @@ SDL::GL.set_attr SDL::GL_DEPTH_SIZE,16
|
|
10
13
|
SDL::GL.set_attr SDL::GL_DOUBLEBUFFER,1
|
11
14
|
SDL::Screen.open 640,400,16,SDL::OPENGL
|
12
15
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
+
glViewport( 0, 0, 640, 400 );
|
17
|
+
glMatrixMode( GL_PROJECTION );
|
18
|
+
glLoadIdentity( );
|
16
19
|
|
17
|
-
|
18
|
-
|
20
|
+
glMatrixMode( GL_MODELVIEW );
|
21
|
+
glLoadIdentity( );
|
19
22
|
|
20
|
-
|
23
|
+
glEnable(GL_DEPTH_TEST);
|
21
24
|
|
22
|
-
|
25
|
+
glDepthFunc(GL_LESS);
|
23
26
|
|
24
|
-
|
27
|
+
glShadeModel(GL_SMOOTH);
|
25
28
|
|
26
29
|
shadedCube=true
|
27
30
|
|
@@ -55,110 +58,110 @@ loop do
|
|
55
58
|
end
|
56
59
|
end
|
57
60
|
|
58
|
-
|
59
|
-
|
61
|
+
glClearColor(0.0, 0.0, 0.0, 1.0);
|
62
|
+
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
|
60
63
|
|
61
64
|
|
62
|
-
|
65
|
+
glBegin(GL_QUADS)
|
63
66
|
|
64
67
|
if shadedCube then
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
68
|
+
glColor(color[0]);
|
69
|
+
glVertex(cube[0]);
|
70
|
+
glColor(color[1]);
|
71
|
+
glVertex(cube[1]);
|
72
|
+
glColor(color[2]);
|
73
|
+
glVertex(cube[2]);
|
74
|
+
glColor(color[3]);
|
75
|
+
glVertex(cube[3]);
|
73
76
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
77
|
+
glColor(color[3]);
|
78
|
+
glVertex(cube[3]);
|
79
|
+
glColor(color[4]);
|
80
|
+
glVertex(cube[4]);
|
81
|
+
glColor(color[7]);
|
82
|
+
glVertex(cube[7]);
|
83
|
+
glColor(color[2]);
|
84
|
+
glVertex(cube[2]);
|
82
85
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
86
|
+
glColor(color[0]);
|
87
|
+
glVertex(cube[0]);
|
88
|
+
glColor(color[5]);
|
89
|
+
glVertex(cube[5]);
|
90
|
+
glColor(color[6]);
|
91
|
+
glVertex(cube[6]);
|
92
|
+
glColor(color[1]);
|
93
|
+
glVertex(cube[1]);
|
91
94
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
95
|
+
glColor(color[5]);
|
96
|
+
glVertex(cube[5]);
|
97
|
+
glColor(color[4]);
|
98
|
+
glVertex(cube[4]);
|
99
|
+
glColor(color[7]);
|
100
|
+
glVertex(cube[7]);
|
101
|
+
glColor(color[6]);
|
102
|
+
glVertex(cube[6]);
|
100
103
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
104
|
+
glColor(color[5]);
|
105
|
+
glVertex(cube[5]);
|
106
|
+
glColor(color[0]);
|
107
|
+
glVertex(cube[0]);
|
108
|
+
glColor(color[3]);
|
109
|
+
glVertex(cube[3]);
|
110
|
+
glColor(color[4]);
|
111
|
+
glVertex(cube[4]);
|
109
112
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
113
|
+
glColor(color[6]);
|
114
|
+
glVertex(cube[6]);
|
115
|
+
glColor(color[1]);
|
116
|
+
glVertex(cube[1]);
|
117
|
+
glColor(color[2]);
|
118
|
+
glVertex(cube[2]);
|
119
|
+
glColor(color[7]);
|
120
|
+
glVertex(cube[7]);
|
118
121
|
|
119
122
|
else
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
123
|
+
glColor(1.0, 0.0, 0.0);
|
124
|
+
glVertex(cube[0]);
|
125
|
+
glVertex(cube[1]);
|
126
|
+
glVertex(cube[2]);
|
127
|
+
glVertex(cube[3]);
|
125
128
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
129
|
+
glColor(0.0, 1.0, 0.0);
|
130
|
+
glVertex(cube[3]);
|
131
|
+
glVertex(cube[4]);
|
132
|
+
glVertex(cube[7]);
|
133
|
+
glVertex(cube[2]);
|
131
134
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
135
|
+
glColor(0.0, 0.0, 1.0);
|
136
|
+
glVertex(cube[0]);
|
137
|
+
glVertex(cube[5]);
|
138
|
+
glVertex(cube[6]);
|
139
|
+
glVertex(cube[1]);
|
137
140
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
141
|
+
glColor(0.0, 1.0, 1.0);
|
142
|
+
glVertex(cube[5]);
|
143
|
+
glVertex(cube[4]);
|
144
|
+
glVertex(cube[7]);
|
145
|
+
glVertex(cube[6]);
|
143
146
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
147
|
+
glColor(1.0, 1.0, 0.0);
|
148
|
+
glVertex(cube[5]);
|
149
|
+
glVertex(cube[0]);
|
150
|
+
glVertex(cube[3]);
|
151
|
+
glVertex(cube[4]);
|
149
152
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
153
|
+
glColor(1.0, 0.0, 1.0);
|
154
|
+
glVertex(cube[6]);
|
155
|
+
glVertex(cube[1]);
|
156
|
+
glVertex(cube[2]);
|
157
|
+
glVertex(cube[7]);
|
155
158
|
|
156
159
|
end
|
157
160
|
|
158
|
-
|
161
|
+
glEnd()
|
159
162
|
|
160
|
-
|
161
|
-
|
163
|
+
glMatrixMode(GL_MODELVIEW);
|
164
|
+
glRotate(5.0, 1.0, 1.0, 1.0);
|
162
165
|
|
163
166
|
SDL::GL.swap_buffers
|
164
167
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysdl-mswin32-1.9
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyross Makoto
|
@@ -10,8 +10,8 @@ autorequire:
|
|
10
10
|
bindir: dll
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
14
|
-
default_executable:
|
13
|
+
date: 2009-08-29 00:00:00 +09:00
|
14
|
+
default_executable: install_rubysdl
|
15
15
|
dependencies: []
|
16
16
|
|
17
17
|
description: Ruby/SDL is Ruby library to use SDL
|
@@ -40,23 +40,8 @@ files:
|
|
40
40
|
- ./dll/SGE.dll
|
41
41
|
- ./dll/smpeg.dll
|
42
42
|
- ./dll/zlib1.dll
|
43
|
-
- ./doc/cdrom.rd
|
44
|
-
- ./doc/collision.rd
|
45
|
-
- ./doc/event.rd
|
46
|
-
- ./doc/font.rd
|
47
|
-
- ./doc/general.rd
|
48
|
-
- ./doc/init.rd
|
49
|
-
- ./doc/joystick.rd
|
50
|
-
- ./doc/mixer.rd
|
51
|
-
- ./doc/mpeg.rd
|
52
|
-
- ./doc/opengl.rd
|
53
|
-
- ./doc/rsd.rb
|
54
|
-
- ./doc/sdlskk.rd
|
55
|
-
- ./doc/time.rd
|
56
|
-
- ./doc/video.rd
|
57
|
-
- ./doc/wm.rd
|
58
43
|
- ./ext/opengl.so
|
59
|
-
- ./ext/
|
44
|
+
- ./ext/sdl_ext.so
|
60
45
|
- ./install_rubysdl.rb
|
61
46
|
- ./lib/rubysdl_aliases.rb
|
62
47
|
- ./lib/rubysdl_compatible_ver1.rb
|
@@ -67,15 +52,12 @@ files:
|
|
67
52
|
- ./README.en.win32
|
68
53
|
- ./README.ja
|
69
54
|
- ./README.ja.win32
|
70
|
-
- ./rubysdl_doc_old.en.rd
|
71
|
-
- ./rubysdl_doc_old.rd
|
72
55
|
- ./rubysdl_ref.html
|
73
|
-
- ./rubysdl_ref.
|
56
|
+
- ./rubysdl_ref.en.html
|
74
57
|
- ./sample/aadraw.rb
|
75
58
|
- ./sample/alpha.rb
|
76
59
|
- ./sample/alphadraw.rb
|
77
60
|
- ./sample/bfont.rb
|
78
|
-
- ./sample/caption.rb
|
79
61
|
- ./sample/cdrom.rb
|
80
62
|
- ./sample/collision.rb
|
81
63
|
- ./sample/cursor.bmp
|
@@ -96,7 +78,6 @@ files:
|
|
96
78
|
- ./sample/plaympeg.rb
|
97
79
|
- ./sample/playwave.rb
|
98
80
|
- ./sample/randrect.rb
|
99
|
-
- ./sample/rubysdl.rb
|
100
81
|
- ./sample/sample.ttf
|
101
82
|
- ./sample/sdlskk.rb
|
102
83
|
- ./sample/sgetest.rb
|
data/doc/cdrom.rd
DELETED
@@ -1,305 +0,0 @@
|
|
1
|
-
= CD-ROM
|
2
|
-
* ((<CD-ROM��ǽ����>))
|
3
|
-
* ((<SDL::CD>))
|
4
|
-
* ((<CD-ROM��Ϣ��å�>))
|
5
|
-
* ((<SDL::CD.num_drives>)) -- �����ƥ��� CD-ROM �ο����֤��ޤ���
|
6
|
-
* ((<SDL::CD.index_name>)) -- CD-ROM �ˤĤ��ơ��ʹ֤��ɤ�륷���ƥ����¸�� ID ���֤��ޤ���
|
7
|
-
* ((<SDL::CD.open>)) -- CD-ROM �ɥ饤�֤˥����������뤿��˥����ץޤ���
|
8
|
-
* ((<SDL::CD#status>)) -- ���ꤵ�줿�ɥ饤�֤θ��ߤξ��֤��֤��ޤ���
|
9
|
-
* ((<SDL::CD#play>)) -- CD ��������ޤ���
|
10
|
-
* ((<SDL::CD#play_tracks>)) -- ���ꤵ�줿 CD �ȥ�å���������ޤ���
|
11
|
-
* ((<SDL::CD#pause>)) -- CD-ROM �κ���������ߤ��ޤ���
|
12
|
-
* ((<SDL::CD#resume>)) -- CD-ROM �κ�����Ƴ����ޤ���
|
13
|
-
* ((<SDL::CD#stop>)) -- CD-ROM �κ�������ߤ��ޤ���
|
14
|
-
* ((<SDL::CD#eject>)) -- CD-ROM ����Ф��ޤ���
|
15
|
-
* ((<SDL::CD#num_tracks>)) -- CD �Υȥ�å������֤��ޤ���
|
16
|
-
* ((<SDL::CD#current_track>)) -- ���ߤΥȥ�å����֤��ޤ���
|
17
|
-
* ((<SDL::CD#current_frame>)) -- �ȥ�å���θ��ߤΥե졼�४�ե��å��ͤ��֤��ޤ���
|
18
|
-
* ((<SDL::CD#track_type>)) -- �ȥ�å��μ�����֤��ޤ���
|
19
|
-
* ((<SDL::CD#track_length>)) -- �ȥ�å���Ĺ�����֤��ޤ���
|
20
|
-
* ((<SDL::CD#in_drive?>)) -- �ɥ饤�֤˥ǥ����������뤫�ɤ�����Ĵ�٤ޤ���
|
21
|
-
* ((<SDL::CD.frames_to_msf>)) -- �ե졼�����ʬ/��/�ե졼���ʬ�ޤ���
|
22
|
-
* ((<SDL::CD.msf_to_frames>)) -- ʬ/��/�ե졼��Ȥ����ͤ�ե졼������Ѵ����ޤ���
|
23
|
-
|
24
|
-
== CD-ROM��ǽ����
|
25
|
-
SDL �ϰ��٤� 32 �ޤǤΥ������� CD-ROM �ɥ饤�֤�
|
26
|
-
�����ǥ�������ݡ��Ȥ��ޤ���
|
27
|
-
|
28
|
-
�ȥ�å������μ�������������ߤ����� CD-ROM �μ��Ф���ޤࡢ
|
29
|
-
CD �ץ졼������Ƥδ���Ū�ʵ�ǽ��¹Ԥ��뤿��ˤ��� API ��Ȥ��ޤ���
|
30
|
-
(���ߤϥޥ�������㡼�� CD �ɥ饤�֤ϥ��ݡ��Ȥ��Ƥ��ޤ���)
|
31
|
-
|
32
|
-
Ruby/SDL �Τɤ� CD-ROM ��Ϣ��åɤ�Ƥ����ˡ�
|
33
|
-
�ޤ� ((<SDL.init>))(SDL::INIT_CDROM) ��ƤФʤ���Ф����ޤ���
|
34
|
-
����� CD-ROM �ɥ饤�֤�õ���ƥ����ƥ�����
|
35
|
-
�ץ�����ब�����ǥ�������Ǥ���褦���åȥ��åפ��ޤ���
|
36
|
-
|
37
|
-
�饤�֥�������������ϡ�
|
38
|
-
((<SDL::CD.num_drives>)) ��Ȥä�
|
39
|
-
���Ѳ�ǽ�ʥɥ饤�֤������Ĥ��뤫���Τ뤳�Ȥ��Ǥ��ޤ���
|
40
|
-
�ꥹ�Ȥκǽ�Υɥ饤�֤ϥǥե���� CD-ROM �ɥ饤�֤Ǥ���
|
41
|
-
�ɥ饤�֤�����((<SDL::CD.open>)) �ǥ����ץ���ϡ�
|
42
|
-
���ơ�����������å��� CD ���ɥ饤�֤ˤ���ʤ�����Ϥ��뤳�Ȥ��Ǥ��ޤ���
|
43
|
-
|
44
|
-
CD-ROM �� 1 �Ĥޤ��Ϥ���ʾ�Υȥ�å��ǹ������졢
|
45
|
-
�ġ��Υȥ�å��Ϥ�����Ρ֥ե졼��פǹ�������Ƥ��ޤ���
|
46
|
-
�ե졼��� CD �δ��åǡ�����ñ�̤ǡ�
|
47
|
-
���줾��Υե졼��ϥ������ˤ��� 2K �Ǥ��ꡢ
|
48
|
-
CD ���̾�κ������ԡ��ɤˤ����� 1 �ô֤� 75(= SDL::CD::FPS)
|
49
|
-
�ե졼���������ޤ���
|
50
|
-
SDL �� CD ��Υե졼�����Ȥä�ư��ޤ�����
|
51
|
-
((<SDL::CD.frames_to_msf>)) ��Ȥ����Ȥǡ�
|
52
|
-
��긫���줿ʬ/�äΥե����ޥåȤ˴�ñ���Ѵ����뤳�Ȥ��Ǥ��ޤ���
|
53
|
-
�ޤ������Ѵ��εդ� ((<SDL::CD.msf_to_frames>)) �ǤǤ��ޤ���
|
54
|
-
|
55
|
-
== SDL::CD
|
56
|
-
((<SDL::CD.open>)) �ˤ�äƥ����ץ줿 CDROM �ǥХ�����ɽ����
|
57
|
-
�ǥ������ˤ�����ȥ�å��Υ쥤�����Ȥξ�����Ǽ���ޤ���
|
58
|
-
|
59
|
-
== CD-ROM��Ϣ��å�
|
60
|
-
|
61
|
-
--- SDL::CD.num_drives
|
62
|
-
--- SDL::CD.numDrives
|
63
|
-
|
64
|
-
�����ƥ��� CD-ROM �ο����֤��ޤ���
|
65
|
-
|
66
|
-
* See Also
|
67
|
-
|
68
|
-
((<SDL::CD.open>))
|
69
|
-
|
70
|
-
--- SDL::CD.index_name(drive)
|
71
|
-
--- SDL::CD.indexName(drive)
|
72
|
-
|
73
|
-
CD-ROM �ˤĤ��ơ��ʹ֤��ɤ�륷���ƥ����¸�� ID ��ʸ������֤��ޤ���
|
74
|
-
((|drive|)) �ϥɥ饤�֤Υ���ǥå����ֹ�Ǥ���
|
75
|
-
����ǥå����ֹ�� 0 �ǻϤޤꡢ((<SDL::CD.num_drives>))-1 ��
|
76
|
-
�����ޤ���
|
77
|
-
|
78
|
-
�֤��ͤ��㤨�аʲ��Τ褦��ʸ����Ǥ���
|
79
|
-
* "/dev/cdrom"
|
80
|
-
* "E:"
|
81
|
-
* "/dev/disk/ide/1/master"
|
82
|
-
|
83
|
-
* See Also
|
84
|
-
|
85
|
-
((<SDL::CD.num_drives>))
|
86
|
-
|
87
|
-
--- SDL::CD.open(drive)
|
88
|
-
|
89
|
-
CD-ROM �ɥ饤�֤˥����������뤿��˥����ץޤ���
|
90
|
-
������������ ((<SDL::CD>)) �Υ������֤��ޤ���
|
91
|
-
|
92
|
-
�ɥ饤�֤��������ʤ������ӥ������֤ΤȤ����㳰 ((<SDL::Error>)) ��ȯ�������ޤ���
|
93
|
-
|
94
|
-
|
95
|
-
EXAMPLE
|
96
|
-
SDL.init SDL::INIT_CDROM
|
97
|
-
|
98
|
-
# CD �ɥ饤�֤�����å�
|
99
|
-
if SDL::CD.num_drives == 0
|
100
|
-
# ���Ĥ���ʤ��ä�
|
101
|
-
STDERR.print "���Ѳ�ǽ�� CDROM �ǥХ���������ޤ���\n"
|
102
|
-
exit 255
|
103
|
-
end
|
104
|
-
|
105
|
-
begin
|
106
|
-
# �ǥե���ȥɥ饤�֤��ץ�
|
107
|
-
cdrom = SDL::CD.open(0)
|
108
|
-
rescue SDL::Error
|
109
|
-
# �����ץ�Ǥ��ʤ��ä�
|
110
|
-
STDERR.puts "�ɥ饤�֤������ץ�Ǥ��ޤ���Ǥ���"
|
111
|
-
exit 255
|
112
|
-
end
|
113
|
-
|
114
|
-
# �ܥ�塼��ξ����ɽ��
|
115
|
-
printf "̾��: %s\n", SDL::CD.index_name(0)
|
116
|
-
printf "�ȥ�å���: %d\n", cdrom.num_tracks
|
117
|
-
num_tracks.times do |cur_track|
|
118
|
-
min, sec, frame = SDL::CD.frames_to_msf(cdrom.track_length(cur_track))
|
119
|
-
printf "\t�ȥ�å� %d: Ĺ�� %d:%d\n", cur_track, min, sec
|
120
|
-
end
|
121
|
-
|
122
|
-
--- SDL::CD#status
|
123
|
-
|
124
|
-
���δؿ��ϻ��ꤵ�줿�ɥ饤�֤θ��ߤξ��֤��֤��ޤ���
|
125
|
-
���֤ϼ��Τ����줫�Ǥ���
|
126
|
-
* SDL::CD::TRAYEMPTY
|
127
|
-
* SDL::CD::STOPPED
|
128
|
-
* SDL::CD::PLAYING
|
129
|
-
* SDL::CD::PAUSED
|
130
|
-
* SDL::CD::ERROR
|
131
|
-
|
132
|
-
�ɥ饤�֤� CD �����äƤ���ȡ�
|
133
|
-
((<SDL.current_track>)), ((<SDL.current_frame>)), ((<SDL.num_tracks>)), ((<SDL.track_type>)),
|
134
|
-
((<SDL.track_lenght>))�ξ���������ޤ���
|
135
|
-
|
136
|
-
|
137
|
-
EXAMPLE
|
138
|
-
def play_track(track)
|
139
|
-
raise "not cd in drive" unless $cdrom.in_drive?
|
140
|
-
|
141
|
-
# �ºݤ� CD �Υȥ�å������ڤ�Τ�
|
142
|
-
track = $cdrom.num_tracks-1 if track >= $cdrom.num_tracks
|
143
|
-
$cdrom.play_tracks(track, 0, 1, 0)
|
144
|
-
end
|
145
|
-
|
146
|
-
--- SDL::CD#play(start, length)
|
147
|
-
|
148
|
-
((|self|)) �Ǽ������CD��
|
149
|
-
�ե졼�� ((|start|))����
|
150
|
-
((|length|)) �ե졼�����
|
151
|
-
�������ޤ���
|
152
|
-
|
153
|
-
���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
|
154
|
-
|
155
|
-
* See Also
|
156
|
-
|
157
|
-
((<SDL::CD#play_tracks>))
|
158
|
-
|
159
|
-
--- SDL::CD#play_tracks(start_track, start_frame, ntracks, nframes)
|
160
|
-
|
161
|
-
((|start_track|)) ���ܤΥȥ�å�����
|
162
|
-
((|ntracks|)) �ȥ�å�ʬ��
|
163
|
-
���ꤵ�줿 CD ��������ޤ���
|
164
|
-
|
165
|
-
((|start_frame|)) ��
|
166
|
-
������Ϥ�� ((|start_track|)) ����Ƭ���������
|
167
|
-
�ե졼��Υ��ե��å��ͤǤ���
|
168
|
-
((|nframes|)) ��
|
169
|
-
������λ����Ǹ�Υȥ�å�
|
170
|
-
(((|start_track|))+((|ntracks|))) ��
|
171
|
-
��Ƭ����������ե졼��Υ��ե��å��ͤǤ���
|
172
|
-
|
173
|
-
���Υ�åɤϡ�((<SDL::CD#status>))��
|
174
|
-
�Ƥ�� CD �Υȥ�å���������������ˤΤߡ��Ƥ֤٤��Ǥ���
|
175
|
-
|
176
|
-
���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
|
177
|
-
|
178
|
-
|
179
|
-
EXAMPLE
|
180
|
-
# ����ä� cdrom �������ץ줿�ǥХ������Ȳ���
|
181
|
-
# CD �������
|
182
|
-
if cdrom.in_drive?
|
183
|
-
cdrom.play_tracks 0, 0, 0, 0
|
184
|
-
end
|
185
|
-
# �ǽ�Υȥ�å������
|
186
|
-
if cdrom.in_drive?
|
187
|
-
cdrom.play_tracks 0, 0, 1, 0
|
188
|
-
end
|
189
|
-
# 2 ���ܤΥȥ�å��κǽ餫�� 15 �ä����
|
190
|
-
if cdrom.in_drive?
|
191
|
-
cdrom.play_tracks 1, 0, 0, SDL::CD::FPS*15
|
192
|
-
end
|
193
|
-
|
194
|
-
* NOTES
|
195
|
-
|
196
|
-
�ǡ����ȥ�å���̵�뤵��ޤ���
|
197
|
-
|
198
|
-
* See Also
|
199
|
-
|
200
|
-
((<SDL::CD#play>)), ((<SDL::CD#status>))
|
201
|
-
|
202
|
-
--- SDL::CD#pause
|
203
|
-
|
204
|
-
���ꤵ�줿 CD-ROM �κ���������ߤ��ޤ���
|
205
|
-
|
206
|
-
���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
|
207
|
-
|
208
|
-
* See Also
|
209
|
-
|
210
|
-
((<SDL::CD#play>)), ((<SDL::CD#resume>))
|
211
|
-
|
212
|
-
--- SDL::CD#resume
|
213
|
-
|
214
|
-
���ꤷ�� CD-ROM �κ�����Ƴ����ޤ���
|
215
|
-
|
216
|
-
���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
|
217
|
-
|
218
|
-
* See Also
|
219
|
-
|
220
|
-
((<SDL::CD#play>)), ((<SDL::CD#pause>))
|
221
|
-
|
222
|
-
--- SDL::CD#stop
|
223
|
-
|
224
|
-
���ꤵ�줿 CD-ROM �κ�������ߤ��ޤ���
|
225
|
-
|
226
|
-
���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
|
227
|
-
|
228
|
-
* See Also
|
229
|
-
|
230
|
-
((<SDL::CD#play>))
|
231
|
-
|
232
|
-
--- SDL::CD#eject
|
233
|
-
|
234
|
-
���ꤵ�줿 CD-ROM ����Ф��ޤ���
|
235
|
-
|
236
|
-
���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
|
237
|
-
|
238
|
-
--- SDL::CD#num_tracks
|
239
|
-
--- SDL::CD#numTracks
|
240
|
-
|
241
|
-
���ꤵ�줿 CD-ROM �Υȥ�å������֤��ޤ���
|
242
|
-
((<SDL::CD#status>))�����Ƥ���������ޤ���
|
243
|
-
|
244
|
-
* See Also
|
245
|
-
|
246
|
-
((<SDL::CD#status>))
|
247
|
-
|
248
|
-
--- SDL::CD#current_track
|
249
|
-
--- SDL::CD#currentTrack
|
250
|
-
|
251
|
-
���ꤵ�줿 CD-ROM �θ��ߤΥȥ�å����֤��ޤ���
|
252
|
-
((<SDL::CD#status>))�����Ƥ���������ޤ���
|
253
|
-
|
254
|
-
* See Also
|
255
|
-
|
256
|
-
((<SDL::CD#status>))
|
257
|
-
|
258
|
-
--- SDL::CD#current_frame
|
259
|
-
--- SDL::CD#currentFrame
|
260
|
-
|
261
|
-
���ꤵ�줿 CD-ROM �Υȥ�å���θ��߱��դ��Ƥ���ե졼�४�ե��å��ͤ��֤��ޤ���
|
262
|
-
((<SDL::CD#status>))�����Ƥ���������ޤ���
|
263
|
-
|
264
|
-
* See Also
|
265
|
-
|
266
|
-
((<SDL::CD#status>))
|
267
|
-
|
268
|
-
--- SDL::CD#track_type(track)
|
269
|
-
--- SDL::CD#trackType(track)
|
270
|
-
|
271
|
-
((|track|)) �ǻ��ꤷ���ȥ�å��μ�����֤��ޤ���
|
272
|
-
SDL::CD::AUDIO_TRACK �� SDL::CD::DATA_TRACK �Τ����줫���֤��ޤ���
|
273
|
-
|
274
|
-
--- SDL::CD#track_length(track)
|
275
|
-
--- SDL::CD#trackLength(track)
|
276
|
-
|
277
|
-
((|track|)) �ǻ��ꤷ���ȥ�å���Ĺ����ե졼��ñ�̤��֤��ޤ���
|
278
|
-
|
279
|
-
--- SDL::CD#in_drive?
|
280
|
-
|
281
|
-
�ɥ饤�֤˥ǥ�����������ʤ� true ���֤��ޤ���
|
282
|
-
|
283
|
-
* See Also
|
284
|
-
|
285
|
-
((<SDL::CD#status>))
|
286
|
-
|
287
|
-
--- SDL::CD.frames_to_msf(frames)
|
288
|
-
--- SDL::CD.framesToMSF(frames)
|
289
|
-
|
290
|
-
�ե졼�����ʬ/��/�ե졼����Ѵ�����[ʬ, ��, �ե졼��] �Ȥ�������3�Ĥ�
|
291
|
-
����ˤ����֤��ޤ���
|
292
|
-
|
293
|
-
* See Also
|
294
|
-
|
295
|
-
((<SDL::CD.msf_to_frames>))
|
296
|
-
|
297
|
-
--- SDL::CD.msf_to_frames(min, sec, frames)
|
298
|
-
--- SDL::CD.MSFToFrames(min, sec, frames)
|
299
|
-
|
300
|
-
ʬ/��/�ե졼��Ȥ����ͤ�ե졼������Ѵ����ޤ���
|
301
|
-
|
302
|
-
* See Also
|
303
|
-
|
304
|
-
((<SDL::CD.frames_to_msf>))
|
305
|
-
|