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/rubysdl_doc_old.rd
DELETED
@@ -1,2402 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
|
3
|
-
= SDL
|
4
|
-
|
5
|
-
Ruby/SDL �� ((<SDL|URL:http://www.libsdl.org/>)) �� Ruby �������Ѥ��뤿���
|
6
|
-
��ĥ�饤�֥��Ǥ���
|
7
|
-
|
8
|
-
SDL ��������åѤ��ܻؤ��Ƥ��뤿�ᡢAPI �� SDL �Τ�ΤȰ��а���б�
|
9
|
-
���Ƥ����Τ�¿������ä�SDL�Υɥ�����Ȥ����˻��ͤˤʤ�Ǥ��礦��
|
10
|
-
|
11
|
-
���٤Ƥδؿ�/���饹/�⥸�塼��/�����SDL�⥸�塼��β��ˤ���ޤ���
|
12
|
-
|
13
|
-
�ޤ�����åɤ��֤��ͤ����Ҥ���Ƥ��ʤ����Ͼ��nil���֤���ΤȤ��ޤ���
|
14
|
-
|
15
|
-
== ���饹/�⥸�塼�빽��
|
16
|
-
|
17
|
-
* ((<���顼����>))
|
18
|
-
* ((<SDL::Error>))
|
19
|
-
* ((<�������Ϣ>))
|
20
|
-
* ((<video��Ϣ>))
|
21
|
-
* ((<SDL::Surface>))
|
22
|
-
* ((<SDL::Screen>))
|
23
|
-
* ((<SDL::CollisionMap>))
|
24
|
-
* ((<SDL::PixelFormat>))
|
25
|
-
* ((<Event��Ϣ>))
|
26
|
-
* ((<SDL::Event>))
|
27
|
-
* ((<SDL::Event2>))
|
28
|
-
* ((<SDL::Key>)) (module)
|
29
|
-
* ((<SDL::Mouse>)) (module)
|
30
|
-
* ((<audio��Ϣ>))
|
31
|
-
* ((<SDL::Mixer>)) (module)
|
32
|
-
* ((<SDL::Mixer::Wave>))
|
33
|
-
* ((<SDL::Mixer::Music>))
|
34
|
-
* ((<Window Manager ��Ϣ>))
|
35
|
-
* ((<SDL::WM>)) (module)
|
36
|
-
* ((<CDROM�ط�>))
|
37
|
-
* ((<SDL::CD>))
|
38
|
-
* ((<���祤���ƥ��å���Ϣ>))
|
39
|
-
* ((<SDL::Joystick>))
|
40
|
-
* ((<�ե���ȴط�>))
|
41
|
-
* ((<SDL::BMFont>))
|
42
|
-
* ((<SDL::Kanji>))
|
43
|
-
* ((<SDL::TTF>))
|
44
|
-
* ((<MPEG��������>))
|
45
|
-
* ((<SDL::MPEG>))
|
46
|
-
* ((<�������>))
|
47
|
-
* ((<SDLSKK�ˤ�����ܸ����ϵ�ǽ>))
|
48
|
-
* ((<SDL::SKK::Context>))
|
49
|
-
* ((<SDL::SKK::Dictionary>))
|
50
|
-
* ((<SDL::SKK::RomKanaRuleTable>))
|
51
|
-
* ((<SDL::SKK::Keybind>))
|
52
|
-
* ((<OpenGL�ˤ��3D����>))
|
53
|
-
* ((<����¾>))
|
54
|
-
|
55
|
-
== ��ǽ����
|
56
|
-
Ruby/SDL�Ǥϡ���˵��褦�ʵ�ǽ����äƤ��ޤ���
|
57
|
-
�����Ǥϡ����γ��פ���⤷�ޤ����ܤ����ϸġ��ι�Ƥ���������
|
58
|
-
|
59
|
-
=== �����
|
60
|
-
SDL���Τν������((<SDL.init>))�ʤɤǤ���
|
61
|
-
|
62
|
-
=== Video
|
63
|
-
������ɥ���������������뤿��ε�ǽ�Ǥ���
|
64
|
-
���ž��������Ū�ʿ�(ľ���ʤ�)�����衢����̾���ž���ѥ�å�
|
65
|
-
���ʤɤε�ǽ������ޤ���
|
66
|
-
|
67
|
-
=== Event
|
68
|
-
�����ܡ��ɡ��ޥ����ʤɤ������Ϥ�����Ȥ뤿��ε�ǽ�Ǥ���
|
69
|
-
|
70
|
-
=== Audio
|
71
|
-
���̲���BGM�ʤɤ���դ��뤿��ε�ǽ�Ǥ���
|
72
|
-
|
73
|
-
=== Window Manager
|
74
|
-
Window�Υ����ȥ�ʤɤ����ꤷ���ꡢ���Ϥ�Ĥ�����ꤹ�뵡ǽ�Ǥ���
|
75
|
-
|
76
|
-
=== CDROM
|
77
|
-
CD����դ��뤿��ε�ǽ�Ǥ���Audio��ǽ�ȤϤޤä����̸Ĥε�ǽ�Ȥ���
|
78
|
-
�¸�����Ƥ��ޤ����ե����ɥ���/�ե����ɥ����ȤȤ��ä�ʣ���ʱ��դ�
|
79
|
-
�Ǥ��ޤ���
|
80
|
-
|
81
|
-
=== Joystick
|
82
|
-
�ѥå�/���ƥ��å���������Ϥ�������뵡ǽ�Ǥ���Event��ǽ�Ȥ�
|
83
|
-
Ϣ�Ȥ���ư��ޤ���
|
84
|
-
|
85
|
-
=== Font
|
86
|
-
�ȼ�������Bitmap font/True Type Font/bdf font�����褬�Ǥ��ޤ���
|
87
|
-
True True Font �� bdf font�����ܸ��������ǽ�Ǥ���
|
88
|
-
|
89
|
-
=== MPEG
|
90
|
-
MPEG�κ������Ǥ��ޤ�����������̾������ϤǤ��ʤ��ʤɤ��ʤ�
|
91
|
-
��ǽ�����¤�����ޤ���
|
92
|
-
|
93
|
-
=== ����
|
94
|
-
((<SDL.init>))���ƤФ�Ƥ���ηв���֤�Ϥ���((<SDL.getTicks>))
|
95
|
-
�Ȼ���ߥ�����ߤ���((<SDL.delay>))������ޤ���
|
96
|
-
|
97
|
-
=== ���顼
|
98
|
-
SDL��ͭ�Υ��顼�Ϥ��٤� ((<SDL::Error>)) �Ȥ����㳰��ȯ�������뤳��
|
99
|
-
�����Τ���ޤ���
|
100
|
-
|
101
|
-
|
102
|
-
== ���顼����
|
103
|
-
|
104
|
-
=== SDL::Error
|
105
|
-
|
106
|
-
���顼�����ѤΥ��饹�Ǥ���SDL��ͭ�Υ��顼�Ϥ��Υ��饹���Ѥ������Τ���ޤ���
|
107
|
-
|
108
|
-
==== �����ѡ����饹
|
109
|
-
|
110
|
-
StandardError
|
111
|
-
|
112
|
-
== �������Ϣ
|
113
|
-
|
114
|
-
SDL��Ȥ����ˤ�ɬ��((<SDL.init>))��SDL����������ɬ�פ�����ޤ���
|
115
|
-
|
116
|
-
=== SDL��Υ⥸�塼��ؿ�
|
117
|
-
|
118
|
-
--- SDL.init(flag)
|
119
|
-
SDL���������ޤ���
|
120
|
-
Ruby/SDL��¾�Υ�åɤ�Ƥ����ˤ��Υ�åɤ�ƤФʤ��ƤϤʤ�ޤ���
|
121
|
-
((|flag|))�Ǥɤ���ʬ���������뤫����ꤷ�ޤ���
|
122
|
-
�ʲ�������������¤��ä���Τ���ꤷ�Ƥ���������
|
123
|
-
* SDL::INIT_AUDIO �����ǥ�����ǽ(�������ϵ�ǽ)������
|
124
|
-
* SDL::INIT_VIDEO �ӥǥ���ǽ(��������)��ǽ�ȥ����ܡ��ɡ��ޥ������ϵ�ǽ������
|
125
|
-
* SDL::INIT_CDROM CDROM������ǽ������
|
126
|
-
* SDL::INIT_JOYSTICK ���祤���ƥ��å����ϵ�ǽ������
|
127
|
-
* SDL::INIT_EVERYTHING ��˵���ǽ�����ƽ�������ޤ���
|
128
|
-
|
129
|
-
����������Ԥ�������((<SDL::Error>))�㳰��ȯ�����ޤ���
|
130
|
-
|
131
|
-
# ��
|
132
|
-
# Video��ǽ�ȥ����ǥ�����ǽ����������
|
133
|
-
SDL.init(SDL::INIT_VIDEO|SDL::INIT_AUDIO)
|
134
|
-
|
135
|
-
--- SDL.quit
|
136
|
-
SDL��åȥ����ޤ���SDL�����ݤ����ǥХ����䥦����ɥ��ʤɤ�
|
137
|
-
������٤Ʋ������ޤ���
|
138
|
-
Ruby/SDL���ץ�����ཪλ���˼�ưŪ�ˤ��Υ�åɤ�Ƥ֤Τǡ�
|
139
|
-
�̾�Ϥ����Ȥ�ɬ�פϤ���ޤ���
|
140
|
-
|
141
|
-
SDL�λ��ͤ�����ɬ�פʾ��ΤȤäƤ���������
|
142
|
-
|
143
|
-
�����Ƥ����SDL�ε�ǽ����ڻȤ�ʤ��Ǥ������������Τ褦�ʤ��Ȥ�
|
144
|
-
���ꤵ��Ƥ��ޤ���
|
145
|
-
|
146
|
-
--- SDL.initedSystem(flag)
|
147
|
-
--- SDL.inited_system(flag)
|
148
|
-
���ꤷ����ʬ�����������Ƥ��뤫�ɤ���������å����ޤ���
|
149
|
-
((|flag|))��((<SDL.init>))�Τ�Τ�Ʊ���Ǥ���
|
150
|
-
|
151
|
-
�֤��ͤϽ��������Ƥ�����ʬ���б������ͤ������¤Ǥ���
|
152
|
-
|
153
|
-
# ��
|
154
|
-
# �����ν�������֤�Ĵ�٤�
|
155
|
-
init = SDL.initedSystem(SDL::INIT_EVERYTHING)
|
156
|
-
# �ӥǥ���ǽ���Ȥ��뤫��
|
157
|
-
if (init & SDL::INIT_VIDEO) != 0
|
158
|
-
puts("�ӥǥ���ǽ�Ͻ��������Ƥ��ޤ�")
|
159
|
-
else
|
160
|
-
puts("�ӥǥ���ǽ�Ͻ��������Ƥ��ޤ���")
|
161
|
-
end
|
162
|
-
|
163
|
-
--- SDL.getenv(name)
|
164
|
-
((|name|))�ǻ��ꤷ��ʸ������б�����Ķ��ѿ������롣
|
165
|
-
���ͤ�ʸ����Ǥ��������롣
|
166
|
-
|
167
|
-
--- SDL.putenv(envstr)
|
168
|
-
�Ķ��ѿ����ѹ����롣
|
169
|
-
|
170
|
-
Windows��Ǥ�SDL_WINDOWID��SDL_VIDEODRIVER�Ȥ��ä��Ķ��ѿ���Ȥä�
|
171
|
-
SDL�μ¹Ԥ˱ƶ���Ϳ�������Ȥ������Ѥ��롣
|
172
|
-
SDL�λ��ͤˤ��Windows�Ǥ� ENV ��ľ���ѹ����Ƥ⤳���ε�ǽ���Ȥ�
|
173
|
-
�ʤ����ᤳ�Τ褦�ʴؿ���¸�ߤ��롣
|
174
|
-
|
175
|
-
�����Ȥ���"name=value"�Ȥ���������ʸ�����Ϳ���롣
|
176
|
-
|
177
|
-
Unix��Ǥ��Ȥ߹������ENV�����Ѥ���Τ�Ʊ���Ǥ���
|
178
|
-
���Ի����㳰((<SDL::Error>))��ȯ�����ޤ���
|
179
|
-
|
180
|
-
# ��
|
181
|
-
# http://moriq.tdiary.net/20051006.html ���
|
182
|
-
# Ruby/SDL �� Apollo��ʻ��
|
183
|
-
require 'phi'
|
184
|
-
require 'sdl'
|
185
|
-
|
186
|
-
# �ե����������
|
187
|
-
form = Phi::Form.new
|
188
|
-
$terminated = false
|
189
|
-
form.on_close{ $terminated = true }
|
190
|
-
form.caption = "Ruby/SDL on Phi::Form"
|
191
|
-
# �ѥͥ��ե�����ξ�˺��
|
192
|
-
panel = Phi::Panel.new(form)
|
193
|
-
panel.align = Phi::AL_LEFT
|
194
|
-
|
195
|
-
# WINDOWID hack��Ȥ����ѥͥ��SDL�Υ�����ɥ���Τ���
|
196
|
-
SDL.putenv("SDL_VIDEODRIVER=windib")
|
197
|
-
SDL.putenv("SDL_WINDOWID=#{panel.handle}")
|
198
|
-
form.show
|
199
|
-
|
200
|
-
# SDL���Τν�����ʤ�
|
201
|
-
SDL.init(SDL::INIT_VIDEO)
|
202
|
-
screen = SDL.setVideoMode(640, 480, 16, SDL::SWSURFACE)
|
203
|
-
|
204
|
-
# �ᥤ��롼�ס��Ȥꤢ�������⤷�ʤ�
|
205
|
-
unless $terminated
|
206
|
-
while event = SDL::Event2.poll
|
207
|
-
case event
|
208
|
-
when SDL::Event2::KeyDown, SDL::Event2::Quit
|
209
|
-
exit
|
210
|
-
end
|
211
|
-
end
|
212
|
-
|
213
|
-
sleep 0.05
|
214
|
-
end
|
215
|
-
|
216
|
-
== video��Ϣ
|
217
|
-
|
218
|
-
����ϡ��������褪���ɽ���뵡ǽ�����ޤ����ʲ��Υ�åɤ����Ѥ�����
|
219
|
-
��((<SDL.init>))�ǥӥǥ���ǽ�ν����(SDL::INIT_VIDEO)��ɬ�פ�����ޤ���
|
220
|
-
|
221
|
-
((<SDL::Surface>))�Ȥ��������������Ƥ�������(������ե����ȸƤӤޤ�)
|
222
|
-
��ɽ�����륯�饹��¸�ߤ����ӥǥ���ǽ�Ϥ�����Ѥ�����ݲ�����Ƥ��ޤ���
|
223
|
-
�Ĥޤꡢ���̾��ɽ������������ե����뤫���ɤߤ���������϶���
|
224
|
-
���Υ��饹���Ѥ���ɽ���졢������Ф����褹�뤳�ȤǤ��ޤ��ޤ�
|
225
|
-
�������̤����뤳�Ȥ��Ǥ��ޤ���
|
226
|
-
|
227
|
-
���̤��б����륵���ե������ä�((<SDL::Surface>))��
|
228
|
-
���֥��饹�Ǥ���((<SDL::Screen>))�Ȥ������饹��ɽ������ޤ���
|
229
|
-
���������������������ľ��ɽ���ˤ�ȿ�Ǥ���ޤ���
|
230
|
-
((<SDL::Screen.updateRect>))��((<SDL::Screen.flip>))��Ƥ֤��Ȥ�
|
231
|
-
���λ����Ǥ����Ƥ�ɽ������ޤ���
|
232
|
-
���Τ褦�ʻ��Ȥߤϥ��֥�Хåե���ʤɤȸƤФ�ޤ���
|
233
|
-
�����褬��λ���Ƥ��ʤ����֡פ�ɽ�����ʤ����Ȥ�ɽ���Τ���Ĥ�������ޤ���
|
234
|
-
|
235
|
-
((<SDL.setVideoMode>))�ǡ��ӥǥ��Υ⡼��(�����٤�bpp�ʤ�)�����ꤹ�뤳��
|
236
|
-
��((<SDL::Screen>))�Υ��������뤳�Ȥ��Ǥ��ޤ���
|
237
|
-
|
238
|
-
����¾��������ͤ�����䡢�����ե������Ȥ˥ѥ�åȤ��ѹ������ꤹ��
|
239
|
-
��ǽ��¸�ߤ��ޤ���
|
240
|
-
|
241
|
-
|
242
|
-
�����ε�ǽ�ϡ�SGE�饤�֥���SDL_image��ɬ�פǤ���
|
243
|
-
bpp��bit per pixel��ά�ΤǤ���
|
244
|
-
|
245
|
-
�ʲ��ˤ����Ĥ������ޤ���
|
246
|
-
|
247
|
-
|
248
|
-
# �� �ӥǥ���ǽ�ν����
|
249
|
-
require 'sdl'
|
250
|
-
|
251
|
-
# SDL����
|
252
|
-
SDL.init(SDL::INIT_VIDEO)
|
253
|
-
|
254
|
-
# ���̤ν����
|
255
|
-
# ���եȥ����������ե����� ������ 640x480�� 16bit���顼�⡼�ɤǽ����
|
256
|
-
screen = SDL.setVideoMode(640, 480, 16, SDL::SWSURFACE)
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
# ��3 BMP�ե�����Υ����ɤ����ɽ��
|
261
|
-
|
262
|
-
# ���ꤷ���ե�������ɤߤ���Dz��̤�ɽ������ؿ�
|
263
|
-
def display_bmp(screen, fname)
|
264
|
-
# �ե����������ɤ���
|
265
|
-
image = SDL::Surface.loadBMP(fname)
|
266
|
-
SDL.blitSurface(image, 0, 0, 0, 0, screen, 0, 0)
|
267
|
-
screen.updateRect(0, 0, image.w, image.h)
|
268
|
-
end
|
269
|
-
|
270
|
-
=== SDL��Υ⥸�塼��ؿ�
|
271
|
-
|
272
|
-
--- SDL.getVideoSurface
|
273
|
-
--- SDL.get_video_surface
|
274
|
-
Not documented yet
|
275
|
-
|
276
|
-
--- SDL.setVideoMode(w,h,bpp,flags)
|
277
|
-
--- SDL.set_video_mode(w,h,bpp,flags)
|
278
|
-
���ꤵ�줿���̤������⤵��bpp���ͤǥӥǥ��⡼�ɤ����ꤹ�롣
|
279
|
-
bpp��0�ξ�硢���ߤΥǥ����ץ쥤��bpp���ͤ����Ѥ���롣
|
280
|
-
���������Ȥ���((<SDL::Screen>))�Υ��֥������Ȥ��֤���
|
281
|
-
���Ԥ����Ȥ���((<SDL::Error>))�㳰�������롣
|
282
|
-
flags�ΰ�̣�ϰʲ��ΤȤ��ꡣ
|
283
|
-
* SDL::SWSURFACE
|
284
|
-
|
285
|
-
�����ƥ�Υ�����˥Хåե���Ȥ롣
|
286
|
-
|
287
|
-
* SDL::HWSURFACE
|
288
|
-
|
289
|
-
�ӥǥ�����˥Хåե���Ȥ롣
|
290
|
-
|
291
|
-
* SDL::FULLSCREEN
|
292
|
-
|
293
|
-
�ե륹�����⡼�ɤ�ư��褦�Ȥ��롣
|
294
|
-
|
295
|
-
* SDL::DOUBLEBUF
|
296
|
-
|
297
|
-
���֥�Хåե�����Ǥ���褦�ˤ��롣
|
298
|
-
((<SDL::Screen#flip>))���Ӥ������Ȥˤ�äƥХåե����ڤ��ؤ�
|
299
|
-
���Ǥ��롣
|
300
|
-
|
301
|
-
* SDL::ANYFORMAT
|
302
|
-
|
303
|
-
SDL�饤�֥����ᤵ�줿bpp�Ǥ�������ߤ뤬������ȰۤʤäƤ�����
|
304
|
-
��ǽ�ʥ⡼�ɤ�����Ф�����֤��Ƥ��롣�ǥե���Ȥ�ư��Ǥϡ��ᤵ��
|
305
|
-
���⡼�ɤ�ľ�ܥ��ݡ��Ȥ���Ƥ��ʤ����ϥ��ߥ�졼������Ԥ���
|
306
|
-
|
307
|
-
* SDL::OPENGL
|
308
|
-
|
309
|
-
OpenGL�����Ѥ���3D�����ͭ���ˤ��롣
|
310
|
-
���ε�ǽ�����Ѥ���Ȥ��ϡ�((<SDL::Surface>))���̤��������
|
311
|
-
�Ȥ��٤��ǤϤʤ���
|
312
|
-
|
313
|
-
flag�Ϥ��Τۤ��ˤ⤢�롣����˾ܤ����Τ�ɬ�פ������
|
314
|
-
SDL�Υɥ�����ȤƤ���������
|
315
|
-
|
316
|
-
# �� ���ɤΥӥǥ��⡼�ɤǽ����
|
317
|
-
# 16bit�⡼�ɤ���ꤷ���������Ȥ��ʤ����¾�Υ⡼�ɤǤ��
|
318
|
-
screen = SDL.setVideoMode(640, 480, 16 SDL::SWSURFACE|SDL::ANYFORMAT)
|
319
|
-
puts "640x480 at #{screen.bpp} bpp �Υ⡼�ɤ����ꤷ�ޤ���"
|
320
|
-
|
321
|
-
--- SDL.checkVideoMode(w,h,bpp,flags)
|
322
|
-
--- SDL.check_video_mode(w,h,bpp,flags)
|
323
|
-
���ꤵ�줿�ӥǥ��⡼�ɤ����ݡ��Ȥ���Ƥ��뤫�ɤ�����Ĵ�٤롣
|
324
|
-
���ꥵ�����Υ�����ɤ�ʥǥץ��Ǥ⥵�ݡ��Ȥ���Ƥ��ʤ�����
|
325
|
-
0���֤��������Ĥ��Υǥץ��ǻ��ꤵ�줿�����������ݡ��Ȥ���Ƥ���С�
|
326
|
-
�����ǻ��ꤷ����Τ˺Ǥ�ᤤbpp���ͤ��֤����⤷�����ͤ��ӥǥ��⡼��
|
327
|
-
�����ꤹ��ݤ˻��ꤷ����ΤȰ�äƤ�����ϡ�((<SDL.setVideoMode>))��
|
328
|
-
�������뤬�����ꤵ�줿�⡼�ɤϥ���ɥ������ե�����Ȥäƥ��ߥ�졼
|
329
|
-
�Ȥ���뤳�Ȥˤʤ롣
|
330
|
-
|
331
|
-
SDL.checkVideoMode���Ф�������ϡ�((<SDL.setVideoMode>))�ǻ��Ѥ�����
|
332
|
-
��Ʊ���Ǥ��롣
|
333
|
-
|
334
|
-
--- SDL.listModes(flags)
|
335
|
-
--- SDL.list_modes(flags)
|
336
|
-
���Ѳ�ǽ�ʲ����٤��֤���
|
337
|
-
���Ѳ�ǽ�ʲ����٤�¸�ߤ��ʤ��Ȥ���nil�֤����ޤ�����������٤����Ѳ�
|
338
|
-
ǽ�ʤȤ���true���֤������Ѳ�ǽ�ʲ����٤�1�İʾ夢��Ȥ��Ϥ��β����٤�
|
339
|
-
�β��������������β����٤��ͤ������1�İʾ����äƤ���������֤���
|
340
|
-
|
341
|
-
������flag�ϡ�((<SDL.setVideoMode>))�ǻ��Ѥ����Τ�Ʊ���Ǥ��롣
|
342
|
-
|
343
|
-
--- SDL.videoDriverName
|
344
|
-
--- SDL.video_driver_name
|
345
|
-
����������ӥǥ��ɥ饤�С����б�����ʸ������֤�( x11 �� windib �ʤ�)��
|
346
|
-
��������Ƥ��ʤ��ä��ꤷ�����㳰��ȯ�������롣
|
347
|
-
|
348
|
-
# ��
|
349
|
-
SDL.init(SDL::INIT_VIDEO)
|
350
|
-
puts "�ɥ饤�Ф� #{SDL.videoDriverName} �Ǥ�"
|
351
|
-
|
352
|
-
--- SDL.setGamma(redgamma,greengamma,bluegamma)
|
353
|
-
--- SDL.set_gamma(redgamma,greengamma,bluegamma)
|
354
|
-
ɽ���ѤΥ��顼����ؿ������ꤷ�ޤ���
|
355
|
-
����ޤϥ�������Ǥο������뤵�䥳��ȥ饹�Ȥ�Ĵ�ᤷ�ޤ���
|
356
|
-
r,g,b���줾��Υ�����ͤ�1.0��̵Ĵ����Ʊ���ˤʤ�ޤ���
|
357
|
-
���Ի��ˤ�((<SDL::Error>))�㳰��ȯ�������ޤ���
|
358
|
-
|
359
|
-
--- SDL.getGammaRamp
|
360
|
-
--- SDL.get_gamma_ramp
|
361
|
-
������Ѵ��ѤΥơ��֥���֤���
|
362
|
-
�������Ƥ�R,G,B���줾���256�Ĥ������������������Ǥ��롣
|
363
|
-
|
364
|
-
--- SDL.setGammaRamp(table)
|
365
|
-
--- SDL.set_gamma_ramp(table)
|
366
|
-
������Ѵ��ѤΥơ��֥�����ꤹ�롣
|
367
|
-
�ơ��֥�η�����((<SDL.getGammaRamp>))���������Τ�Ʊ����
|
368
|
-
|
369
|
-
--- SDL.autoLock
|
370
|
-
--- SDL.auto_lock
|
371
|
-
--- SDL.autoLock?
|
372
|
-
--- SDL.auto_lock?
|
373
|
-
SGE��ɬ��
|
374
|
-
|
375
|
-
�����ե����Υ��å���ɬ�פʤȤ���ưŪ�˥��å����Ƥ���뤫�ɤ���
|
376
|
-
���֤����ǥե���Ȥ�true��
|
377
|
-
|
378
|
-
����˾ܤ������Ȥ��Τꤿ�����((<SDL::Surface#lock>))�Ƥ���������
|
379
|
-
|
380
|
-
--- SDL.autoLock=(autolocking)
|
381
|
-
--- SDL.auto_lock=(autolocking)
|
382
|
-
--- SDL.autoLockON
|
383
|
-
--- SDL.auto_lock_on
|
384
|
-
--- SDL.autoLockOFF
|
385
|
-
--- SDL.auto_lock_off
|
386
|
-
SGE��ɬ��
|
387
|
-
�����ե����Υ��å���ɬ�פʤȤ���ưŪ�˥��å����Ƥ����褦�����ꤹ�롣
|
388
|
-
|
389
|
-
--- SDL.videoInfo
|
390
|
-
--- SDL.video_info
|
391
|
-
�ӥǥ��ϡ��ɥ������ξ����VideoInfo�Υ������֤���
|
392
|
-
�������Ƥϰʲ����̤ꡣ
|
393
|
-
�����ͤ�ɽ����Τ�true,false�����äƤ��롣
|
394
|
-
��������ˤ��δؿ���Ƥ����硢bpp�ˤϡֺǤ�Ŭ�������ͤ����롣
|
395
|
-
* SDL::VideoInfo#hw_available
|
396
|
-
�ϡ��ɥ����������ե������뤳�Ȥϲ�ǽ���ɤ���
|
397
|
-
* SDL::VideoInfo#wm_available
|
398
|
-
������ɥ��ޥ͡����㤬���ѤǤ��뤫�ɤ���
|
399
|
-
* SDL::VideoInfo#blit_hw
|
400
|
-
�ϡ��ɥ������֤� blit �ϥ�������졼�����ͭ�����ɤ���
|
401
|
-
* SDL::VideoInfo#blit_hw_CC
|
402
|
-
�ϡ��ɥ������֤Υ��顼���� blit �ϥ�������졼�����ͭ�����ɤ���
|
403
|
-
* SDL::VideoInfo#blit_hw_A
|
404
|
-
�ϡ��ɥ������֤Φ� blit �ϥ�������졼�����ͭ�����ɤ���
|
405
|
-
* SDL::VideoInfo#blit_sw
|
406
|
-
���եȥ���������ϡ��ɥ������ؤ� blit �ϥ�������졼�����ͭ�����ɤ���
|
407
|
-
* SDL::VideoInfo#blit_sw_CC
|
408
|
-
���եȥ���������ϡ��ɥ������ؤΥ��顼���� blit �ϥ�������졼�����
|
409
|
-
��ͭ�����ɤ���
|
410
|
-
* SDL::VideoInfo#blit_sw_A
|
411
|
-
���եȥ���������ϡ��ɥ������ؤΦ� blit �ϥ�������졼�����ͭ�����ɤ���
|
412
|
-
* SDL::VideoInfo#blit_fill
|
413
|
-
�������٤��ϥ�������졼�����ͭ�����ɤ���
|
414
|
-
* SDL::VideoInfo#video_mem
|
415
|
-
�ӥǥ������������
|
416
|
-
* SDL::VideoInfo#bpp
|
417
|
-
bpp
|
418
|
-
|
419
|
-
--- SDL.blitSurface(src,srcX,srcY,srcW,srcH,dst,dstX,dstY)
|
420
|
-
--- SDL.blit_surface(src,srcX,srcY,srcW,srcH,dst,dstX,dstY)
|
421
|
-
src�ǻ��ꤵ�줿Surface����dst�ǻ��ꤵ�줿Surface�ؤι�®��blit
|
422
|
-
��Ԥ���
|
423
|
-
|
424
|
-
srcX,srcY,srcW,srcH�ˤ��٤�0����ꤷ������src���Τ�blit���롣
|
425
|
-
|
426
|
-
���Ի��ˤ��㳰SDL::Error�������롣
|
427
|
-
|
428
|
-
���å����������ե������Ф��Ƥ����Ĥ��äƤϤ����ʤ���
|
429
|
-
|
430
|
-
--- SDL.blitSurface2(src,srcRect,dst,dstRect)
|
431
|
-
--- SDL.blit_surface2(src,src_rect,dst,dst_rect)
|
432
|
-
blitSurface2(src,[0,32,32,32],dst,[100,200])
|
433
|
-
�Τ褦�˻Ȥ���
|
434
|
-
�ޤ���srcRect��dstRect�Ȥ��� x,y,z,w�Ȥ���̾���Υ�åɤ�
|
435
|
-
���ĥ��֥������ȤǤ����ΰ����ꤹ�뤳�Ȥ�Ǥ��롣
|
436
|
-
|
437
|
-
srcRect��nil����ꤷ������src���Τ�blit���롣
|
438
|
-
|
439
|
-
--- SDL.rotateXYScaled(src,dst,x,y,angle,xscale,yscale)
|
440
|
-
--- SDL.rotate_xy_scaled(src,dst,x,y,angle,xscale,yscale)
|
441
|
-
SGE��ɬ��
|
442
|
-
|
443
|
-
SGE��sge_rotate_xyscaled�ؿ��Ȥ�src��dst�ν���������ؤ�äƤ��뤳�Ȥ�
|
444
|
-
���դ���褦�ˡ�����2�Ĥδؿ���Ʊ�ͤǤ��롣
|
445
|
-
����ϡ�blitSurface�˹�碌������Ǥ��롣
|
446
|
-
�ޤ������λ��ͤ��ѹ������ǽ�������롣
|
447
|
-
|
448
|
-
�ޤ���ColorKey��̵�뤵��롣
|
449
|
-
|
450
|
-
���Υ�åɤϸŤ����ᤢ�ޤ�Ȥ��٤��ǤϤʤ���
|
451
|
-
((<SDL.transform>))��((<SDL.transformBlit>))��Ȥ��٤��Ǥ��롣
|
452
|
-
|
453
|
-
--- SDL.rotateScaled(src,dst,x,y,angle,scale)
|
454
|
-
--- SDL.rotate_scaled(src,dst,x,y,angle,scale)
|
455
|
-
((<SDL.rotateXYScaled>))��Ʊ�͡�������xscale��yscale���Ȥ��scale�Ǥ����
|
456
|
-
���롣
|
457
|
-
|
458
|
-
--- SDL.rotate(src,dst,x,y,angle)
|
459
|
-
((<SDL.rotateXYScaled>))��Ʊ�͡�������xscale��yscale���Ȥ��1�Ǥ����
|
460
|
-
���롣
|
461
|
-
|
462
|
-
--- SDL.rotateScaledBlit(src,dst,x,y,angle,scale)
|
463
|
-
--- SDL.rotate_scaled_blit(src,dst,x,y,angle,scale)
|
464
|
-
SGE��ɬ��
|
465
|
-
ColorKey��ͭ���Ȥʤ롣
|
466
|
-
((<SDL.rotateBlit>))��Ʊ�ͤǤ��롣
|
467
|
-
|
468
|
-
--- SDL.rotateBlit(src,dst,x,y,angle)
|
469
|
-
--- SDL.rotate_blit(src,dst,x,y,angle)
|
470
|
-
((<SDL.rotateScaledBlit>))��Ʊ�͡�������scale��1�Ǥ���Ȥ��롣
|
471
|
-
|
472
|
-
--- SDL.transform(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
|
473
|
-
SGE��ɬ��
|
474
|
-
��ž�̾���������褹�롣
|
475
|
-
src���Τ�px,py���濴��angle�ٲ�ž��X������xscale�ܡ�Y������yscale�ܤ���
|
476
|
-
px��py��dst��qx��qy�˰��פ���褦�����褹�롣
|
477
|
-
���Υ�åɤ�Color key��̵�뤹�롣
|
478
|
-
flag�ΰ�̣�ϰʲ����̤ꡣ������OR��ȤäƤ�褤��
|
479
|
-
|
480
|
-
* 0
|
481
|
-
|
482
|
-
���̤˲�ž������
|
483
|
-
|
484
|
-
* SDL::TRANSFORM_SAFE
|
485
|
-
|
486
|
-
src��dst�Υե����ޥåȤ���äƤ⤦�ޤ������褦�ˤ��롣¿���٤���
|
487
|
-
|
488
|
-
* SDL::TRANSFORM_AA
|
489
|
-
|
490
|
-
�̾����٤����ߤ�����ɤ��ʤ롣
|
491
|
-
|
492
|
-
* SDL::TRANSFORM_TMAP
|
493
|
-
|
494
|
-
�ƥ������㡼�ޥåԥ���Ѥ��롣�ۤ�ξ����Ϥ䤤�����ߤ������
|
495
|
-
�����ʤ롣px��py��flags��̵�뤵��롣
|
496
|
-
|
497
|
-
--- SDL.transformBlit(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
|
498
|
-
--- SDL.transform_blit(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
|
499
|
-
SGE��ɬ��
|
500
|
-
|
501
|
-
��ž�̾���������褹�롣
|
502
|
-
������((<SDL.transform>))��Ʊ����
|
503
|
-
((<SDL.transform>))�Ȥΰ㤤�Ϥ��Υ�åɤ����顼�����ˤ��
|
504
|
-
ȴ����ͭ���ˤʤ뤳�ȤǤ��롣
|
505
|
-
|
506
|
-
=== SDL::Surface
|
507
|
-
|
508
|
-
�������ݻ����륯�饹�Ǥ���
|
509
|
-
|
510
|
-
==== �����ѡ����饹
|
511
|
-
|
512
|
-
Object
|
513
|
-
|
514
|
-
==== ���饹��å�
|
515
|
-
|
516
|
-
--- SDL::Surface.new(flag,w,h,format)
|
517
|
-
--- SDL::Surface.new(flags,w,h,depth,Rmask,Gmask,Bmask,Amask)
|
518
|
-
������((<SDL::Surface>))�Υ������������롣
|
519
|
-
((<SDL.setVideoMode>))��ƤӤ�������Ǥ������Ѥ��ƤϤʤ�ʤ���
|
520
|
-
|
521
|
-
format�Ȥ��Ƥ�((<SDL::Surface>))�Υ�����Ϳ�������ꤷ��
|
522
|
-
�����ե�����Ʊ��bpp�Υ����ե������������롣
|
523
|
-
|
524
|
-
�ޤ���[RGBA]mask���������ƻ��ꤹ�뤳�Ȥ�Ǥ��롣
|
525
|
-
���ξ��ϡ��ޥ���Υ���ǥ���������դ��Ƥ���������
|
526
|
-
|
527
|
-
flag�ˤϰʲ��Υե饰��OR���ä���Τ�Ϳ���뤳�Ȥ��Ǥ��롣
|
528
|
-
|
529
|
-
* SDL::SWSURFACE
|
530
|
-
|
531
|
-
�����ƥ������˥����ե�����Ȥ롣
|
532
|
-
|
533
|
-
* SDL::HWSURFACE
|
534
|
-
|
535
|
-
�ӥǥ�������˥����ե����������Ȥ��롣
|
536
|
-
|
537
|
-
* SDL::SRCCOLORKEY
|
538
|
-
|
539
|
-
�����ƥ���꤫�ӥǥ�����Τ����ϡ��ɥ������ˤ��Ʃ������ǽ��
|
540
|
-
���ѤǤ���ۤ��˥����ե����������Ȥ��롣
|
541
|
-
|
542
|
-
* SDL::SRCALPHA
|
543
|
-
|
544
|
-
�����ƥ���꤫�ӥǥ�����Τ����ϡ��ɥ������ˤ�륢��ե�������
|
545
|
-
�Ǥ���ۤ��˥����ե����������Ȥ��롣
|
546
|
-
|
547
|
-
--- SDL::Surface.new_from(pixels,w,h,depth,pitch,Rmask,Gmask,Bmask,Amask)
|
548
|
-
Ϳ����줿�ԥ�����ǡ�������((<SDL::Surface>))�Υ�����
|
549
|
-
�������롣
|
550
|
-
|
551
|
-
pixels��String�Υ����Ȥ���Ϳ���롣pitch�ϳƥ������饤���
|
552
|
-
Ĺ��(�Х��ȿ�)�Ǥ���[RGBA]mask��depth������Ū�˻��ꤷ�ʤ����
|
553
|
-
�ʤ�ʤ���
|
554
|
-
|
555
|
-
--- SDL::Surface.loadBMP(filename)
|
556
|
-
--- SDL::Surface.load_bmp(filename)
|
557
|
-
���ꤵ�줿�ե�����̾��Windows BMP�����Υե����뤫��((<SDL::Surface>))
|
558
|
-
�Υ�����������롣
|
559
|
-
�ե����뤬�����ʤ����Υ��顼������������((<SDL::Error>))�㳰�������롣
|
560
|
-
|
561
|
-
--- SDL::Surface.load(filename)
|
562
|
-
SDL_image��ɬ��
|
563
|
-
|
564
|
-
���ꤵ�줿�ե�����̾�β����ե����뤫��((<SDL::Surface>))
|
565
|
-
�Υ�����������롣
|
566
|
-
BMP,PPX,XPM,PCX,GIF,JPEG,PNG,TGA�ʤɤ�����ɤǤ��롣
|
567
|
-
|
568
|
-
==== ��å�
|
569
|
-
|
570
|
-
--- SDL::Surface#saveBMP(filename)
|
571
|
-
--- SDL::Surface#save_bmp(filename)
|
572
|
-
�����ե��������Ƥ���ꤷ��BMP�ե�����˥����֤��롣
|
573
|
-
|
574
|
-
--- SDL::Surface#displayFormat
|
575
|
-
--- SDL::Surface#display_format
|
576
|
-
self��ӥǥ��ե졼��Хåե��Υԥ�����ե����ޥåȤȿ��˹�碌��
|
577
|
-
�����������ե����˥��ԡ������֤���
|
578
|
-
������surface��Ȥ����Ȥˤ�ä�screen�ؤι�®��blit���Ǥ��롣
|
579
|
-
|
580
|
-
���顼�����Ȧ��ͤ��Ф���blit�Υ�������졼���������Ѥ������Τʤ�С�
|
581
|
-
���δؿ��θƤӽФ�����Ω�äƥ��顼�����Ȧ��ͤ������ԤäƤ���
|
582
|
-
ɬ�פ����롣
|
583
|
-
|
584
|
-
--- SDL::Surface#displayFormatAlpha
|
585
|
-
--- SDL::Surface#display_format_alpha
|
586
|
-
�ӥåȤ��ȤΦ��ͤ�ͭ���Ǥ��뤳�Ȥ������
|
587
|
-
((<SDL::Surface#displayFormat>))��Ʊ����
|
588
|
-
|
589
|
-
--- SDL::Surface#setColorKey(flag,key)
|
590
|
-
--- SDL::Surface#set_color_key(flag,key)
|
591
|
-
blit��ǽ�ʥ����ե������Ф��ƥ��顼����(Ʃ���ʥԥ�����)�����ꤹ�롣
|
592
|
-
|
593
|
-
flag��SDL::SRCCOLORKEY����ꤹ��ȡ����Υԥ������blit��src�ˤʤ�
|
594
|
-
�ۤ���Ʃ���ԥ�������Ƥ��뤳�Ȥˤʤ롣
|
595
|
-
�̾�Ϥ��Υե饰��Ȥ���
|
596
|
-
|
597
|
-
flag��SDL::RLEACCEL��OR��Ȥäƻ��ꤹ��ȡ�RLE��Ȥäƹ�®��blit��
|
598
|
-
���褦�Ȥ��롣
|
599
|
-
|
600
|
-
flag��0�ξ��ϡ�color key�ꥢ���롣
|
601
|
-
|
602
|
-
--- SDL::Surface#fillRect(x,y,w,h,color)
|
603
|
-
--- SDL::Surface#fill_rect(x,y,w,h,color)
|
604
|
-
���ꤵ�줿Ĺ�������ΰ��color�Ǥ̤�Ĥ֤���
|
605
|
-
|
606
|
-
--- SDL::Surface#setClipRect(x,y,w,h)
|
607
|
-
--- SDL::Surface#set_clip_rect(x,y,w,h)
|
608
|
-
����åԥ�Ĺ��������ꤹ�롣
|
609
|
-
((<SDL.blitSurface>)),((<SDL::Surface#put>))���Ǥ��Υ�����
|
610
|
-
���褷�褦�Ȥ����Ȥ�������ǻ��ꤷ��Ĺ���������Τߤ����褵��롣
|
611
|
-
|
612
|
-
--- SDL::Surface#getClipRect
|
613
|
-
--- SDL::Surface#get_clip_rect
|
614
|
-
����åԥ����ꤵ��Ƥ����ϰϤ��֤���
|
615
|
-
�֤��ͤ�x,y,w,h��4�Ĥ��ͤ��������Ǥ��롣
|
616
|
-
|
617
|
-
--- SDL::Surface#setAlpha(flag,alpha)
|
618
|
-
--- SDL::Surface#set_alpha(flag,alpha)
|
619
|
-
����ե�������롣
|
620
|
-
flag��SDL::SRCALPHA�����ꤹ�뤳�Ȥǥ���ե���ͭ���ˤʤ롣
|
621
|
-
SDL::RLEACCEL��OR��Ȥäƻ��ꤹ���RLE�ˤ���®����ͭ���ˤʤ롣
|
622
|
-
alpha�ϥ���ե��ͤ��̣����0��Ʃ����255���̾��Ʊ���Ȥʤ롣
|
623
|
-
|
624
|
-
flag��0����ꤹ��Х���ե���̵���Ȥʤ롣
|
625
|
-
|
626
|
-
--- SDL::Surface#h
|
627
|
-
self�ι⤵���֤���
|
628
|
-
|
629
|
-
--- SDL::Surface#w
|
630
|
-
self�β������֤���
|
631
|
-
|
632
|
-
--- SDL::Surface#format
|
633
|
-
self��pixel format���֤���
|
634
|
-
�ܤ�����((<SDL::PixelFormat>))�ȡ�
|
635
|
-
|
636
|
-
--- SDL::Surface#put(image,x,y)
|
637
|
-
self�ΰ���(x,y)��image�����褹�롣
|
638
|
-
((<SDL.blitSurface>))�Ǽ�������Ƥ��롣
|
639
|
-
|
640
|
-
--- SDL::Surface#copyRect(x,y,w,h)
|
641
|
-
--- SDL::Surface#copy_rect(x,y,w,h)
|
642
|
-
self��(x,y,w,h)��Ĺ��������ʬ��ʣ�����������ե�������������
|
643
|
-
������֤�
|
644
|
-
|
645
|
-
--- SDL::Surface#lock
|
646
|
-
getPixel,setPixel��drawLine���Υ�åɤ�Ȥä����褹��
|
647
|
-
����ν����롣
|
648
|
-
|
649
|
-
((<SDL::Surface#mustLock?>))��true���֤��������Τߤ������
|
650
|
-
��ɬ�פȤʤ롣
|
651
|
-
|
652
|
-
((<SDL::Surface#unlock>))��ƤӤ����ޤǡ�¾�饤�֥��θƤӤ�����
|
653
|
-
OS���Ф������ƤϤʤ�ʤ���
|
654
|
-
|
655
|
-
((<SDL.autoLock>))��true���֤��Ȥ��ϥ饤�֥�꤬��ưŪ�ˤ�������
|
656
|
-
���Ƥ����ΤǤ��Υ�åɤ�ƤӤ���ɬ�פϤʤ���
|
657
|
-
|
658
|
-
--- SDL::Surface#unlock
|
659
|
-
((<SDL::Surface#lock>))�ǥ��å������Τ������롣
|
660
|
-
|
661
|
-
--- SDL::Surface#mustLock?
|
662
|
-
--- SDL::Surface#must_lock?
|
663
|
-
((<SDL::Surface#lock>))��ƤӤ���ɬ�פ�����Ȥ���true��
|
664
|
-
�ʤ��Ȥ���false���֤���
|
665
|
-
|
666
|
-
--- SDL::Surface#getPixel(x,y)
|
667
|
-
--- SDL::Surface#get_pixel(x,y)
|
668
|
-
--- SDL::Surface#[](x,y)
|
669
|
-
SGE��ɬ�� ���å���ɬ��
|
670
|
-
|
671
|
-
x,y�ΰ��֤Υԥ�������ͤ��֤���
|
672
|
-
|
673
|
-
--- SDL::Surface#putPixel(x,y,color)
|
674
|
-
--- SDL::Surface#put_pixel(x,y,color)
|
675
|
-
--- SDL::Surface#[]=(x,y,color)
|
676
|
-
SGE��ɬ�� ���å���ɬ��
|
677
|
-
|
678
|
-
x,y�ΰ��֤Υԥ�������ͤ�pixel�ˤ��롣
|
679
|
-
�Ĥޤꡢx,y�ΰ��֤�pixel�ο��������Ǥġ�
|
680
|
-
|
681
|
-
--- SDL::Surface#drawLine(x1,y1,x2,y2,color)
|
682
|
-
--- SDL::Surface#draw_line(x1,y1,x2,y2,color)
|
683
|
-
SGE��ɬ�� ���å���ɬ��
|
684
|
-
|
685
|
-
����color������(x1,y1)����(x2,y2)�ޤ�������
|
686
|
-
|
687
|
-
--- SDL::Surface#drawRect(x,y,w,h,color)
|
688
|
-
--- SDL::Surface#draw_rect(x,y,w,h,color)
|
689
|
-
SGE��ɬ�� ���å���ɬ��
|
690
|
-
|
691
|
-
����color��Ĺ��������������Ϥ̤�Ĥ֤��ʤ���
|
692
|
-
|
693
|
-
--- SDL::Surface#drawCircle(x,y,r,color)
|
694
|
-
--- SDL::Surface#draw_circle(x,y,r,color)
|
695
|
-
SGE��ɬ�� ���å���ɬ��
|
696
|
-
|
697
|
-
����color�αߤ���������Ϥ̤�Ĥ֤��ʤ���
|
698
|
-
|
699
|
-
--- SDL::Surface#drawFilledCircle(x,y,r,color)
|
700
|
-
--- SDL::Surface#draw_filled_circle(x,y,r,color)
|
701
|
-
SGE��ɬ�� ���å���ɬ��
|
702
|
-
|
703
|
-
����color�αߤ����������̤�Ĥ֤���
|
704
|
-
|
705
|
-
--- SDL::Surface#drawEllipse(x,y,rx,ry,color)
|
706
|
-
--- SDL::Surface#draw_ellipse(x,y,rx,ry,color)
|
707
|
-
SGE��ɬ�� ���å���ɬ��
|
708
|
-
|
709
|
-
����color���ʱߤ���������Ϥ̤�Ĥ֤��ʤ���
|
710
|
-
|
711
|
-
--- SDL::Surface#drawFilledEllipse(x,y,rx,ry,color)
|
712
|
-
--- SDL::Surface#draw_filled_ellipse(x,y,rx,ry,color)
|
713
|
-
SGE��ɬ�� ���å���ɬ��
|
714
|
-
|
715
|
-
����color���ʱߤ����������̤�Ĥ֤�����
|
716
|
-
|
717
|
-
--- SDL::Surface#drawEllispe(x,y,rx,ry,color)
|
718
|
-
--- SDL::Surface#draw_ellispe(x,y,rx,ry,color)
|
719
|
-
�ĤŤ��ְ㤨�Ƥ������Ȥ�ʤ��褦�ˡ�
|
720
|
-
|
721
|
-
--- SDL::Surface#drawFilledEllispe(x,y,rx,ry,color)
|
722
|
-
--- SDL::Surface#draw_filled_ellispe(x,y,rx,ry,color)
|
723
|
-
�ĤŤ��ְ㤨�Ƥ������Ȥ�ʤ��褦�ˡ�
|
724
|
-
|
725
|
-
--- SDL::Surface#drawAALine(x1,y1,x2,y2,color)
|
726
|
-
--- SDL::Surface#draw_aa_line(x1,y1,x2,y2,color)
|
727
|
-
SGE��ɬ�� ���å���ɬ��
|
728
|
-
|
729
|
-
����color�Υ�������ꥢ����������(x1,y1)����(x2,y2)�ޤ�������
|
730
|
-
|
731
|
-
--- SDL::Surface#drawAACircle(x,y,r,color)
|
732
|
-
--- SDL::Surface#draw_aa_circle(x,y,r,color)
|
733
|
-
SGE��ɬ�� ���å���ɬ��
|
734
|
-
|
735
|
-
����color�Υ�������ꥢ�������ߤ�������
|
736
|
-
|
737
|
-
--- SDL::Surface#drawAAFilledCircle(x,y,r,color)
|
738
|
-
--- SDL::Surface#draw_aa_filled_circle(x,y,r,color)
|
739
|
-
SGE��ɬ�� ���å���ɬ��
|
740
|
-
|
741
|
-
����color�Υ�������ꥢ�������ߤ����������̤�Ĥ֤���
|
742
|
-
|
743
|
-
--- SDL::Surface#drawAAEllipse(x,y,rx,ry,color)
|
744
|
-
--- SDL::Surface#draw_aa_ellipse(x,y,rx,ry,color)
|
745
|
-
SGE��ɬ�� ���å���ɬ��
|
746
|
-
|
747
|
-
����color�Υ�������ꥢ�������ʱߤ�������
|
748
|
-
|
749
|
-
--- SDL::Surface#drawLineAlpha(x1,y1,x2,y2,color,alpha)
|
750
|
-
--- SDL::Surface#draw_line_alpha(x1,y1,x2,y2,color,alpha)
|
751
|
-
SGE��ɬ�� ���å���ɬ��
|
752
|
-
|
753
|
-
����ե��֥��ɤ���ľ����������
|
754
|
-
|
755
|
-
--- SDL::Surface#drawRectAlpha(x,y,w,h,color,alpha)
|
756
|
-
--- SDL::Surface#draw_rect_alpha(x,y,w,h,color,alpha)
|
757
|
-
SGE��ɬ�� ���å���ɬ��
|
758
|
-
|
759
|
-
����ե��֥��ɤ���Ĺ������������
|
760
|
-
|
761
|
-
--- SDL::Surface#drawFilledRectAlpha(x,y,w,h,color,alpha)
|
762
|
-
--- SDL::Surface#draw_filled_rect_alpha(x,y,w,h,color,alpha)
|
763
|
-
SGE��ɬ�� ���å���ɬ��
|
764
|
-
|
765
|
-
����ե��֥��ɤ���Ĺ���������������̤�Ĥ֤���
|
766
|
-
|
767
|
-
--- SDL::Surface#drawCircleAlpha(x,y,r,color,alpha)
|
768
|
-
--- SDL::Surface#draw_circle_alpha(x,y,r,color,alpha)
|
769
|
-
SGE��ɬ�� ���å���ɬ��
|
770
|
-
|
771
|
-
����ե��֥��ɤ����ߤ�������
|
772
|
-
|
773
|
-
--- SDL::Surface#drawFilledCircleAlpha(x,y,r,color,alpha)
|
774
|
-
--- SDL::Surface#draw_filled_circle_alpha(x,y,r,color,alpha)
|
775
|
-
SGE��ɬ�� ���å���ɬ��
|
776
|
-
|
777
|
-
����ե��֥��ɤ����ߤ����������̤�Ĥ֤���
|
778
|
-
|
779
|
-
--- SDL::Surface#drawEllipseAlpha(x,y,rx,ry,color,alpha)
|
780
|
-
--- SDL::Surface#draw_ellipse_alpha(x,y,rx,ry,color,alpha)
|
781
|
-
SGE��ɬ�� ���å���ɬ��
|
782
|
-
|
783
|
-
����ե��֥��ɤ����ʱߤ�������
|
784
|
-
|
785
|
-
--- SDL::Surface#drawFilledEllipseAlpha(x,y,rx,ry,color,alpha)
|
786
|
-
--- SDL::Surface#draw_filled_ellipse_alpha(x,y,rx,ry,color,alpha)
|
787
|
-
SGE��ɬ�� ���å���ɬ��
|
788
|
-
|
789
|
-
����ե��֥��ɤ����ʱߤ����������̤�Ĥ֤���
|
790
|
-
|
791
|
-
--- SDL::Surface#drawAALineAlpha(x1,y1,x2,y2,color,alpha)
|
792
|
-
--- SDL::Surface#draw_aa_line_alpha(x1,y1,x2,y2,color,alpha)
|
793
|
-
SGE��ɬ�� ���å���ɬ��
|
794
|
-
|
795
|
-
����ե��֥��ɡ���������ꥢ������ľ����������
|
796
|
-
|
797
|
-
--- SDL::Surface#drawAACircleAlpha(x,y,r,color,alpha)
|
798
|
-
--- SDL::Surface#draw_aa_circle_alpha(x,y,r,color,alpha)
|
799
|
-
SGE��ɬ�� ���å���ɬ��
|
800
|
-
|
801
|
-
����ե��֥��ɡ���������ꥢ�������ߤ�������
|
802
|
-
|
803
|
-
--- SDL::Surface#drawAAEllipseAlpha(x,y,rx,ry,color,alpha)
|
804
|
-
--- SDL::Surface#draw_aa_ellipse_alpha(x,y,rx,ry,color,alpha)
|
805
|
-
SGE��ɬ�� ���å���ɬ��
|
806
|
-
|
807
|
-
����ե��֥��ɡ���������ꥢ�������ʱߤ�������
|
808
|
-
|
809
|
-
--- SDL::Surface#drawBezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color)
|
810
|
-
--- SDL::Surface#draw_bezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color)
|
811
|
-
SGE��ɬ�� ���å���ɬ��
|
812
|
-
|
813
|
-
(x1,y1)����(x4,y4)�ؤΥ٥���������(x2,y2),(x3,y3)��ȥ�����
|
814
|
-
�ݥ���ȤȤ���color�ǻ��ꤷ������������level��4����7���餤�����̡�
|
815
|
-
|
816
|
-
--- SDL::Surface#drawAABezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color)
|
817
|
-
--- SDL::Surface#draw_aa_bezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color)
|
818
|
-
SGE��ɬ�� ���å���ɬ��
|
819
|
-
|
820
|
-
(x1,y1)����(x4,y4)�ؤΥ���������ꥢ�������٥���������(x2,y2),
|
821
|
-
(x3,y3)��ȥ�����ݥ���ȤȤ���color�ǻ��ꤷ������������
|
822
|
-
level��4����7���餤�����̡�
|
823
|
-
|
824
|
-
--- SDL::Surface#drawBezierAlpha(x1,y1,x2,y2,x3,y3,x4,y4,level,color,alpha)
|
825
|
-
--- SDL::Surface#draw_bezier_alpha(x1,y1,x2,y2,x3,y3,x4,y4,level,color,alpha)
|
826
|
-
SGE��ɬ�� ���å���ɬ��
|
827
|
-
|
828
|
-
(x1,y1)����(x4,y4)�ؤΥ٥���������(x2,y2),
|
829
|
-
(x3,y3)��ȥ�����ݥ���ȤȤ���color�ǻ��ꤷ������alpha�ǻ��ꤷ��
|
830
|
-
����ե��ͤ�������level��4����7���餤�����̡�
|
831
|
-
|
832
|
-
--- SDL::Surface#drawAABezierAlpha(x1,y1,x2,y2,x3,y3,x4,y4,level,color,alpha)
|
833
|
-
--- SDL::Surface#draw_aa_bezier_alpha(x1,y1,x2,y2,x3,y3,x4,y4,level,color,alpha)
|
834
|
-
SGE��ɬ�� ���å���ɬ��
|
835
|
-
|
836
|
-
(x1,y1)����(x4,y4)�ؤΥ���������ꥢ�������٥���������(x2,y2),
|
837
|
-
(x3,y3)��ȥ�����ݥ���ȤȤ���color�ǻ��ꤷ������alpha�ǻ��ꤷ��
|
838
|
-
����ե��ͤ�������level��4����7���餤�����̡�
|
839
|
-
|
840
|
-
--- SDL::Surface#rotateScaledSurface(angle,scale,bgcolor)
|
841
|
-
--- SDL::Surface#rotate_scaled_surface(angle,scale,bgcolor)
|
842
|
-
SGE��ɬ��
|
843
|
-
|
844
|
-
����ϡ�self��angle�ٷ�����scale�ܤ������������Surface�Υ�����
|
845
|
-
���������åɤǤ��롣��ž�ˤ�ä��������֤�bgcolor�������롣
|
846
|
-
|
847
|
-
���Υ�åɤϸŤ����ᤢ�ޤ�Ȥ��٤��ǤϤʤ���
|
848
|
-
((<SDL::Surface#transformSurface>))��Ȥä��ۤ����褤��
|
849
|
-
|
850
|
-
--- SDL::Surface#rotateSurface(angle,bgcolor)
|
851
|
-
--- SDL::Surface#rotate_surface(angle,bgcolor)
|
852
|
-
((<SDL::Surface#rotateScaledSurface>))��Ʊ�͡�
|
853
|
-
������scale��1�Ȥ������Ȥˤʤ롣
|
854
|
-
|
855
|
-
--- SDL::Surface#transformSurface(bgcolor,angle,xscale,yscale,flags)
|
856
|
-
--- SDL::Surface#transform_surface(bgcolor,angle,xscale,yscale,flags)
|
857
|
-
self��angle�ٲ�ž����X������xscale�ܡ�Y������yscale�ܤ��ơ�������
|
858
|
-
�����ޤ�bgcolor���ɤ�Ĥ֤������������DSL::Surface�Υ�����
|
859
|
-
�����������åɡ�
|
860
|
-
flag��((<SDL.transform>))��Ʊ����
|
861
|
-
|
862
|
-
--- SDL::Surface#mapRGB(r,g,b)
|
863
|
-
--- SDL::Surface#map_rgb(r,g,b)
|
864
|
-
self�Υ����ե����Υե����ޥå�(bpp�ʤ�)�˽��ä�r,g,b�ˤ�ä�
|
865
|
-
����蘆��뿧���б�����pixel���ͤ��֤���
|
866
|
-
|
867
|
-
--- SDL::Surface#mapRGBA(r,g,b,a)
|
868
|
-
--- SDL::Surface#map_rgba(r,g,b,a)
|
869
|
-
((<SDL::Surface#mapRGB>))��Ʊ�͡�����������ե��ͤ�ޤ�뤳�Ȥ��Ǥ��롣
|
870
|
-
|
871
|
-
--- SDL::Surface#getRGB(pixel)
|
872
|
-
--- SDL::Surface#get_rgb(pixel)
|
873
|
-
((<SDL::Surface#mapRGB>))�ȵդ��Ѵ��롣�֤��ͤ� [r,g,b]
|
874
|
-
�Ȥ������Ƥ�������֤���
|
875
|
-
|
876
|
-
--- SDL::Surface#getRGBA(pixel)
|
877
|
-
--- SDL::Surface#get_rgba(pixel)
|
878
|
-
((<SDL::Surface#getRGB>))��Ʊ�͡��������֤��ͤ˥���ե���ޤ�Ǥ��롣
|
879
|
-
�֤��ͤ�[r,g,b,a]�Ȥ������Ƥ�����Ǥ��롣
|
880
|
-
|
881
|
-
--- SDL::Surface#bpp
|
882
|
-
�����ե����Υե����ޥåȤ�1�ԥ����뤢����Υӥåȿ����֤���
|
883
|
-
|
884
|
-
--- SDL::Surface#colorkey
|
885
|
-
�����ե��������ꤵ�줿���顼�������ͤ��֤���
|
886
|
-
|
887
|
-
--- SDL::Surface#alpha
|
888
|
-
�����ե��������ꤵ�줿����ե��ͤ��֤���
|
889
|
-
|
890
|
-
--- SDL::Surface#flags
|
891
|
-
�����ե��������ꤵ�줿�ե饰���֤���
|
892
|
-
|
893
|
-
--- SDL::Surface#Rmask
|
894
|
-
--- SDL::Surface#Gmask
|
895
|
-
--- SDL::Surface#Bmask
|
896
|
-
--- SDL::Surface#Amask
|
897
|
-
�����ե�����[RGBA]mask���֤���
|
898
|
-
|
899
|
-
--- SDL::Surface#pixels
|
900
|
-
�����ե����Υ��ꥤ�����ʸ����Ȥ����֤���
|
901
|
-
|
902
|
-
--- SDL::Surface#setPalette(flag,colors,firstcolor)
|
903
|
-
--- SDL::Surface#set_palette(flag,colors,firstcolor)
|
904
|
-
8bpp�Υ����ե����˥ѥ�åȤ����ꤹ�롣
|
905
|
-
|
906
|
-
((<SDL.setVideoMode>))��flag��SDL::HWPALETTE��bpp��8����ꤷ������
|
907
|
-
��������ե����ˤϡ�2�ĤΥѥ�åȤ����롣�����������ѥ�åȤ�
|
908
|
-
((<SDL.blitSurface>))�ʤɤDz�����ž������Ȥ����Ѥ����롣
|
909
|
-
¾����ʪ���ѥ�åȤǡ��ºݤ˲��̤�ɽ�������Ȥ��ο�����ꤹ�롣
|
910
|
-
|
911
|
-
flag�� SDL::LOGPAL����ꤹ��������ѥ�åȤ�SDL::PHYSPAL����ꤹ���
|
912
|
-
ʪ���ѥ�åȤ��ѹ����롣ξ����OR����ȡ�ξ���ѹ����롣
|
913
|
-
|
914
|
-
�ºݤΥѥ�åȤ��ͤ�����λ����ϰʲ����̤�Ǥ��롣
|
915
|
-
0����255�Τ���X����Y�ޤǤ��ѹ��������Ȥ��롣
|
916
|
-
�ޤ�colors�ˤ�Y-X+1�����Ǥ�����������ꤹ�롣
|
917
|
-
���γơ������Ǥ�3�Ĥ����Ǥ���ä����������롣
|
918
|
-
����ˤ�r,g,b���ͤ����쿧����ꤹ�롣������firstcolor�ˤ�X����ꤹ�롣
|
919
|
-
|
920
|
-
�ѥ�åȤ��ѹ������������Ȥ���true�����Ԥ����Ȥ���false���֤���
|
921
|
-
|
922
|
-
--- SDL::Surface#setColors(colors,firstcolor)
|
923
|
-
--- SDL::Surface#set_colors(colors,firstcolor)
|
924
|
-
((<SDL::Surface#setColors>))��flag��SDL::LOGPAL|SDL::PHYSPAL�����
|
925
|
-
����Τ�Ʊ����
|
926
|
-
|
927
|
-
--- SDL::Surface#getPalette
|
928
|
-
--- SDL::Surface#get_palette
|
929
|
-
�ѥ�åȤ�������֤����������Ƥϰʲ����ͤˤʤäƤ��롣
|
930
|
-
[ [r0,g0,b0],[r1,g1,b1], ... ,[r255,g255,b255] ]
|
931
|
-
�����ե������ѥ�åȤ���äƤ��ʤ��Ȥ���nil���֤���
|
932
|
-
|
933
|
-
--- SDL::Surface#makeCollisionMap
|
934
|
-
SGE��ɬ��
|
935
|
-
|
936
|
-
collision map ���������롣 ���餫����((<SDL::Surface#setColorKey>))
|
937
|
-
��Ƥ�Ǥ���ɬ�פ����롣((<SDL::Surface#setColorKey>))�����ꤵ�줿
|
938
|
-
��Ʃ����ʬ������Ƚ������Ѥ���롣
|
939
|
-
|
940
|
-
((<SDL::CollisionMap>))�Υ������֤���
|
941
|
-
|
942
|
-
|
943
|
-
=== SDL::Screen
|
944
|
-
|
945
|
-
�����ˤ������ޤ줿���������̤�ɽ������롣
|
946
|
-
���Υ��饹�Ϥ�����Ĥ��������Ǥ��ʤ��褦�ˤʤäƤ��ơ�
|
947
|
-
((<SDL.setVideoMode>))�ˤ�äƤΤ���������롣
|
948
|
-
�ºݤˤϡ����Τ褦�ʥ��饹��¸�ߤ�����((<SDL::Surface>))�˰ʲ����ð�
|
949
|
-
��åɤ��ɲä������֥������ȤǤ��롣
|
950
|
-
|
951
|
-
==== �����ѡ����饹
|
952
|
-
|
953
|
-
((<SDL::Surface>))
|
954
|
-
|
955
|
-
==== ���饹��å�
|
956
|
-
|
957
|
-
|
958
|
-
==== ��å�
|
959
|
-
|
960
|
-
--- SDL::Screen#updateRect(x,y,w,h)
|
961
|
-
--- SDL::Screen#update_rect(x,y,w,h)
|
962
|
-
���δؿ���ƤӽФ��ȡ�Ϳ����줿���̾�λ��ꤵ�줿Ĺ�����ΰ�Υꥹ�Ȥ�
|
963
|
-
�μ¤˹�������롣
|
964
|
-
x��y��w��h�����٤�0�ξ�硢�����̤����롣���̤����å�����Ƥ�
|
965
|
-
��Ȥ��ˤϤ��δؿ���ƤӽФ��ʤ��褦�ˤ��롣
|
966
|
-
|
967
|
-
--- SDL::Screen#flip
|
968
|
-
���֥�Хåե��ݡ��Ȥ��Ƥ���ϡ��ɥ�������Ǥϡ����δؿ���
|
969
|
-
�Хåե��θ��ᤷ���֤롣�ϡ��ɥ������ˤ�äƼ��ο�ľ�������֤ޤ�
|
970
|
-
�ԤäƤ��顢���Υӥǥ������ե����ؤ�blit����å����θƤӽФ����֤���
|
971
|
-
�˥ӥǥ��Хåե��θ��Ԥ��롣���֥�Хåե��ݡ��Ȥ��ʤ�
|
972
|
-
�ϡ��ɥ�������Ǥϡ����θƤӽФ���((<SDL::Screen#updateRect>))(0,0,0,0)
|
973
|
-
�Ȥ��Ƥ���Τ�Ʊ���Ǥ��롣���Υ�åɤ���Ѥ��ƥϡ��ɥ������ˤ����̤�
|
974
|
-
��Ԥ�����ˤϡ�((<SDL.setVideoMode>))�ΰ�����DOUBLEBUF�ե饰����
|
975
|
-
�ꤷ�Ƥ������Ȥ�ɬ�פǤ��롣
|
976
|
-
|
977
|
-
=== SDL::PixelFormat
|
978
|
-
|
979
|
-
���Υ��饹�ε�ǽ�Ϥ��٤�((<SDL::Surface>))�ˤ��Ĥ��줿�����������Ѥ����ۤ���
|
980
|
-
�褤�����Υ��饹�ϸߴ����Τ���˻Ĥ��Ƥ��롣
|
981
|
-
|
982
|
-
SDL_PixelFormat�Υ�åѡ����饹��
|
983
|
-
((<SDL::Surface#format>))�Ǽ����Ǥ��롣
|
984
|
-
|
985
|
-
SDL�Ǥϡ�16bit color��surface��32bit��surface�Ȥ����褦��ʣ���β����η�����
|
986
|
-
��¸�Ǥ��롣��äƤ��β��������뤿�ᡢ���η����˴ؤ������
|
987
|
-
ɬ�פȤʤ롣PixelFormat�Υ�����ɽ���Ƥ����ΤϤ���Ǥ��롣
|
988
|
-
|
989
|
-
�̾��ɽ������ˤ�r,g,b���ͤ��Ȥ��뤬�������surface�����������˽��ä�
|
990
|
-
�ҤȤĤ��ͤˤ��뤿��ˤ�����Ѥ��롣�դ��Ѵ���Ǥ��롣
|
991
|
-
|
992
|
-
���Υ饤�֥����ǤϤ���ˤ�äƻ��ꤵ�줿�ͤ������ƿ�����ꤹ�롣
|
993
|
-
|
994
|
-
�ޤ���������Ѥ��ƿ���ɽ�����Ȥ�Ǥ��롣����� r,g,b ���ͤ�
|
995
|
-
[r,g,b]��ɽ����ΤǤ��롣
|
996
|
-
|
997
|
-
==== �����ѡ����饹
|
998
|
-
|
999
|
-
Object
|
1000
|
-
|
1001
|
-
==== ���饹��å�
|
1002
|
-
|
1003
|
-
�ʤ�
|
1004
|
-
|
1005
|
-
==== ��å�
|
1006
|
-
|
1007
|
-
--- SDL::PixelFormat#mapRGB(r,g,b)
|
1008
|
-
self�Υե����ޥåȤ˽��ä�r,g,b�ˤ�äƤ���蘆��뿧���б�����
|
1009
|
-
pixel���ͤ��֤���
|
1010
|
-
|
1011
|
-
--- SDL::PixelFormat#mapRGBA(r,g,b,a)
|
1012
|
-
((<SDL::PixelFormat#mapRGB>))��Ʊ�͡�����������ե��ͤ�ޤ�뤳�Ȥ��Ǥ��롣
|
1013
|
-
|
1014
|
-
--- SDL::PixelFormat#getRGB(pixel)
|
1015
|
-
((<SDL::PixelFormat#mapRGB>))�ȵդ��Ѵ��롣�֤��ͤ� [r,g,b]
|
1016
|
-
�Ȥ������Ƥ�������֤���
|
1017
|
-
|
1018
|
-
--- SDL::PixelFormat#getRGBA(pixel)
|
1019
|
-
((<SDL::PixelFormat#getRGB>))��Ʊ�͡��������֤��ͤ˥���ե���ޤ�Ǥ��롣
|
1020
|
-
�֤��ͤ�[r,g,b,a]�Ȥ������Ƥ�����Ǥ��롣
|
1021
|
-
|
1022
|
-
--- SDL::PixelFormat#bpp
|
1023
|
-
�ե����ޥåȤ�1�ԥ����뤢����Υӥåȿ����֤���
|
1024
|
-
|
1025
|
-
--- SDL::PixelFormat#colorkey
|
1026
|
-
Not documented yet
|
1027
|
-
|
1028
|
-
--- SDL::PixelFormat#alpha
|
1029
|
-
Not documented yet
|
1030
|
-
|
1031
|
-
=== SDL::CollisionMap
|
1032
|
-
|
1033
|
-
SGE��ɬ��
|
1034
|
-
|
1035
|
-
1�ɥåȤ��Ȥξ���Ƚ��뤿��ξ����ɽ�魯���饹��
|
1036
|
-
����Ǥդ��Ĥβ������ŤʤäƤ��뤫�ɤ������ñ��Ƚ��Ǥ��롣
|
1037
|
-
|
1038
|
-
((<SDL::Surface#makeCollisionMap>)) �ˤ�äƤΤߥ����������롣
|
1039
|
-
|
1040
|
-
==== ���饹��å�
|
1041
|
-
|
1042
|
-
--- SDL::CollisionMap#boundingBoxCheck(x1, y1, w1, h1, x2, y2, w2, h2)
|
1043
|
-
�դ��Ĥ�Ĺ�������ŤʤäƤ��뤫�ɤ�����Ƚ�ꤷ���ŤʤäƤ����
|
1044
|
-
�����ʤ���е����֤���
|
1045
|
-
|
1046
|
-
==== method
|
1047
|
-
|
1048
|
-
--- SDL::CollisionMap#collisionCheck(x1, y1, collisionMap, x2, y2)
|
1049
|
-
self �� (x1,y1) �����褵�졢collisionMap�� (x2,y2) �����褵�줿
|
1050
|
-
�Ȥ����Ȥ������Τդ��Ĥβ�������Ʃ����ʬ���Ťʤ뤫�ɤ�����
|
1051
|
-
Ƚ�ꤹ�롣
|
1052
|
-
|
1053
|
-
�����Ǽ�ưŪ��((<SDL::CollisionMap#boundingBoxCheck>))��Ƥ֡�
|
1054
|
-
|
1055
|
-
--- SDL::CollisionMap#boundingBoxCheck(x1, y1, collisionMap, x2, y2)
|
1056
|
-
�դ��Ĥ�Ĺ�������ŤʤäƤ��뤫�ɤ�����Ƚ�ꤹ�롣
|
1057
|
-
|
1058
|
-
--- SDL::CollisionMap#clear(x1, y1, w, h)
|
1059
|
-
���ꤷ��Ĺ��������ʬ��Ƚ��ʤ��ξ��֤ˤ��롣
|
1060
|
-
|
1061
|
-
--- SDL::CollisionMap#set(x1, y1, w, h)
|
1062
|
-
���ꤷ��Ĺ��������ʬ�٤�Ƚ�ꤢ��ξ��֤ˤ��롣
|
1063
|
-
|
1064
|
-
== Event��Ϣ
|
1065
|
-
|
1066
|
-
=== SDL::Event
|
1067
|
-
|
1068
|
-
���٥�Ȥ�Ȥꤢ�Ĥ������饹
|
1069
|
-
|
1070
|
-
==== �����ѡ����饹
|
1071
|
-
|
1072
|
-
Object
|
1073
|
-
|
1074
|
-
==== ���饹��å�
|
1075
|
-
|
1076
|
-
--- SDL::Event.new
|
1077
|
-
������((<SDL::Event>))�Υ��֥������Ȥ��������롣
|
1078
|
-
|
1079
|
-
--- SDL::Event.appState
|
1080
|
-
--- SDL::Event.app_state
|
1081
|
-
���ߤΥ��ץꥱ�������ξ��֤��֤������ͤϰʲ����ͤ�OR��Ȥä���Ρ�
|
1082
|
-
SDL::Event::APPMOUSEFOCUS
|
1083
|
-
SDL::Event::APPINPUTFOCUS
|
1084
|
-
SDL::Event::APPACTIVE
|
1085
|
-
|
1086
|
-
--- SDL::Event.enableUNICODE
|
1087
|
-
--- SDL::Event.enable_unicode
|
1088
|
-
���٥�Ƚ������˥������Ϥ���UCS�Ǥ�ɽ�����������뵡ǽ��ͭ���ˤ��롣
|
1089
|
-
�ǥե���ȤǤ�̵���ˤʤäƤ��롣
|
1090
|
-
SDLSKK�ε�ǽ�����Ѥ���Ȥ��ˤϤ����ͭ���ˤ���ɬ�פ����롣
|
1091
|
-
|
1092
|
-
--- SDL::Event.disableUNICODE
|
1093
|
-
--- SDL::Event.disable_unicode
|
1094
|
-
���٥�Ƚ������˥������Ϥ���UCS�Ǥ�ɽ�����������뵡ǽ��̵���ˤ��롣
|
1095
|
-
|
1096
|
-
--- SDL::Event.enableUNICODE?
|
1097
|
-
--- SDL::Event.enable_unicode?
|
1098
|
-
���٥�Ƚ������˥������Ϥ���UCS�Ǥ�ɽ�����������뵡ǽ��ͭ���Ǥ��뤫
|
1099
|
-
�ɤ������֤���
|
1100
|
-
|
1101
|
-
==== ��å�
|
1102
|
-
|
1103
|
-
--- SDL::Event#poll
|
1104
|
-
���ߥ��٥�ȥ��塼��ǽ����Ԥ����Ƥ��륤�٥�Ȥ��ʤ�����١�
|
1105
|
-
�ҤȤĤǤ⤢���1�ҤȤĤ�ʤ����0���֤���
|
1106
|
-
�ޤ��������Ԥ��Ƥ��륤�٥�Ȥ�����С����ξ����self�˳�Ǽ���롣
|
1107
|
-
|
1108
|
-
--- SDL::Event#wait
|
1109
|
-
���Υ��٥�Ȥ����ޤ��Ԥ�������1�ޤ����٥�Ȥ��ԤĴ֤˥��顼
|
1110
|
-
������������0���֤��������Ƥ��ξ����self�˳�Ǽ���롣
|
1111
|
-
|
1112
|
-
--- SDL::Event#type
|
1113
|
-
��Ǽ����Ƥ��륤�٥�Ȥ������ʤ����Τ�ΤǤ��뤫���֤���
|
1114
|
-
���μ���ϰʲ�������Ǽ�����롣
|
1115
|
-
|
1116
|
-
SDL::Event::ACTIVEEVENT
|
1117
|
-
SDL::Event::KEYDOWN
|
1118
|
-
SDL::Event::KEYUP
|
1119
|
-
SDL::Event::MOUSEMOTION
|
1120
|
-
SDL::Event::MOUSEBUTTONDOWN
|
1121
|
-
SDL::Event::MOUSEBUTTONUP
|
1122
|
-
SDL::Event::JOYAXISMOTION
|
1123
|
-
SDL::Event::JOYBALLMOTION
|
1124
|
-
SDL::Event::JOYHATMOTION
|
1125
|
-
SDL::Event::JOYBUTTONDOWN
|
1126
|
-
SDL::Event::JOYBUTTONUP
|
1127
|
-
SDL::Event::QUIT
|
1128
|
-
SDL::Event::SYSWMEVENT
|
1129
|
-
SDL::Event::VIDEORESIZE
|
1130
|
-
|
1131
|
-
--- SDL::Event#info
|
1132
|
-
���٥�Ȥξ����������֤���
|
1133
|
-
���Υ�åɤϡ�����ʲ��Υ�åɤ٤����ѤǤ��롣
|
1134
|
-
|
1135
|
-
--- SDL::Event#keyPress?
|
1136
|
-
--- SDL::Event#key_press?
|
1137
|
-
�������٥�Ȥǥ����������������Ƥ����true���ʤ����false���֤���
|
1138
|
-
|
1139
|
-
--- SDL::Event#keySym
|
1140
|
-
--- SDL::Event#key_sym
|
1141
|
-
�������٥�ȤDz�������/�夲��줿��������֤���
|
1142
|
-
|
1143
|
-
--- SDL::Event#keyMod
|
1144
|
-
--- SDL::Event#key_mod
|
1145
|
-
�������٥�ȤǤν�������(SHIFT,CTRL�ʤ�)�ξ��֤��֤���
|
1146
|
-
|
1147
|
-
--- SDL::Event#gain?
|
1148
|
-
ACTIVEEVENT���٥�Ȥǥ�����ɥ����ե��������������ʤ�true��
|
1149
|
-
���ʤä��ʤ��false���֤���
|
1150
|
-
|
1151
|
-
--- SDL::Event#appState
|
1152
|
-
--- SDL::Event#app_state
|
1153
|
-
ACTIVEEVENT���٥�ȤǤΥ��٥�Ȥμ�����֤���
|
1154
|
-
�������Ƥϰʲ��Τ����줫��
|
1155
|
-
SDL::Event::APPMOUSEFOCUS
|
1156
|
-
SDL::Event::APPINPUTFOCUS
|
1157
|
-
SDL::Event::APPACTIVE
|
1158
|
-
|
1159
|
-
--- SDL::Event#mouseX
|
1160
|
-
--- SDL::Event#mouse_x
|
1161
|
-
�ޥ������٥�ȤǤΥޥ������������X��ɸ���֤���
|
1162
|
-
|
1163
|
-
--- SDL::Event#mouseY
|
1164
|
-
--- SDL::Event#mouse_y
|
1165
|
-
�ޥ������٥�ȤǤΥޥ������������Y��ɸ���֤���
|
1166
|
-
|
1167
|
-
--- SDL::Event#mouseXrel
|
1168
|
-
--- SDL::Event#mouse_xrel
|
1169
|
-
�ޥ������٥�ȤǤΥޥ������������X��ɸ���Ѳ��̤��֤���
|
1170
|
-
|
1171
|
-
--- SDL::Event#mouseYrel
|
1172
|
-
--- SDL::Event#mouse_yrel
|
1173
|
-
�ޥ������٥�ȤǤΥޥ������������X��ɸ���Ѳ��̤��֤���
|
1174
|
-
|
1175
|
-
--- SDL::Event#mouseButton
|
1176
|
-
--- SDL::Event#mouse_button
|
1177
|
-
�ޥ������٥�ȤǤɤΥܥ���Υ��٥�ȤǤ��뤫������
|
1178
|
-
����ϰʲ�������Ǥ��ᤵ��롣
|
1179
|
-
|
1180
|
-
SDL::Mouse::BUTTON_LEFT ���ܥ���
|
1181
|
-
SDL::Mouse::BUTTON_MIDDLE ��ܥ���
|
1182
|
-
SDL::Mouse::BUTTON_RIGHT ���ܥ���
|
1183
|
-
|
1184
|
-
--- SDL::Event#mousePress?
|
1185
|
-
--- SDL::Event#mouse_press?
|
1186
|
-
MOUSEBUTTONDOWN,MOUSEBUTTONUP���٥�Ȥˤ����ơ��ޥ����ܥ���
|
1187
|
-
�����줿�ʤ�true��Υ���줿�ʤ�false���֤���
|
1188
|
-
|
1189
|
-
=== SDL::Event2
|
1190
|
-
���٥�Ȥ��갷������Υ��饹����2��
|
1191
|
-
������Υ��饹�Τۤ���((<SDL::Event>))���Ȥ��䤹���Ǥ��礦��
|
1192
|
-
|
1193
|
-
==== super class
|
1194
|
-
|
1195
|
-
Object
|
1196
|
-
|
1197
|
-
==== class method
|
1198
|
-
|
1199
|
-
--- SDL::Event2.poll
|
1200
|
-
���ߥ��٥�ȥ��塼��ǽ����Ԥ����Ƥ��륤�٥�Ȥ��ʤ�����١�
|
1201
|
-
�ҤȤĤǤ⤢��Ф��Υ��٥�Ȥ��б����륯�饹�Υ������֤���
|
1202
|
-
�ҤȤĤ�ʤ����nil���֤���
|
1203
|
-
�֤��������б����륯�饹�ϰʲ����̤ꡣ
|
1204
|
-
SDL::Event2::Active
|
1205
|
-
SDL::Event2::KeyDown
|
1206
|
-
SDL::Event2::KeyUp
|
1207
|
-
SDL::Event2::MouseMotion
|
1208
|
-
SDL::Event2::MouseButtonDown
|
1209
|
-
SDL::Event2::MouseButtonUp
|
1210
|
-
SDL::Event2::JoyAxis
|
1211
|
-
SDL::Event2::JoyBall
|
1212
|
-
SDL::Event2::JoyHat
|
1213
|
-
SDL::Event2::JoyButtonUp
|
1214
|
-
SDL::Event2::JoyButtonDown
|
1215
|
-
SDL::Event2::Quit
|
1216
|
-
SDL::Event2::SysWM
|
1217
|
-
SDL::Event2::VideoResize
|
1218
|
-
�����Υ��饹�Ϥ��٤�SDL::Event2�Υ��֥��饹�Ǥ��롣
|
1219
|
-
|
1220
|
-
--- SDL::Event2.wait
|
1221
|
-
���Υ��٥�Ȥ����ޤ��Ԥ������Ф��Υ��٥�Ȥ��б����륯�饹��
|
1222
|
-
�������֤���
|
1223
|
-
|
1224
|
-
--- SDL::Event2.push(event)
|
1225
|
-
Not documented yet
|
1226
|
-
|
1227
|
-
--- SDL::Event2.new
|
1228
|
-
Not documented yet
|
1229
|
-
|
1230
|
-
--- SDL::Event2.appState
|
1231
|
-
--- SDL::Event2.app_state
|
1232
|
-
((<SDL::Event.appState>))��Ʊ����
|
1233
|
-
|
1234
|
-
--- SDL::Event2.enableUNICODE
|
1235
|
-
--- SDL::Event2.enable_unicode
|
1236
|
-
((<SDL::Event.enableUNICODE>))��Ʊ��
|
1237
|
-
|
1238
|
-
--- SDL::Event2.disableUNICODE
|
1239
|
-
--- SDL::Event2.disable_unicode
|
1240
|
-
((<SDL::Event2.disableUNICODE>))��Ʊ��
|
1241
|
-
|
1242
|
-
--- SDL::Event2.enableUNICODE?
|
1243
|
-
--- SDL::Event2.enable_unicode?
|
1244
|
-
((<SDL::Event.enableUNICODE?>))��Ʊ��
|
1245
|
-
|
1246
|
-
==== method
|
1247
|
-
|
1248
|
-
�ʤ���
|
1249
|
-
|
1250
|
-
=== SDL::Event2�Υ��֥��饹
|
1251
|
-
SDL::Event2.poll,SDL::Event2.wait��SDL::Event2�Υ��֥��饹�Υ������֤��ޤ���
|
1252
|
-
���Υ��饹�ϰʲ����̤�Ǥ��롣
|
1253
|
-
|
1254
|
-
==== SDL::Event2::Active
|
1255
|
-
������ɥ���Υޥ���/�����ܡ��ɤΥե��������ν�����ˤ�ä������륤�٥�ȡ�
|
1256
|
-
+ ��å�
|
1257
|
-
--- SDL::Event2::Active#gain
|
1258
|
-
�ե��������������ʤ�true���ե��������ä��ʤ�false��
|
1259
|
-
--- SDL::Event2::Active#state
|
1260
|
-
���٥�Ȥμ�����֤���
|
1261
|
-
SDL::Event::APPMOUSEFOCUS �ޥ����ե�������
|
1262
|
-
SDL::Event::APPINPUTFOCUS �����ܡ��ɥե�������
|
1263
|
-
SDL::Event::APPACTIVE ��������/���������
|
1264
|
-
|
1265
|
-
==== SDL::Event2::KeyDown
|
1266
|
-
�����β��������������륤�٥�ȡ�
|
1267
|
-
+ ��å�
|
1268
|
-
--- SDL::Event2::KeyDown#press
|
1269
|
-
�Ĥͤ�true
|
1270
|
-
--- SDL::Event2::KeyDown#sym
|
1271
|
-
�����������μ��ࡣSDL::Key::ESCAPE�ʤɡ�
|
1272
|
-
--- SDL::Event2::KeyDown#mod
|
1273
|
-
((<SDL::Key.modState>))��Ʊ����
|
1274
|
-
--- SDL::Event2::KeyDown#unicode
|
1275
|
-
�Ѵ��ѤߤΥ����ܡ������ϡ����Ѥ��뤿��ˤ�
|
1276
|
-
((<SDL::Event2.enableUNICODE>))�餫����Ƥ�Ǥ���ɬ�פ����롣
|
1277
|
-
|
1278
|
-
==== SDL::Event2::KeyUp
|
1279
|
-
������Υ�����Ȥ��������륤�٥�ȡ�
|
1280
|
-
--- SDL::Event2::KeyUp#press
|
1281
|
-
�Ĥͤ�false
|
1282
|
-
--- SDL::Event2::KeyUp#sym
|
1283
|
-
Υ���줿�����μ��ࡣSDL::Key::ESCAPE�ʤɡ�
|
1284
|
-
--- SDL::Event2::KeyUp#mod
|
1285
|
-
((<SDL::Key.modState>))��Ʊ����
|
1286
|
-
|
1287
|
-
==== SDL::Event2::MouseMotion
|
1288
|
-
�ޥ�����ư�������Ȥ��������륤�٥�ȡ�((<SDL::Mouse.warp>))�Ǥ⤳��
|
1289
|
-
���٥�Ȥ������롣
|
1290
|
-
+ ��å�
|
1291
|
-
--- SDL::Event2::MouseMotion#state
|
1292
|
-
�ޥ����Υܥ���ξ���
|
1293
|
-
--- SDL::Event2::MouseMotion#x
|
1294
|
-
�ޥ������������x��ɸ
|
1295
|
-
--- SDL::Event2::MouseMotion#y
|
1296
|
-
�ޥ������������y��ɸ
|
1297
|
-
--- SDL::Event2::MouseMotion#xrel
|
1298
|
-
�ޥ������������x��ɸ���Ѱ�
|
1299
|
-
--- SDL::Event2::MouseMotion#yrel
|
1300
|
-
�ޥ������������y��ɸ���Ѱ�
|
1301
|
-
|
1302
|
-
==== SDL::Event2::MouseButtonDown
|
1303
|
-
�ޥ����Υܥ�����������Ȥ��������륤�٥�ȡ�
|
1304
|
-
+ ��å�
|
1305
|
-
--- SDL::Event2::MouseButtonDown#button
|
1306
|
-
�ɤΥܥ�������Τ����֤���
|
1307
|
-
SDL::Mouse::BUTTON_LEFT
|
1308
|
-
SDL::Mouse::BUTTON_MIDDLE
|
1309
|
-
SDL::Mouse::BUTTON_RIGHT
|
1310
|
-
|
1311
|
-
--- SDL::Event2::MouseButtonDown#press
|
1312
|
-
���true
|
1313
|
-
--- SDL::Event2::MouseButtonDown#x
|
1314
|
-
�ޥ������������x��ɸ
|
1315
|
-
--- SDL::Event2::MouseButtonDown#y
|
1316
|
-
�ޥ������������y��ɸ
|
1317
|
-
|
1318
|
-
==== SDL::Event2::MouseButtonUp
|
1319
|
-
�ޥ����Υܥ����Υ�����Ȥ��������륤�٥�ȡ�
|
1320
|
-
+ ��å�
|
1321
|
-
--- SDL::Event2::MouseButtonUp#button
|
1322
|
-
�ɤΥܥ����Υ�����Τ����֤���
|
1323
|
-
SDL::Mouse::BUTTON_LEFT
|
1324
|
-
SDL::Mouse::BUTTON_MIDDLE
|
1325
|
-
SDL::Mouse::BUTTON_RIGHT
|
1326
|
-
|
1327
|
-
--- SDL::Event2::MouseButtonUp#press
|
1328
|
-
���false
|
1329
|
-
--- SDL::Event2::MouseButtonUp#x
|
1330
|
-
�ޥ������������x��ɸ
|
1331
|
-
--- SDL::Event2::MouseButtonUp#y
|
1332
|
-
�ޥ������������y��ɸ
|
1333
|
-
|
1334
|
-
==== SDL::Event2::JoyAxis
|
1335
|
-
���ʥ������ƥ��å���ư�������Ȥ��������륤�٥�ȡ�
|
1336
|
-
((<SDL::Joystick>))�����Ƥ⻲�ͤˤʤ�Ȼפ��롣
|
1337
|
-
+ ��å�
|
1338
|
-
--- SDL::Event2::JoyAxis#which
|
1339
|
-
�ɤΥ��祤���ƥ��å��Τ�ΤʤΤ�����
|
1340
|
-
--- SDL::Event2::JoyAxis#axis
|
1341
|
-
�ɤΥ��ʥ������ƥ��å��Τ�ΤʤΤ�����
|
1342
|
-
--- SDL::Event2::JoyAxis#value
|
1343
|
-
���ʥ������ƥ��å������̤�(-32768 �� 32767)��
|
1344
|
-
==== SDL::Event2::JoyBall
|
1345
|
-
�ȥ�å��ܡ����ư�������Ȥ��������륤�٥�ȡ�
|
1346
|
-
+ ��å�
|
1347
|
-
--- SDL::Event2::JoyBall#which
|
1348
|
-
�ɤΥ��祤���ƥ��å��Τ�ΤʤΤ�����
|
1349
|
-
--- SDL::Event2::JoyBall#ball
|
1350
|
-
�ɤΥܡ���Τ�ΤʤΤ�����
|
1351
|
-
--- SDL::Event2::JoyBall#xrel
|
1352
|
-
--- SDL::Event2::JoyBall#yrel
|
1353
|
-
�ȥ�å��ܡ����x/y��������
|
1354
|
-
|
1355
|
-
==== SDL::Event2::JoyHat
|
1356
|
-
�������������Ϥ����ä��Ȥ��������륤�٥�ȡ�
|
1357
|
-
--- SDL::Event2::JoyHat#which
|
1358
|
-
�ɤΥ��祤���ƥ��å��Τ�ΤʤΤ�����
|
1359
|
-
--- SDL::Event2::JoyHat#hat
|
1360
|
-
�ɤν��������Τ�ΤʤΤ�����
|
1361
|
-
--- SDL::Event2::JoyHat#value
|
1362
|
-
���������Ͼ��֡����Ƥϰʲ����̤ꡣ
|
1363
|
-
SDL::Joystick::HAT_CENTERED
|
1364
|
-
SDL::Joystick::HAT_UP
|
1365
|
-
SDL::Joystick::HAT_RIGHT
|
1366
|
-
SDL::Joystick::HAT_DOWN
|
1367
|
-
SDL::Joystick::HAT_LEFT
|
1368
|
-
SDL::Joystick::HAT_RIGHTUP
|
1369
|
-
SDL::Joystick::HAT_RIGHTDOWN
|
1370
|
-
SDL::Joystick::HAT_LEFTUP
|
1371
|
-
SDL::Joystick::HAT_LEFTDOWN
|
1372
|
-
|
1373
|
-
==== SDL::Event2::JoyButtonUp
|
1374
|
-
���祤���ƥ��å��Υܥ���Υ���줿�Ȥ��������륤�٥�ȡ�
|
1375
|
-
--- SDL::Event2::JoyButtonUp#which
|
1376
|
-
�ɤΥ��祤���ƥ��å��Τ�ΤʤΤ�����
|
1377
|
-
--- SDL::Event2::JoyButtonUp#button
|
1378
|
-
�ɤΥܥ���Τ�ΤʤΤ�����
|
1379
|
-
--- SDL::Event2::JoyButtonUp#press
|
1380
|
-
���false
|
1381
|
-
|
1382
|
-
==== SDL::Event2::JoyButtonDown
|
1383
|
-
���祤���ƥ��å��Υܥ�����������줿�Ȥ��������륤�٥�ȡ�
|
1384
|
-
--- SDL::Event2::JoyButtonDown#which
|
1385
|
-
�ɤΥ��祤���ƥ��å��Τ�ΤʤΤ�����
|
1386
|
-
--- SDL::Event2::JoyButtonDown#button
|
1387
|
-
�ɤΥܥ���Τ�ΤʤΤ�����
|
1388
|
-
--- SDL::Event2::JoyButtonDown#press
|
1389
|
-
���true
|
1390
|
-
|
1391
|
-
==== SDL::Event2::Quit
|
1392
|
-
���ץꥱ��������λ���褦�Ȥ����Ȥ����Ĥޤꥦ����ɥ��ν�λ�ܥ����
|
1393
|
-
�������Ȥ��ʤɤ������륤�٥�ȡ�
|
1394
|
-
==== SDL::Event2::SysWM
|
1395
|
-
�ץ�åȥե�����˰�¸����������ɥ��ط��Υ��٥�ȡ�
|
1396
|
-
���Υ�åɤ��餽�ξ������������ʤϺ��ΤȤ����Ѱդ���Ƥ��ʤ���
|
1397
|
-
==== SDL::Event2::VideoResize
|
1398
|
-
������ɥ����礭�����Ѥ����Ȥ��������륤�٥�ȡ�
|
1399
|
-
((<SDL.setVideoMode>))��flags��SDL::RESIZABLE��Ϳ�����Ȥ��Τߤ��Υ��٥��
|
1400
|
-
�������롣
|
1401
|
-
+ ��å�
|
1402
|
-
--- SDL::Event2::VideoResize#w
|
1403
|
-
�ѹ���Υ�����ɥ���
|
1404
|
-
--- SDL::Event2::VideoResize#h
|
1405
|
-
�ѹ���Υ�����ɥ��ι⤵��
|
1406
|
-
|
1407
|
-
=== SDL::Key
|
1408
|
-
|
1409
|
-
�����ܡ��ɤΥ������б����������������Ƥ���⥸�塼��
|
1410
|
-
�����ܡ��ɤΥ����ξ��֤��Τ뤿��δؿ��⤳����ˤ��롣
|
1411
|
-
|
1412
|
-
==== �⥸�塼��ؿ�
|
1413
|
-
|
1414
|
-
--- SDL::Key.scan
|
1415
|
-
�����ܡ��ɤξ��֤���ޤ�
|
1416
|
-
|
1417
|
-
--- SDL::Key.press?(key)
|
1418
|
-
�����ƤӽФ�����scan��ƤӤ����Ƥ���������
|
1419
|
-
scan ���������֤����ޤ���true�Dz����Ƥ��롢false��Υ���Ƥ���Ǥ���
|
1420
|
-
|
1421
|
-
--- SDL::Key.modState
|
1422
|
-
--- SDL::Key.mod_state
|
1423
|
-
��������(CTRL,ATL,�ʤ�)�ξ��֤��֤���
|
1424
|
-
�֤��ͤϰʲ��������OR��Ȥä���Τ�ɽ����롣
|
1425
|
-
SDL::Key::MOD_NONE
|
1426
|
-
SDL::Key::MOD_LSHIFT
|
1427
|
-
SDL::Key::MOD_RSHIFT
|
1428
|
-
SDL::Key::MOD_LCTRL
|
1429
|
-
SDL::Key::MOD_RCTRL
|
1430
|
-
SDL::Key::MOD_LALT
|
1431
|
-
SDL::Key::MOD_RALT
|
1432
|
-
SDL::Key::MOD_LMETA
|
1433
|
-
SDL::Key::MOD_RMETA
|
1434
|
-
SDL::Key::MOD_NUM
|
1435
|
-
SDL::Key::MOD_CAPS
|
1436
|
-
SDL::Key::MOD_MODE
|
1437
|
-
SDL::Key::MOD_RESERVED
|
1438
|
-
SDL::Key::MOD_CTRL = SDL::Key::MOD_LCTRL|SDL::Key::MOD_RCTRL
|
1439
|
-
SDL::Key::MOD_SHIFT = SDL::Key::MOD_LSHIFT|SDL::Key::MOD_RSHIFT
|
1440
|
-
SDL::Key::MOD_ALT = SDL::Key::MOD_LALT|SDL::Key::MOD_RALT
|
1441
|
-
SDL::Key::MOD_META = SDL::Key::MOD_LMETA|SDL::Key::MOD_RMETA
|
1442
|
-
|
1443
|
-
--- SDL::Key.enableKeyRepeat(delay,interval)
|
1444
|
-
--- SDL::Key.enable_key_repeat(delay,interval)
|
1445
|
-
������ԡ��Ȥ�������Ѥ��롣
|
1446
|
-
|
1447
|
-
|
1448
|
-
--- SDL::Key.disableKeyRepeat
|
1449
|
-
--- SDL::Key.disable_key_repeat
|
1450
|
-
������ԡ��Ȥ�̵���ˤ��롣
|
1451
|
-
|
1452
|
-
--- SDL::Key.getKeyName(key)
|
1453
|
-
--- SDL::Key.get_key_name(key)
|
1454
|
-
Ϳ�����������Ф���̾����ɽ�魯ʸ������֤��ޤ���
|
1455
|
-
|
1456
|
-
=== SDL::Mouse
|
1457
|
-
|
1458
|
-
�ޥ�����Ϣ������ȴؿ���������Ƥ���⥸�塼��
|
1459
|
-
|
1460
|
-
==== �⥸�塼��ؿ�
|
1461
|
-
|
1462
|
-
--- SDL::Mouse.state
|
1463
|
-
�ޥ����ξ��֤�����η����֤��ޤ���
|
1464
|
-
��������Ƥ�
|
1465
|
-
[ x , y , pressLButton? , pressMButton? , pressRButton? ]
|
1466
|
-
�ȤʤäƤ��ޤ���
|
1467
|
-
|
1468
|
-
--- SDL::Mouse.warp(x,y)
|
1469
|
-
�ޥ�����������ΰ��֤����ꤹ��ʥޥ�����ư�Υ��٥�Ȥ���������)��
|
1470
|
-
|
1471
|
-
--- SDL::Mouse.show
|
1472
|
-
�ޥ������������ɽ�����롣
|
1473
|
-
|
1474
|
-
--- SDL::Mouse.hide
|
1475
|
-
�ޥ������������ä���
|
1476
|
-
|
1477
|
-
--- SDL::Mouse.setCursor(bitmap,white,black,transparent,inverted,hot_x=0,hot_y=0)
|
1478
|
-
--- SDL::Mouse.set_cursor(bitmap,white,black,transparent,inverted,hot_x=0,hot_y=0)
|
1479
|
-
�ޥ�������������Ѥ��롣
|
1480
|
-
bitmap�Ȥ���((<SDL::Surface>))�Υ�����Ϳ���롣
|
1481
|
-
��������ο����������������롣
|
1482
|
-
white,black,transparent,inverted�Ϥ��Υ����ե�����ǡ��ɤ�
|
1483
|
-
�ԥ����뤬�������������Ʃ����ȿž�ˤ����뤫����
|
1484
|
-
|
1485
|
-
== audio��Ϣ
|
1486
|
-
|
1487
|
-
=== SDL::Mixer
|
1488
|
-
|
1489
|
-
����������ꤹ��Τ˻Ȥ��⥸�塼��
|
1490
|
-
�ܥ�塼���0����128��ͭ���Ǥ��롣
|
1491
|
-
���Υ⥸�塼��ε�ǽ��Ȥ�����ˤϡ�SDL_mixer�饤�֥�꤬ɬ�פǤ��롣
|
1492
|
-
���Υ⥸�塼����ε�ǽ��Ȥ�����ˤϡ�((<SDL.init>))��SDL::INIT_AUDIO��
|
1493
|
-
ͭ���ˤ��ʤ���Фʤ�ʤ���
|
1494
|
-
|
1495
|
-
==== �⥸�塼��ؿ�
|
1496
|
-
|
1497
|
-
--- SDL::Mixer.open(frequency=Mixer::DEFAULT_FREQUENCY,format=Mixer::DEFAULT_FORMAT,cannels=Mixer::DEFAULT_CHANNELS,chunksize=4096)
|
1498
|
-
���Υ⥸�塼��ε�ǽ�ν�����ؿ���
|
1499
|
-
frequency�ϼ��ȿ���format�ϥ�����ɤη�����
|
1500
|
-
channels��1�ǥ�Υ�롢2�ǥ��ƥ쥪
|
1501
|
-
chunksize�ϥХåե����礭�����줾����ꤹ�롣
|
1502
|
-
chunksize��2�γ����Ȥ��褦�ˤ��롣
|
1503
|
-
�����Ǥ���channels��playChannel�ʤɤǤ�channel����ʪ�Ǥ��롣
|
1504
|
-
|
1505
|
-
--- SDL::Mixer.spec
|
1506
|
-
��������������ǥ�������ǽ��������֤���
|
1507
|
-
�������Ƥϡ�
|
1508
|
-
[ rate,format,channels ]
|
1509
|
-
|
1510
|
-
--- SDL::Mixer.allocateChannels(numchannels)
|
1511
|
-
--- SDL::Mixer.allocate_channels(numchannels)
|
1512
|
-
Ruby/SDL�����ѤǤ�������ͥ�ο���ưŪ���ѹ����롣
|
1513
|
-
�⤷���ꤷ�������ͥ�ο�������ޤ��Τ�Τ�꾮�������
|
1514
|
-
�������Υ����ͥ�Ǥκ����ϻߤޤ롣
|
1515
|
-
|
1516
|
-
����Ͽ��������ݤǤ��������ͥ�ο����֤���
|
1517
|
-
|
1518
|
-
--- SDL::Mixer.playChannel(channel,wave,loop)
|
1519
|
-
--- SDL::Mixer.play_channel(channel,wave,loop)
|
1520
|
-
���ꤷ��channel��wave����դ��롣
|
1521
|
-
channel��-1����ꤹ��ȡ������Ƥ���channel��Ŭ���ˤ���Ф�롣
|
1522
|
-
loops���ꤷ����������֤���
|
1523
|
-
loops��-1�ΤȤ��Ϻݸ¤ʤ����꤫������
|
1524
|
-
loops��0�ΤȤ��ϰ��٤Τ߱��դ��롣
|
1525
|
-
|
1526
|
-
�ɤΥ����ͥ����դ����Ѥ��������֤���
|
1527
|
-
|
1528
|
-
--- SDL::Mixer.play?(channel)
|
1529
|
-
���ꤷ��channel�����߱��դ��Ƥ����true���Ƥ��ʤ����
|
1530
|
-
false���֤���
|
1531
|
-
|
1532
|
-
--- SDL::Mixer.setVolume(channel,volume)
|
1533
|
-
--- SDL::Mixer.set_volume(channel,volume)
|
1534
|
-
���ꤷ��channel�Υܥ�塼������ꤹ�롣
|
1535
|
-
channel=-1����ꤹ��Ȥ��٤Ƥ�channel���Ф��ܥ�塼�����ꤹ�롣
|
1536
|
-
|
1537
|
-
volume=-1�Ȥ���ȡ����ߤΥܥ�塼�ब�֤롣
|
1538
|
-
|
1539
|
-
--- SDL::Mixer.halt(channel)
|
1540
|
-
���ꤷ��channel�α��դ�ߤ�롣
|
1541
|
-
|
1542
|
-
--- SDL::Mixer.pause(chennel)
|
1543
|
-
���ꤷ��channel�α��դ�����ߤ��롣
|
1544
|
-
|
1545
|
-
--- SDL::Mixer.resume(channel)
|
1546
|
-
���ꤷ�������ߤ��Ƥ���channel�α��դ�Ƴ����롣
|
1547
|
-
|
1548
|
-
--- SDL::Mixer.pause?(channel)
|
1549
|
-
���ꤷ��channel�������ߤ��Ƥ����true�����Ƥ��ʤ����false��
|
1550
|
-
�֤���
|
1551
|
-
|
1552
|
-
--- SDL::Mixer.playMusic(music,loops)
|
1553
|
-
--- SDL::Mixer.play_music(music,loops)
|
1554
|
-
music�ǻ��ꤷ�����ڤ���դ��롣
|
1555
|
-
loops��((<SDL::Mixer.playChannel>))��Ʊ����
|
1556
|
-
|
1557
|
-
--- SDL::Mixer.fadeInMusic(music,loops,ms)
|
1558
|
-
--- SDL::Mixer.fade_in_music(music,loops,ms)
|
1559
|
-
music�ǻ��ꤷ�����ڤ�ե����ɥ��Ʊ��դ��롣
|
1560
|
-
loops��((<SDL::Mixer.playChannel>))��Ʊ����
|
1561
|
-
�ե����ɥ����ms�ϻ��ꤷ���ߥ��ä���������
|
1562
|
-
|
1563
|
-
--- SDL::Mixer.setVolumeMusic(volume)
|
1564
|
-
--- SDL::Mixer.set_volume_music(volume)
|
1565
|
-
���ڤΥܥ�塼�����ꤹ�롣
|
1566
|
-
|
1567
|
-
--- SDL::Mixer.haltMusic
|
1568
|
-
--- SDL::Mixer.halt_music
|
1569
|
-
���ڤ�ߤ�롣
|
1570
|
-
|
1571
|
-
--- SDL::Mixer.fadeOutMusic(ms)
|
1572
|
-
--- SDL::Mixer.fade_out_music(ms)
|
1573
|
-
���ڤ���ꤷ���ߥ��ä����ƥե����ɥ����Ȥ��롣
|
1574
|
-
|
1575
|
-
--- SDL::Mixer.pauseMusic
|
1576
|
-
--- SDL::Mixer.pause_music
|
1577
|
-
���ڤ�����ߤ��롣
|
1578
|
-
|
1579
|
-
--- SDL::Mixer.resumeMusic
|
1580
|
-
--- SDL::Mixer.resume_music
|
1581
|
-
�����ߤ��Ƥ��벻�ڤκ�����Ƴ����롣
|
1582
|
-
|
1583
|
-
--- SDL::Mixer.rewindMusic
|
1584
|
-
--- SDL::Mixer.rewind_music
|
1585
|
-
���ڤκ������֤���ֺǽ�ˤ��롣
|
1586
|
-
|
1587
|
-
--- SDL::Mixer.pauseMusic?
|
1588
|
-
--- SDL::Mixer.pause_music?
|
1589
|
-
���ڤ������ߤ��Ƥ����true�����ʤ����false���֤���
|
1590
|
-
|
1591
|
-
--- SDL::Mixer.playMusic?
|
1592
|
-
--- SDL::Mixer.play_music?
|
1593
|
-
���ڤ����դ���Ƥ����true�����Ƥ��ʤ����false���֤���
|
1594
|
-
|
1595
|
-
=== SDL::Mixer::Wave
|
1596
|
-
|
1597
|
-
Wave��魯���饹
|
1598
|
-
|
1599
|
-
==== �����ѡ����饹
|
1600
|
-
|
1601
|
-
Object
|
1602
|
-
|
1603
|
-
==== ���饹��å�
|
1604
|
-
|
1605
|
-
--- SDL::Mixer::Wave.load(filename)
|
1606
|
-
wave�ե����������ɤ���������б�����SDL::Mixer::Wave���饹��
|
1607
|
-
�������֤���
|
1608
|
-
|
1609
|
-
==== ��å�
|
1610
|
-
|
1611
|
-
--- SDL::Mixer::Wave#setVolume(volume)
|
1612
|
-
--- SDL::Mixer::Wave#set_volume(volume)
|
1613
|
-
self�Υܥ�塼����֤���
|
1614
|
-
|
1615
|
-
=== SDL::Mixer::Music
|
1616
|
-
|
1617
|
-
����(.mod .s3m .it .xm .mid .mp3 .ogg)��ɽ����
|
1618
|
-
������midi�ե������OggVorbis��MP3����դ��뤿��ˤϤ��Τ�������꤬ɬ�ס�
|
1619
|
-
|
1620
|
-
==== �����ѡ����饹
|
1621
|
-
|
1622
|
-
Object
|
1623
|
-
|
1624
|
-
==== ���饹��å�
|
1625
|
-
|
1626
|
-
--- SDL::Mixer::Music.load(filename)
|
1627
|
-
����(.mod .s3m .it .xm .mid .mp3)��ե����뤫������ɤ���
|
1628
|
-
���Υǡ������б�����Mixer::Music���饹�Υ������֤���
|
1629
|
-
|
1630
|
-
== Window Manager ��Ϣ
|
1631
|
-
|
1632
|
-
=== SDL::WM
|
1633
|
-
|
1634
|
-
Window��Ϣ�ν�����ޤȤ�⥸�塼��
|
1635
|
-
|
1636
|
-
==== �⥸�塼��ؿ�
|
1637
|
-
|
1638
|
-
--- SDL::WM.caption
|
1639
|
-
caption��ʸ�����������֤��Ƥ��롣
|
1640
|
-
���Ƥϡ�
|
1641
|
-
[ ������ɥ��Υ����ȥ� , ��������Υ����ȥ� ]
|
1642
|
-
|
1643
|
-
--- SDL::WM.setCaption(title,icon)
|
1644
|
-
--- SDL::WM.set_caption(title,icon)
|
1645
|
-
�嵭�����Ƥ��ѹ����롣
|
1646
|
-
|
1647
|
-
--- SDL::WM.icon=(iconImage)
|
1648
|
-
--- SDL::WM.icon=(icon_image)
|
1649
|
-
������ɥ��Υ�������γ�����ꤹ�롣
|
1650
|
-
setVideoMode�θƤӤ������˸ƤӤ����ʤ���Фʤ�ʤ���
|
1651
|
-
|
1652
|
-
--- SDL::WM.iconify
|
1653
|
-
������ɥ��Υ��������Ǿ����롣
|
1654
|
-
��������С�SDL::Event::APPACTIVE���٥�Ȥ������롣
|
1655
|
-
|
1656
|
-
--- SDL::Screen#toggleFullScreen
|
1657
|
-
--- SDL::Screen#toggle_fullscreen
|
1658
|
-
�ե륹�����⡼�ɤ꤫���롣
|
1659
|
-
|
1660
|
-
== CDROM�ط�
|
1661
|
-
|
1662
|
-
=== SDL::CD
|
1663
|
-
|
1664
|
-
CDROM�ɥ饤�֤�ɽ�����饹
|
1665
|
-
|
1666
|
-
CD#numTrack���ξ����CD#status��ƤӤ������Ȥˤ�äƹ�������롣
|
1667
|
-
|
1668
|
-
�����Ǥ�CD�ΰ��֡����ջ��֤�Ĺ����ɽ������˥ե졼��Ȥ���ñ�̤��Ѥ��롣
|
1669
|
-
1frame=2K�Ǥ��ꡢ
|
1670
|
-
�̾�β���CD�ˤ�����75�ե졼��=1�äǤ��롣
|
1671
|
-
|
1672
|
-
==== �����ѡ����饹
|
1673
|
-
|
1674
|
-
Object
|
1675
|
-
|
1676
|
-
==== ���饹��å�
|
1677
|
-
|
1678
|
-
--- SDL::CD.numDrive
|
1679
|
-
--- SDL::CD.num_drive
|
1680
|
-
�����Ĥ�CDROM�ɥ饤�֤����ѤǤ��뤫���֤���
|
1681
|
-
|
1682
|
-
--- SDL::CD.indexName(drive)
|
1683
|
-
--- SDL::CD.index_name(drive)
|
1684
|
-
���ꤷ���ɥ饤�֤�̾����ʸ������֤���
|
1685
|
-
�ɥ饤�֤λ����0����CD.numDrive-1�������ǻ��ꤹ�롣
|
1686
|
-
|
1687
|
-
--- SDL::CD.open(drive)
|
1688
|
-
���ꤷ���ɥ饤�֤���
|
1689
|
-
���������CD�Υ������֤롣
|
1690
|
-
�ɥ饤�֤λ����0����CD.numDrive-1�������ǻ��ꤹ�롣
|
1691
|
-
0�ɥ饤�֤��ǥե���ȤΥɥ饤�֤Ǥ��롣
|
1692
|
-
|
1693
|
-
==== ��å�
|
1694
|
-
|
1695
|
-
--- SDL::CD#status
|
1696
|
-
currentTrack,currentFrame,numTracks,trackType,trackLenght
|
1697
|
-
�ξ�������롣
|
1698
|
-
���ߤ�CD�ξ��֤��֤����������Ƥϰʲ��ΤȤ��ꡣ
|
1699
|
-
TRAYEMPTY
|
1700
|
-
STOPPED
|
1701
|
-
PLAYING
|
1702
|
-
PAUSED
|
1703
|
-
ERROR
|
1704
|
-
|
1705
|
-
--- SDL::CD#play(start,length)
|
1706
|
-
CD��start�ե졼�फ��length�ե졼��δֱ��դ��롣
|
1707
|
-
|
1708
|
-
--- SDL::CD#playTrack(start_track,start_frame,ntracks,nframes)
|
1709
|
-
--- SDL::CD#play_track(start_track,start_frame,ntracks,nframes)
|
1710
|
-
CD��start_track��start_frame���顢ntracks��Υȥ�å���nframe�ΤȤ���
|
1711
|
-
�ޤDZ��դ��롣
|
1712
|
-
�ʤ������Υ饤�֥����Ǥϥȥ�å��Υ���ǥå�����0����Ϥ��ޤ롣
|
1713
|
-
���Υ�åɤ�((<SDL::CD#status>))��ƤӤ��������Ȥ˸ƤӤ�����
|
1714
|
-
����Фʤ�ʤ���
|
1715
|
-
|
1716
|
-
��
|
1717
|
-
cd.playTrack(0,0,1,0) # �ǽ�Υȥ�å�����դ��롣
|
1718
|
-
cd.playTrack(1,0,0,SDL::CD::FPS*15) # 2�ȥ�å��ܤ�ǽ餫��15�ñ��դ��롣
|
1719
|
-
|
1720
|
-
--- SDL::CD#pause
|
1721
|
-
CD�α��դ�����ߤ��롣
|
1722
|
-
|
1723
|
-
--- SDL::CD#resume
|
1724
|
-
CD�α��դ�Ƴ����롣
|
1725
|
-
|
1726
|
-
--- SDL::CD#stop
|
1727
|
-
CD�α��դ�ߤ�롣
|
1728
|
-
|
1729
|
-
--- SDL::CD#eject
|
1730
|
-
CD�������Ȥ��롣
|
1731
|
-
|
1732
|
-
--- SDL::CD#numTracks
|
1733
|
-
--- SDL::CD#num_tracks
|
1734
|
-
CD�Υȥ�å������֤���
|
1735
|
-
|
1736
|
-
--- SDL::CD#currentTrack
|
1737
|
-
--- SDL::CD#current_track
|
1738
|
-
���߱��դ��Ƥ���ȥ�å����֤���
|
1739
|
-
|
1740
|
-
--- SDL::CD#currentFrame
|
1741
|
-
--- SDL::CD#current_frame
|
1742
|
-
���߱��դ��Ƥ�����֤�ե졼������֤���
|
1743
|
-
�����ͤϸ��ߤΥȥ�å��κǽ餫����ͤǤ��롣
|
1744
|
-
|
1745
|
-
--- SDL::CD#trackType(track)
|
1746
|
-
--- SDL::CD#track_type(track)
|
1747
|
-
���ꤷ���ȥ�å����ʤ�Ǥ��뤫���֤��������ͤϰʲ��ΤȤ��ꡣ
|
1748
|
-
SDL::CD::AUDIO_TRACK
|
1749
|
-
SDL::CD::DATA_TRACK
|
1750
|
-
|
1751
|
-
--- SDL::CD#trackLength(track)
|
1752
|
-
--- SDL::CD#track_length(track)
|
1753
|
-
���ꤷ���ȥ�å���Ĺ����ե졼������֤���
|
1754
|
-
|
1755
|
-
== ���祤���ƥ��å���Ϣ
|
1756
|
-
|
1757
|
-
=== SDL::Joystick
|
1758
|
-
|
1759
|
-
��ĤΥ��祤���ƥ��å���ɽ�����饹
|
1760
|
-
|
1761
|
-
==== �����ѡ����饹
|
1762
|
-
|
1763
|
-
Object
|
1764
|
-
|
1765
|
-
==== ���饹��å�
|
1766
|
-
|
1767
|
-
--- SDL::Joystick.pall
|
1768
|
-
���٥�Ȥ�polling�˹�碌�ơ�((<SDL::Joystick.updateAll>))��Ƥ�
|
1769
|
-
�������ɤ��������롣
|
1770
|
-
|
1771
|
-
--- SDL::Joystick.pall=(polling)
|
1772
|
-
���٥�Ȥ�polling�˹�碌�ơ�((<SDL::Joystick.updateAll>))��ƤӤ���
|
1773
|
-
���ɤ��������ꤹ�롣�ޤ������false�ˤ����((<SDL::Event#poll>))
|
1774
|
-
�ʤɤ��饸�祤���ƥ��å��ξ�������뤳�Ȥ��Ǥ��ʤ��ʤ롣
|
1775
|
-
����ϥǥե���ȤǤ�true�����ꤵ��Ƥ��롣������ѹ����ʤ����Ȥ�
|
1776
|
-
�侩���롣
|
1777
|
-
|
1778
|
-
--- SDL::Joystick.num
|
1779
|
-
���Ѳ�ǽ�ʥ��祤���ƥ��å��ο����֤���
|
1780
|
-
|
1781
|
-
--- SDL::Joystick.indexName(index)
|
1782
|
-
--- SDL::Joystick.index_name(index)
|
1783
|
-
���ꤷ�����祤���ƥ��å���̾����ʸ������֤���
|
1784
|
-
0����Joystick.num-1�������ǻ��ꤹ�롣
|
1785
|
-
|
1786
|
-
--- SDL::Joystick.open(index)
|
1787
|
-
���ꤷ�����祤���ƥ��å�����
|
1788
|
-
���������Joystick�Υ������֤äƤ��롣
|
1789
|
-
|
1790
|
-
--- SDL::Joystick.open?(index)
|
1791
|
-
���ꤷ�����祤���ƥ��å������Ǥ˳�����Ƥ��뤫���֤���
|
1792
|
-
|
1793
|
-
--- SDL::Joystick.updateAll
|
1794
|
-
--- SDL::Joystick.update_all
|
1795
|
-
���ƤΥ��祤���ƥ��å��ξ�������롣
|
1796
|
-
Joystick#button/ball/hat/axis�ξ���Ϥ���ǹ�������롣
|
1797
|
-
|
1798
|
-
==== ��å�
|
1799
|
-
|
1800
|
-
--- SDL::Joystick#index
|
1801
|
-
���祤���ƥ��å����б������������֤���
|
1802
|
-
|
1803
|
-
--- SDL::Joystick#numAxes
|
1804
|
-
--- SDL::Joystick#num_axes
|
1805
|
-
�����륢�ʥ����������֤ο����֤���
|
1806
|
-
��������2���Υ��ʥ����ƥ��å���2�Ĥ����֤�����ȿ������롣
|
1807
|
-
|
1808
|
-
--- SDL::Joystick#numBalls
|
1809
|
-
--- SDL::Joystick#num_balls
|
1810
|
-
�ȥ�å��ܡ���ο����֤���
|
1811
|
-
|
1812
|
-
--- SDL::Joystick#numButtons
|
1813
|
-
--- SDL::Joystick#num_buttons
|
1814
|
-
�ܥ���ο����֤���
|
1815
|
-
|
1816
|
-
--- SDL::Joystick#axis(axis_index)
|
1817
|
-
���ʥ����������֤����Ͼ��֤��֤���
|
1818
|
-
�����ͤ�-32768����32768�Ǥ��롣
|
1819
|
-
�̾�0�ˤ�x����1�ˤ�y�������Ƥ��롣
|
1820
|
-
|
1821
|
-
--- SDL::Joystick#hat(hat_index)
|
1822
|
-
�����뽽�����������Ͼ��֤��֤����������Ƥϰʲ��ΤȤ��ꡣ
|
1823
|
-
SDL::Joystick::HAT_CENTERED
|
1824
|
-
SDL::Joystick::HAT_UP
|
1825
|
-
SDL::Joystick::HAT_RIGHT
|
1826
|
-
SDL::Joystick::HAT_DOWN
|
1827
|
-
SDL::Joystick::HAT_LEFT
|
1828
|
-
SDL::Joystick::HAT_RIGHTUP
|
1829
|
-
SDL::Joystick::HAT_RIGHTDOWN
|
1830
|
-
SDL::Joystick::HAT_LEFTUP
|
1831
|
-
SDL::Joystick::HAT_LEFTDOWN
|
1832
|
-
|
1833
|
-
--- SDL::Joystick#button(button_index)
|
1834
|
-
�ܥ���β���������֤���
|
1835
|
-
�����Ƥ����true�����ʤ����false���֤���
|
1836
|
-
|
1837
|
-
--- SDL::Joystick#ball(ball_index)
|
1838
|
-
�ȥ�å��ܡ�������Ͼ�����֤���
|
1839
|
-
�������ƤϺǸ�ˤ��Υ�åɤ�ƤӽФ��Ƥ���X����Y���ˤɤ����
|
1840
|
-
ư�������������� [dx,dy] ���֤���
|
1841
|
-
|
1842
|
-
== �ե���ȴط�
|
1843
|
-
|
1844
|
-
=== SDL::BMFont
|
1845
|
-
�ӥåȥޥåץե���Ȥ�ɽ�����饹�����Ѥˤ�SGE��ɬ�ס�
|
1846
|
-
|
1847
|
-
==== �����ѡ����饹
|
1848
|
-
|
1849
|
-
Object
|
1850
|
-
|
1851
|
-
==== ���饹��å�
|
1852
|
-
|
1853
|
-
--- SDL::BMFont.open(filename,flags)
|
1854
|
-
�ӥåȥޥåץե���Ȥ�ե����뤫���ɤ߽Ф���
|
1855
|
-
flags�ϰʲ��Τ�Τ�OR��Ϳ����
|
1856
|
-
* SDL::BMFont::TRANSPARENT
|
1857
|
-
setColorKey��Ʃ������Ŭ�������ꤹ��
|
1858
|
-
* SDL::BMFont::NOCONVERT
|
1859
|
-
* SDL::BMFont::SFONT
|
1860
|
-
sfont��Ȥ�
|
1861
|
-
* SDL::BMFont::PALETTE
|
1862
|
-
|
1863
|
-
==== ��å�
|
1864
|
-
--- SDL::BMFont#setColor
|
1865
|
-
--- SDL::BMFont#set_color
|
1866
|
-
�ե���Ȥο������ꤹ�롣sfont�俧�դ��ե���ȤˤϻȤ��ʤ���
|
1867
|
-
|
1868
|
-
--- SDL::BMFont#height
|
1869
|
-
ʸ���ι⤵������
|
1870
|
-
|
1871
|
-
--- SDL::BMFont#width
|
1872
|
-
ʸ������������
|
1873
|
-
|
1874
|
-
--- SDL::BMFont#textout(surface,string,x,y)
|
1875
|
-
((|string|))��((|surface|))�����褹�롣
|
1876
|
-
((|x|)),((|y|))��������֤κ���Ȥʤ롣
|
1877
|
-
|
1878
|
-
=== SDL::Kanji
|
1879
|
-
bdf�ե���Ȥ�ɽ�魯���饹�����ܸ�����Ѳ�ǽ��
|
1880
|
-
|
1881
|
-
==== �����ѡ����饹
|
1882
|
-
|
1883
|
-
Object
|
1884
|
-
|
1885
|
-
==== ���饹��å�
|
1886
|
-
--- SDL::Kanji.open(filename,size)
|
1887
|
-
bdf�ե���ȥե�������ɤߡ��ե���ȥ��֥������Ȥ��֤���
|
1888
|
-
ʸ�����礭����size�ǻ��ꤹ�롣
|
1889
|
-
|
1890
|
-
==== ��å�
|
1891
|
-
--- SDL::Kanji#add(filename)
|
1892
|
-
���˳����Ƥ���ե���Ȥ��ɲä��ƥե���Ȥ���
|
1893
|
-
����Ū�ˤϰ����Υե���Ȥ�̵���ä�ʸ������
|
1894
|
-
�������ե���ȥե�������䴰����롣
|
1895
|
-
|
1896
|
-
--- SDL::Kanji#setCodingSystem(sys)
|
1897
|
-
--- SDL::Kanji#set_coding_system
|
1898
|
-
ʸ�������ɤ���ꤹ�롣
|
1899
|
-
sys�˻���Ǥ���Τ�SDL::Kanji::EUC,SDL::Kanji::SJIS,SDL::Kanji::JIS
|
1900
|
-
�Τ����줫��
|
1901
|
-
|
1902
|
-
--- SDL::Kanji#textwidth(text)
|
1903
|
-
���ꤷ��ʸ����������֤���
|
1904
|
-
|
1905
|
-
--- SDL::Kanji#width
|
1906
|
-
ASCII��ʸ���������֤���
|
1907
|
-
|
1908
|
-
--- SDL::Kanji#height
|
1909
|
-
�ե���Ȥι⤵���֤�
|
1910
|
-
|
1911
|
-
--- SDL::Kanji#put(surface,text,x,y,r,g,b)
|
1912
|
-
surface��x,y�˻��ꤷ��ʸ��������褹�롣
|
1913
|
-
|
1914
|
-
--- SDL::Kanji#putTate(surface,text,x,y,r,g,b)
|
1915
|
-
--- SDL::Kanji#put_tate(surface,text,x,y,r,g,b)
|
1916
|
-
surface��x,y�˻��ꤷ��ʸ�����Ľ����褹�롣
|
1917
|
-
ASCIIʸ���νĽϤǤ��ʤ���
|
1918
|
-
|
1919
|
-
=== SDL::TTF
|
1920
|
-
|
1921
|
-
�ԣ����ԣ����ե���Ȥ�ɽ�����饹�����Ѥˤ�SDL_ttf��ɬ�ס�
|
1922
|
-
|
1923
|
-
==== �����ѡ����饹
|
1924
|
-
|
1925
|
-
Object
|
1926
|
-
|
1927
|
-
==== ���饹��å�
|
1928
|
-
|
1929
|
-
--- SDL::TTF.init
|
1930
|
-
TrueTypeFont��Ȥ�����ˤϺǽ�ˤ��δؿ���ƤФʤ���Фʤ�ʤ���
|
1931
|
-
|
1932
|
-
--- SDL::TTF.open(filename,size,index=0)
|
1933
|
-
TrueTypeFont��ե����뤫���ɤ߽Ф������Υ�������size�ǻ��ꤹ�롣
|
1934
|
-
|
1935
|
-
index�Ϥ��Υե���Ȥ�ʣ����face����äƤ�����ˤɤ�face��
|
1936
|
-
�Ȥ�������ꤹ���ΤǤ��롣���ε�ǽ��SDL_ttf 2.0.4�ʹߤ�
|
1937
|
-
���Ѳ�ǽ�Ǥ��롣
|
1938
|
-
|
1939
|
-
==== ��å�
|
1940
|
-
|
1941
|
-
--- SDL::TTF#style
|
1942
|
-
�ե���ȤΥ���������֤���
|
1943
|
-
|
1944
|
-
--- SDL::TTF#style=(style)
|
1945
|
-
�ե���ȤΥ�����������ꤹ�롣����Ǥ���Τϰʲ��������OR��Ȥä���Ρ�
|
1946
|
-
SDL::TTF::STYLE_NORMAL
|
1947
|
-
SDL::TTF::STYLE_BOLD
|
1948
|
-
SDL::TTF::STYLE_ITALIC
|
1949
|
-
SDL::TTF::STYLE_UNDERLINE
|
1950
|
-
|
1951
|
-
--- SDL::TTF#textSize(text)
|
1952
|
-
--- SDL::TTF#text_size(text)
|
1953
|
-
text�����褷���Ȥ����礭����[��,�⤵]�Ȥ���������֤�
|
1954
|
-
|
1955
|
-
--- SDL::TTF#faces
|
1956
|
-
SDL_ttf 2.0.4 ��ɬ��
|
1957
|
-
face�ο����֤���
|
1958
|
-
|
1959
|
-
--- SDL::TTF#fixedWidth?
|
1960
|
-
--- SDL::TTF#fixed_width?
|
1961
|
-
SDL_ttf 2.0.4 ��ɬ��
|
1962
|
-
�ե���Ȥ��������Ǥ��뤫�ɤ������֤���
|
1963
|
-
|
1964
|
-
--- SDL::TTF#familyName
|
1965
|
-
--- SDL::TTF#family_name
|
1966
|
-
SDL_ttf 2.0.4 ��ɬ��
|
1967
|
-
font family ��̾�����֤���
|
1968
|
-
|
1969
|
-
--- SDL::TTF#styleName
|
1970
|
-
--- SDL::TTF#style_name
|
1971
|
-
SDL_ttf 2.0.4 ��ɬ��
|
1972
|
-
�ե���Ȥ�style��̾�����֤���
|
1973
|
-
|
1974
|
-
--- SDL::TTF#height
|
1975
|
-
�ե���Ȥι⤵���֤����̾�ϻ��ꤷ���ݥ���Ȥ�Ʊ����
|
1976
|
-
|
1977
|
-
--- SDL::TTF#ascent
|
1978
|
-
�ե���Ȥ�ascent(�١����饤���ü�ޤǤ����а���)���֤���
|
1979
|
-
�١����饤�����Ф������ͤ��֤���
|
1980
|
-
|
1981
|
-
--- SDL::TTF#descent
|
1982
|
-
�ե���Ȥ�descent(�١����饤�鲼ü�ޤǤ����а���)���֤���
|
1983
|
-
�١����饤�����Ф�����ͤ��֤���
|
1984
|
-
|
1985
|
-
--- SDL::TTF#lineSkip
|
1986
|
-
--- SDL::TTF#line_skip
|
1987
|
-
���Υե���ȤιԴ֤Ȥ��ƿ侩������ͤ��֤���
|
1988
|
-
|
1989
|
-
--- SDL::TTF#drawSolidUTF8(dest,text,x,y,r,g,b)
|
1990
|
-
--- SDL::TTF#draw_solid_utf8(dest,text,x,y,r,g,b)
|
1991
|
-
self�Υե���������dest(Surface�Υ�����)��String text��
|
1992
|
-
dest�ΰ���(x,y)�ν�˽��ࡣ����r,g,b�Ƿ����롣
|
1993
|
-
Ʃ����(ColorKey)��ͭ���Ǥ��롣text��UTF-8��Ȥ���
|
1994
|
-
|
1995
|
-
--- SDL::TTF#drawBlendedUTF8(dest,text,x,y,r,g,b)
|
1996
|
-
--- SDL::TTF#draw_blended_utf8(dest,text,x,y,r,g,b)
|
1997
|
-
drawSolidUTF8��Ʊ�͡�drawSolidUTF8������ʼ������褬�Ǥ��롣
|
1998
|
-
|
1999
|
-
--- SDL::TTF#drawShadedUTF8(dest,text,x,y,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b)
|
2000
|
-
--- SDL::TTF#draw_shaded_utf8(dest,text,x,y,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b)
|
2001
|
-
drawSolidUTF8��Ʊ�͡��������ʬ�θ�¦��bg_r,bg_g,bg_b�ǻ��ꤷ��
|
2002
|
-
�����ɤ��٤���뤳�Ȥ�drawSolidUTF8�Ȱۤʤ롣
|
2003
|
-
|
2004
|
-
--- SDL::TTF#renderSolidUTF8(text,r,g,b)
|
2005
|
-
--- SDL::TTF#render_solid_utf88(text,r,g,b)
|
2006
|
-
drawSolidUTF8�����褵���ʸ���������줿�����ե������������롣
|
2007
|
-
���Ի��ˤ�nil���֤���
|
2008
|
-
|
2009
|
-
--- SDL::TTF#renderBlendedUTF8(text,r,g,b)
|
2010
|
-
--- SDL::TTF#render_blended_utf8(text,r,g,b)
|
2011
|
-
((<SDL::TTF#renderSolidUTF8>))��Ʊ�͡�drawSolidUTF8��
|
2012
|
-
drawBlendedUTF8�ˤʤ롣
|
2013
|
-
|
2014
|
-
--- SDL::TTF#renderShadedUTF8(text,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b)
|
2015
|
-
--- SDL::TTF#render_shaded_utf8(text,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b)
|
2016
|
-
((<SDL::TTF#renderSolidUTF8>))��Ʊ�͡�drawSolidUTF8��
|
2017
|
-
drawShadedUTF8�ˤʤ롣
|
2018
|
-
|
2019
|
-
== MPEG��������
|
2020
|
-
|
2021
|
-
���ε�ǽ��smpeg�Ȥ����饤�֥��ˤ�ä�����Ƥ��롣
|
2022
|
-
��äƤ��ε�ǽ��Ȥ�����ˤ�smpeg��ɬ�פǤ��롣
|
2023
|
-
|
2024
|
-
������������������Ͻ��������((<SDL.init>))�ΰ����Ȥ���SDL::INIT_AUDIO��Ϳ����
|
2025
|
-
���θ�((<SDL::Mixer.open>))��Ƥ�ɬ�פ����롣
|
2026
|
-
|
2027
|
-
�ޤ����ε�ǽ���������̥���åɤ��äƤ��Υ���å���Ǻ����롼�����
|
2028
|
-
�Ƥ֤��Ȥˤ�äƼ¸�����Ƥ��롣���Τ��������Ϻ������������褵���
|
2029
|
-
���륵���ե����˥����������ƤϤ����ʤ���
|
2030
|
-
�⤦��ġ�SDL_Mixer�β���������ǽ��եå����Ƥ��뤿�ᡢ������ȼ��mpeg������
|
2031
|
-
�Ĥޤ�((<SDL::MPEG#enableAudio>))�˿���Ϳ����((<SDL::MPEG#play>))
|
2032
|
-
��ƤӤ��������ˤϡ�((<SDL::Mixer>))�β���������ǽ��Ʊ���ˤ����ѤǤ��ʤ���
|
2033
|
-
|
2034
|
-
���������¤��Ф��Ƥϡ����ڤΥ����å���Ruby/SDL�ǤϹԤäƤ��ޤ���ä�
|
2035
|
-
MPEG������ǽ��Ȥ����ˤ����դ��Ƥ���������
|
2036
|
-
|
2037
|
-
=== SDL::MPEG
|
2038
|
-
|
2039
|
-
MPEG�Υǡ�����ɽ����
|
2040
|
-
|
2041
|
-
==== �����ѡ����饹
|
2042
|
-
|
2043
|
-
Object
|
2044
|
-
|
2045
|
-
==== ���饹��å�
|
2046
|
-
|
2047
|
-
--- SDL::MPEG.load(filename)
|
2048
|
-
--- SDL::MPEG.new(filename)
|
2049
|
-
MPEG�ե�������ɤ߹��ߡ�SDL::MPEG�Υ������֤���
|
2050
|
-
|
2051
|
-
==== ��å�
|
2052
|
-
|
2053
|
-
--- SDL::MPEG#info
|
2054
|
-
MPEG�θ��ߤξ�����֤����֤��ͤ�SDL::MPEG::Info�Υ�����
|
2055
|
-
|
2056
|
-
--- SDL::MPEG#enableAudio(enable)
|
2057
|
-
--- SDL::MPEG#enable_audio(enable)
|
2058
|
-
�����κ����뤫�ɤ������ꤹ�롣true�Ǻ�����false�Ǻ������ʤ���
|
2059
|
-
����Ǥ��롣
|
2060
|
-
|
2061
|
-
--- SDL::MPEG#enableVideo(enable)
|
2062
|
-
--- SDL::MPEG#enable_video(enable)
|
2063
|
-
�����κ����뤫�ɤ������ꤹ�롣true�Ǻ�����false�Ǻ������ʤ���
|
2064
|
-
����Ǥ��롣
|
2065
|
-
|
2066
|
-
--- SDL::MPEG#status
|
2067
|
-
MPEG���ȥ��θ��ߤξ��֤��֤����֤��ͤϰʲ����̤ꡣ
|
2068
|
-
SDL::MPEG::ERROR
|
2069
|
-
SDL::MPEG::STOPPED
|
2070
|
-
SDL::MPEG::PLAYING
|
2071
|
-
|
2072
|
-
--- SDL::MPEG#setVolume(volume)
|
2073
|
-
--- SDL::MPEG#set_volume(volume)
|
2074
|
-
�ܥ�塼�����ꤹ�롣0����100�ޤǤ�ͭ����
|
2075
|
-
|
2076
|
-
--- SDL::MPEG#setDisplay(surface)
|
2077
|
-
--- SDL::MPEG#set_display(surface)
|
2078
|
-
��������������ºݤ����褹�륵���ե�������ꤹ�롣
|
2079
|
-
|
2080
|
-
--- SDL::MPEG#setLoop(repeat)
|
2081
|
-
--- SDL::MPEG#set_loop(repeat)
|
2082
|
-
�������롼�פ��뤫�ɤ������ꤹ�롣true�ǥ롼�פ��롢false�ǥ롼�פ���
|
2083
|
-
���Ȥʤ롣
|
2084
|
-
|
2085
|
-
--- SDL::MPEG#scaleXY(w,h)
|
2086
|
-
--- SDL::MPEG#scale_xy(w,h)
|
2087
|
-
�����������礭������ w ���⤵ h �˻��ꤹ�롣
|
2088
|
-
|
2089
|
-
--- SDL::MPEG#scale(scale)
|
2090
|
-
�����������礭����scale�ܤ˻��ꤹ�롣
|
2091
|
-
|
2092
|
-
--- SDL::MPEG#move(x,y)
|
2093
|
-
���������κ���ΰ��֤�(x,y)�˻��ꤹ�롣
|
2094
|
-
|
2095
|
-
--- SDL::MPEG#setDisplayRegion(x,y,w,h)
|
2096
|
-
--- SDL::MPEG#set_display_region(x,y,w,h)
|
2097
|
-
����������setDisplay�ǻ��ꤷ�������ե�����Ǥ������ϰϤ���ꤹ�롣
|
2098
|
-
|
2099
|
-
--- SDL::MPEG#play
|
2100
|
-
MPEG��������롣
|
2101
|
-
|
2102
|
-
����: ������ˤ�setDisplay�ǻ��ꤷ�������ե����˥����������Ƥ�
|
2103
|
-
�����ʤ���
|
2104
|
-
|
2105
|
-
--- SDL::MPEG#pause
|
2106
|
-
�����������Ǥ��롣
|
2107
|
-
|
2108
|
-
--- SDL::MPEG#stop
|
2109
|
-
��������ߤ��롣
|
2110
|
-
|
2111
|
-
--- SDL::MPEG#rewind
|
2112
|
-
�������֤���ֺǽ�ˤ��롣
|
2113
|
-
|
2114
|
-
--- SDL::MPEG#seek(bytes)
|
2115
|
-
bytes�Х��Ȥΰ��֤˺������֤��ư���롣
|
2116
|
-
|
2117
|
-
--- SDL::MPEG#skip(seconds)
|
2118
|
-
seconds�ú������֤������˰�ư�����롣
|
2119
|
-
|
2120
|
-
--- SDL::MPEG#renderFrame(framenum)
|
2121
|
-
--- SDL::MPEG#render_frame(framenum)
|
2122
|
-
framenum�ܤΥե졼������褹�롣
|
2123
|
-
|
2124
|
-
--- SDL::MPEG#setFilter(filter)
|
2125
|
-
--- SDL::MPEG#set_filter(filter)
|
2126
|
-
���������ˤ�����ե��륿����ꤹ�롣�ʲ��Υե��륿������ǽ��
|
2127
|
-
SDL::MPEG::NULL_FILTER �ե��륿�ʤ�
|
2128
|
-
SDL::MPEG::BILINEAR_FILTER �Х���˥��ե��륿
|
2129
|
-
SDL::MPEG::DEBLOCKING_FILTER
|
2130
|
-
|
2131
|
-
=== SDL::MPEG::Info
|
2132
|
-
|
2133
|
-
((<SDL::MPEG>))�ξ������ġ�
|
2134
|
-
((<SDL::MPEG#info>))�ʤɤǤ��Υ��饹�Υ��������롣
|
2135
|
-
|
2136
|
-
==== �����ѡ����饹
|
2137
|
-
|
2138
|
-
Object
|
2139
|
-
|
2140
|
-
==== ��å�
|
2141
|
-
|
2142
|
-
--- SDL::MPEG::Info#has_audio
|
2143
|
-
--- SDL::MPEG::Info#has_video
|
2144
|
-
--- SDL::MPEG::Info#width
|
2145
|
-
--- SDL::MPEG::Info#height
|
2146
|
-
--- SDL::MPEG::Info#current_frame
|
2147
|
-
--- SDL::MPEG::Info#current_fps
|
2148
|
-
--- SDL::MPEG::Info#audio_string
|
2149
|
-
--- SDL::MPEG::Info#audio_current_frame
|
2150
|
-
--- SDL::MPEG::Info#current_offset
|
2151
|
-
--- SDL::MPEG::Info#total_size
|
2152
|
-
--- SDL::MPEG::Info#current_time
|
2153
|
-
--- SDL::MPEG::Info#total_time
|
2154
|
-
|
2155
|
-
== �������
|
2156
|
-
|
2157
|
-
=== �⥸�塼��ؿ�
|
2158
|
-
|
2159
|
-
--- SDL.getTicks
|
2160
|
-
--- SDL.get_ticks
|
2161
|
-
((<SDL.init>))���ƤФ�Ƥ���λ��֤�ߥ��ä��֤���
|
2162
|
-
49���ۤɥ�����ץȤ����餻�ĤŤ����0�ˤ�ɤ�Τ����ա�
|
2163
|
-
|
2164
|
-
--- SDL.delay(ms)
|
2165
|
-
�ߥ��äǻ��ꤵ�줿���֤����Ԥġ�
|
2166
|
-
OS�Υ������塼��Τ�����ꤷ�����֤���Ĺ���ԤIJ�ǽ�������롣
|
2167
|
-
|
2168
|
-
== SDLSKK�ˤ�����ܸ����ϵ�ǽ
|
2169
|
-
|
2170
|
-
SDLSKK�ˤ�����ܸ����ϵ�ǽ��¸����뤿��ε�ǽ��
|
2171
|
-
SDLSKK�饤�֥�꤬ɬ�פǤ��롣
|
2172
|
-
|
2173
|
-
����˴ؤ��뤹�٤ƤΥ��饹��SDL::SKK�β��ˤ��롣
|
2174
|
-
|
2175
|
-
�����Ȥ�����ˤ�((<SDL.init>))��Ƥ�����((<SDL::Event2.enableUNICODE>))��
|
2176
|
-
�Ƥ�ɬ�פ����롣
|
2177
|
-
|
2178
|
-
=== �⥸�塼��ؿ�
|
2179
|
-
|
2180
|
-
--- SDL::SKK.encoding=(encoding)
|
2181
|
-
���Ѥ��륨���ǥ�����ꤷ�ޤ����ʲ���3�Ĥ�����Ǥ��ޤ���
|
2182
|
-
* SDL::SKK::EUCJP
|
2183
|
-
* SDL::SKK::UTF8
|
2184
|
-
* SDL::SKK::SJIS
|
2185
|
-
|
2186
|
-
--- SDL::SKK.encoding
|
2187
|
-
�������ꤷ�Ƥ��륨���ǥ����֤��ޤ���
|
2188
|
-
|
2189
|
-
=== SDL::SKK::Context
|
2190
|
-
|
2191
|
-
���Ϥξ��֤��ݻ����륯�饹��
|
2192
|
-
|
2193
|
-
==== �����ѡ����饹
|
2194
|
-
|
2195
|
-
Object
|
2196
|
-
|
2197
|
-
==== ���饹��å�
|
2198
|
-
|
2199
|
-
--- SDL::SKK::Context.new(dict,romkana_table,bind,use_minibuffer)
|
2200
|
-
((<SDL::SKK::Context>))�Υ�������������������֤���
|
2201
|
-
dict��romkana_table�Ȥ������Ѥ��뼭��ȥ�����̾�Ѵ��ε�§�ξ���
|
2202
|
-
��Ϳ���롣bind�Ȥ��ƥ����Х���ɤ�Ϳ���롣use_minibuffer�ˤ����
|
2203
|
-
�ߥ˥Хåե������ѤǤ��롣
|
2204
|
-
|
2205
|
-
==== ��å�
|
2206
|
-
|
2207
|
-
--- SDL::SKK::Context#input(event)
|
2208
|
-
�����ܡ��ɤ�������Ϥ��åɡ�
|
2209
|
-
|
2210
|
-
--- SDL::SKK::Context#str
|
2211
|
-
���Ϥ��줿ʸ������֤���åɡ�
|
2212
|
-
|
2213
|
-
--- SDL::SKK::Context#render_str(font,r,g,b)
|
2214
|
-
����ʸ���������줿((<SDL::Surface>))�Υ������֤���åɡ�
|
2215
|
-
|
2216
|
-
--- SDL::SKK::Context#render_minibuffer_str(font,r,g,b)
|
2217
|
-
�ߥ˥Хåե���ʸ���������줿((<SDL::Surface>))�Υ�����
|
2218
|
-
�֤���åɡ�
|
2219
|
-
|
2220
|
-
--- SDL::SKK::Context#clear
|
2221
|
-
����ʸ��������Ͼ��֤ꥢ���ƽ�����֤ˤ�ɤ���
|
2222
|
-
|
2223
|
-
--- SDL::SKK::Context#clear_text
|
2224
|
-
context��context�Υ⡼�ɤ����������ϥ⡼�ɡ�����ե��٥å����ϥ⡼�ɡ�
|
2225
|
-
JISX0208����ե��٥å����ϥ⡼�ɤΤ����줫�Ǥ���Ф��Υ⡼�ɤ�
|
2226
|
-
�ݻ������ޤ����ϥƥ����Ȥ���ˤ��롣
|
2227
|
-
|
2228
|
-
ʣ���Ԥ����Ϥ�¸���������硢SDLSKK_Context_clear��Ƥ֤�
|
2229
|
-
�⡼�ɤ��������ϥ⡼�ɤ���äƤ��ޤ��Τ��Լ����Ǥ����硢���δؿ���
|
2230
|
-
�Ƥ֤Ȥ褤��
|
2231
|
-
|
2232
|
-
�ޤ������åȥХåե������Ƥ���¸����롣
|
2233
|
-
|
2234
|
-
--- SDL::SKK::Context#get_basic_mode
|
2235
|
-
context�Υ⡼�ɤ����������ϥ⡼�ɡ�����ե��٥å����ϥ⡼�ɡ�
|
2236
|
-
JISX0208����ե��٥å����ϥ⡼�ɤΤ����줫�Ǥ���п�����
|
2237
|
-
�ʳ��Ǥϵ����֤���������Ͽ�⡼�ɤΤȤ��ʤɤ���֤���
|
2238
|
-
|
2239
|
-
���줬���ΤȤ��˥�������������Ͻ�λ�Ȥߤʤ���
|
2240
|
-
�ʤɤȤ��ä����������Ѥ��롣
|
2241
|
-
|
2242
|
-
=== SDL::SKK::Dictionary
|
2243
|
-
|
2244
|
-
��������饹��
|
2245
|
-
|
2246
|
-
==== �����ѡ����饹
|
2247
|
-
|
2248
|
-
Object
|
2249
|
-
|
2250
|
-
==== ���饹��å�
|
2251
|
-
|
2252
|
-
--- SDL::SKK::Dictionary.new
|
2253
|
-
���֥������Ȥ��֤���
|
2254
|
-
�ǽ�ξ��֤Ǥϼ�������Ƥ϶��Ǥ��롣
|
2255
|
-
|
2256
|
-
==== ��å�
|
2257
|
-
|
2258
|
-
--- SDL::SKK::Dictionary#load(dictfile,users)
|
2259
|
-
�ե����뤫�鼭��˥ǡ������ɤߤ��ࡣ
|
2260
|
-
users�ˤ�����ɤߤ��༭��ϥ桼������Ȥ��ư����롣
|
2261
|
-
|
2262
|
-
--- SDL::SKK::Dictionary#save(filename)
|
2263
|
-
�桼�������ե�����˽�����
|
2264
|
-
|
2265
|
-
=== SDL::SKK::RomKanaRuleTable
|
2266
|
-
|
2267
|
-
���������餫�ʤؤ��Ѵ��ε�§��路�����饹��
|
2268
|
-
|
2269
|
-
==== �����ѡ����饹
|
2270
|
-
|
2271
|
-
Object
|
2272
|
-
|
2273
|
-
==== ���饹��å�
|
2274
|
-
|
2275
|
-
--- SDL::SKK::RomKanaRuleTable.new(table_file)
|
2276
|
-
�ե����뤫��ǡ������ɤߤ���((<SDL::SKK::RomKanaRuleTable>))��
|
2277
|
-
�������������롣
|
2278
|
-
|
2279
|
-
==== ��å�
|
2280
|
-
|
2281
|
-
=== SDL::SKK::Keybind
|
2282
|
-
|
2283
|
-
SDLSKK�ǤΥ����Х���ɤ�ɽ�魯���饹��
|
2284
|
-
|
2285
|
-
==== �����ѡ����饹
|
2286
|
-
|
2287
|
-
Object
|
2288
|
-
|
2289
|
-
==== ���饹��å�
|
2290
|
-
|
2291
|
-
--- SDL::SKK::Keybind.new
|
2292
|
-
�����Х���ɥ��֥������Ȥ���ݤ��롣
|
2293
|
-
�ǽ�ϥ����Х���ɤ϶��Ǥ��롣
|
2294
|
-
|
2295
|
-
==== ��å�
|
2296
|
-
|
2297
|
-
--- SDL::SKK::Keybind#set_key(key_str,cmd_str)
|
2298
|
-
|
2299
|
-
�����Х���ɤ����ꤹ�롣
|
2300
|
-
key_str�Ȥ���Ϳ������ʸ����ϰʲ����̤�
|
2301
|
-
* ����ե��٥åȡ�% �ʤɤ�ascii�ε���
|
2302
|
-
* "SPC" "TAB" "DEL" "RET" "UP" "DOWN" "RIGHT" "LEFT" "INSERT" "HOME" "END"
|
2303
|
-
"PAGEUP" "PAGEDOWN" "F1" "F2" "F3" "F4" "F5" "F6" "F7" "F8" "F9" "F10"
|
2304
|
-
"F11" "F12" "F13" "F14" "F15" "HELP"
|
2305
|
-
* "C-a" "M-C-a" �ʤɤȤ��ä���������
|
2306
|
-
|
2307
|
-
cmd_str�Ȥ���Ϳ������ʸ����ϰʲ����̤�
|
2308
|
-
* "backward-char",
|
2309
|
-
* "forward-char",
|
2310
|
-
* "backward-delete-char",
|
2311
|
-
* "delete-char",
|
2312
|
-
* "kakutei",
|
2313
|
-
* "kettei",
|
2314
|
-
* "space",
|
2315
|
-
* "keyboard-quit",
|
2316
|
-
* "set-mark-command",
|
2317
|
-
* "kill-region",
|
2318
|
-
* "yank",
|
2319
|
-
* "copy",
|
2320
|
-
* "graph-char",
|
2321
|
-
* "upper-char",
|
2322
|
-
* "lower-char",
|
2323
|
-
* "abbrev-input",
|
2324
|
-
* "latin-mode",
|
2325
|
-
* "previous-candidate",
|
2326
|
-
* "jisx0208-mode",
|
2327
|
-
* "toggle-kana",
|
2328
|
-
* "beginning-of-line"
|
2329
|
-
* "end-of-line"
|
2330
|
-
* "do-nothing"
|
2331
|
-
��������"a" "/" �ʤɤ�ascii character ��ʸ���Υ����ˤϥǥե���Ȱʳ���
|
2332
|
-
�����Х���ɤϤ��ʤ��褦�ˤ��Ƥ�������
|
2333
|
-
|
2334
|
-
ɸ��Υ����Х���ɤ��ѹ��������Ȥ������ϡ��ޤ�
|
2335
|
-
((<SDL::SKK::Keybind#set_default_key>))��Ƥ�ǡ��ǥե���ȤΥ����Х���ɤ�
|
2336
|
-
���ꤷ�Ƥ���((<SDL::SKK::Keybind#set_key>))��Ƥ�Ǥ�������
|
2337
|
-
|
2338
|
-
--- SDL::SKK::Keybind#set_default_key
|
2339
|
-
|
2340
|
-
ɸ��Ū�ʥ����Х���ɤ����ꤹ��
|
2341
|
-
|
2342
|
-
--- SDL::SKK::Keybind#unset_key(key_str)
|
2343
|
-
|
2344
|
-
���ꤷ�������Υ����Х���ɤ�ä�
|
2345
|
-
|
2346
|
-
== OpenGL�ˤ��3D����
|
2347
|
-
Ruby/SDL�Ǥϡ�Ruby�Ѥ�OpenGL Interface��ʻ�Ѥ��뤳�Ȥ�3D���褬�¸���ǽ�Ǥ��롣
|
2348
|
-
OpenGL Interface�Υ��ȡ���Τ������ʤɤˤĤ��Ƥϡ�README.ja��
|
2349
|
-
���Ȥ��衣Windows�ѤΥХ��ʥ�ˤ�ɬ�פʤ�Τ����٤ƴޤޤ�Ƥ��롣
|
2350
|
-
|
2351
|
-
����Ū�ˤϡ��ʲ��Τ��Ȥ�лȤ��롣
|
2352
|
-
(1) sdl��opengl��require�ǥ����ɤ���
|
2353
|
-
(2) ((<SDL.init>))��SDL::INIT_VIDEO�դ��ǸƤ�
|
2354
|
-
(3) ((<SDL.setGLAttr>))��ɬ�פ������
|
2355
|
-
(4) ((<SDL.setVideoMode>))��flag��SDL::OPENGL��ä��ƸƤ�
|
2356
|
-
(5) GL�⥸�塼�������ؿ���Ƥӡ����褹��(�ܤ�����OpenGL Interface�Υɥ�����ȤʤɤȤ���Ȥ褤������)
|
2357
|
-
(6) �������Ƥβ��̤ؤ�ȿ�Ǥϡ�((<SDL.flip>))�ʤɤǤϤʤ���((<SDL.GLSwapBuffersn>))��Ƥ֡�
|
2358
|
-
|
2359
|
-
�ޤ���OpenGL��ȤäƤ���Ȥ��ϡ�((<SDL.blitSurface>))�ʤɤ�SDL��2D���赡ǽ��
|
2360
|
-
�Ȥ��٤��ǤϤʤ������Τ褦�����Ѥ����ꤵ��Ƥ��ʤ�����Ǥ��롣
|
2361
|
-
sample/testgl.rb�ʤɤ����ͤˤʤ�Ǥ�������
|
2362
|
-
|
2363
|
-
=== �⥸�塼��ؿ�
|
2364
|
-
--- SDL.setGLAttr(attr,val)
|
2365
|
-
--- SDL.set_GL_attr(attr,val)
|
2366
|
-
OpenGL°��((|attr|))���ͤ�((|val|))�ˤ��롣
|
2367
|
-
|
2368
|
-
�Ȥ���°���ϰʲ����̤�
|
2369
|
-
* SDL::GL_RED_SIZE
|
2370
|
-
* SDL::GL_GREEN_SIZE
|
2371
|
-
* SDL::GL_BLUE_SIZE
|
2372
|
-
* SDL::GL_ALPHA_SIZE
|
2373
|
-
* SDL::GL_BUFFER_SIZE
|
2374
|
-
* SDL::GL_DOUBLEBUFFER
|
2375
|
-
* SDL::GL_DEPTH_SIZE
|
2376
|
-
* SDL::GL_STENCIL_SIZE
|
2377
|
-
* SDL::GL_ACCUM_RED_SIZE
|
2378
|
-
* SDL::GL_ACCUM_GREEN_SIZE
|
2379
|
-
* SDL::GL_ACCUM_BLUE_SIZE
|
2380
|
-
* SDL::GL_ACCUM_ALPHA_SIZE
|
2381
|
-
|
2382
|
-
--- SDL.getGLAttr(attr)
|
2383
|
-
--- SDL.get_GL_attr(attr)
|
2384
|
-
OpenGL°��((|attr|))���ͤ����롣
|
2385
|
-
((<SDL.setVideoMode>))��Ƥ����˻��ꤷ��°���������̤�Ǥ��뤫��
|
2386
|
-
�����å�����Τ�ͭ�ѤǤ��롣
|
2387
|
-
|
2388
|
-
--- SDL.GLSwapBuffers
|
2389
|
-
--- SDL.GL_swap_buffers
|
2390
|
-
���֥�Хåե������ݡ��Ȥ���Ƥ����硢OpenGL�ΥХåե��������ؤ��롣
|
2391
|
-
|
2392
|
-
== ����¾
|
2393
|
-
=== Linux��'--disable-pthread'��Ȥ�ʤ��������������ˡ
|
2394
|
-
�ʲ������Ƥ���ץȤκǽ���֤��Ƥ����Ф�����������Ǥ����ǽ�������롣
|
2395
|
-
require 'rbconfig'
|
2396
|
-
|
2397
|
-
if RUBY_PLATFORM =~ /linux/
|
2398
|
-
trap('INT','EXIT')
|
2399
|
-
trap('EXIT','EXIT')
|
2400
|
-
end
|
2401
|
-
|
2402
|
-
=end
|