rubysdl 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. data/LICENSE +505 -0
  2. data/MANIFEST +81 -0
  3. data/NEWS.en +144 -0
  4. data/NEWS.ja +151 -0
  5. data/README.en +117 -0
  6. data/README.ja +166 -0
  7. data/SDL_kanji.c +403 -0
  8. data/SDL_kanji.h +48 -0
  9. data/depend +18 -0
  10. data/doc/Makefile +18 -0
  11. data/doc/cdrom.rsd +431 -0
  12. data/doc/collision.rsd +162 -0
  13. data/doc/event.rsd +1487 -0
  14. data/doc/font.rsd +839 -0
  15. data/doc/general.rsd +49 -0
  16. data/doc/init.rsd +175 -0
  17. data/doc/joystick.rsd +387 -0
  18. data/doc/mixer.rsd +837 -0
  19. data/doc/mpeg.rsd +595 -0
  20. data/doc/rsd.rb +125 -0
  21. data/doc/sdlskk.rsd +496 -0
  22. data/doc/time.rsd +45 -0
  23. data/doc/video.rsd +2499 -0
  24. data/doc/wm.rsd +113 -0
  25. data/extconf.rb +92 -0
  26. data/lib/rubysdl_aliases.rb +431 -0
  27. data/lib/sdl.rb +271 -0
  28. data/rubysdl.h +109 -0
  29. data/rubysdl_cdrom.c +176 -0
  30. data/rubysdl_const_list.txt +280 -0
  31. data/rubysdl_doc.en.rd +2180 -0
  32. data/rubysdl_doc_old.rd +2402 -0
  33. data/rubysdl_event.c +346 -0
  34. data/rubysdl_event2.c +417 -0
  35. data/rubysdl_event_key.c +356 -0
  36. data/rubysdl_image.c +53 -0
  37. data/rubysdl_joystick.c +156 -0
  38. data/rubysdl_kanji.c +135 -0
  39. data/rubysdl_main.c +202 -0
  40. data/rubysdl_mixer.c +422 -0
  41. data/rubysdl_mouse.c +96 -0
  42. data/rubysdl_opengl.c +63 -0
  43. data/rubysdl_pixel.c +133 -0
  44. data/rubysdl_ref.html +5550 -0
  45. data/rubysdl_ref.rd +6163 -0
  46. data/rubysdl_rwops.c +90 -0
  47. data/rubysdl_sdlskk.c +312 -0
  48. data/rubysdl_sge_video.c +622 -0
  49. data/rubysdl_smpeg.c +341 -0
  50. data/rubysdl_time.c +36 -0
  51. data/rubysdl_ttf.c +324 -0
  52. data/rubysdl_video.c +749 -0
  53. data/rubysdl_wm.c +71 -0
  54. data/sample/aadraw.rb +24 -0
  55. data/sample/alpha.rb +27 -0
  56. data/sample/alphadraw.rb +25 -0
  57. data/sample/bfont.rb +24 -0
  58. data/sample/cdrom.rb +17 -0
  59. data/sample/collision.rb +97 -0
  60. data/sample/cursor.bmp +0 -0
  61. data/sample/cursor.rb +22 -0
  62. data/sample/ellipses.rb +35 -0
  63. data/sample/event2.rb +32 -0
  64. data/sample/font.bmp +0 -0
  65. data/sample/font.rb +25 -0
  66. data/sample/fpstimer.rb +175 -0
  67. data/sample/icon.bmp +0 -0
  68. data/sample/joy2.rb +81 -0
  69. data/sample/kanji.rb +36 -0
  70. data/sample/movesp.rb +93 -0
  71. data/sample/playmod.rb +14 -0
  72. data/sample/plaympeg.rb +48 -0
  73. data/sample/playwave.rb +16 -0
  74. data/sample/randrect.rb +40 -0
  75. data/sample/sample.ttf +0 -0
  76. data/sample/sdlskk.rb +70 -0
  77. data/sample/sgetest.rb +31 -0
  78. data/sample/stetris.rb +275 -0
  79. data/sample/testgl.rb +166 -0
  80. data/sample/testsprite.rb +68 -0
  81. data/sample/transformblit.rb +41 -0
  82. metadata +121 -0
@@ -0,0 +1,839 @@
1
+ = Font
2
+ * ((< Font���赡ǽ����>))
3
+ * ((<SDL::TTF>))
4
+ * ((<SDL::BMFont>))
5
+ * ((<SDL::Kanji>))
6
+ * �ե���ȴ�Ϣ�᥽�å�
7
+ TOC
8
+
9
+ == Font���赡ǽ����
10
+ Ruby/SDL ��3����ΰۤʤ�ե�������襷���ƥ����äƤ��ޤ���
11
+ ((<SDL_ttf|URL:http://www.libsdl.org/projects/SDL_ttf/index.html>))
12
+ �Ǥ� True Type Font �����衢
13
+ ((<SGE|URL:http://www.etek.chalmers.se/~e8cal1/sge/index.html>))
14
+ �Ǥ��ȼ�����/SFont�����ǤΥӥåȥޥåץե���Ȥ����衢
15
+ ((<SDL_kanji|URL:http://shinh.skr.jp/sdlkanji/>)) �Ǥ� bdf �ե���Ȥ�����
16
+ �Ǥ���
17
+ ���Τ��줾��ˡ�@[TTF]��@[BMFont]��@[Kanji] �Ȥ������饹�������Ƥ���
18
+ ���ơ����줾��ۤʤ�᥽�åɡ���ǽ������ޤ���
19
+
20
+ ����ˤϤ��줾��ʲ��Τ褦����ħ������ޤ���Ŭ�ڤ˻Ȥ��櫓�Ƥ���������
21
+ * SDL::TTF
22
+
23
+ �ե���ȥե������̾���� *.ttf �� *.ttc ������Ū�Ǥ���
24
+ �ե���ȥǡ����ξ��󤬥٥��ȥ�ǡ����Ǥ��뤿�ᡢ��Ĥ�
25
+ �ե���ȥǡ����������Ǥ�դ��礭����ʸ��������Ǥ�������������ޤ���
26
+ �ե���ȥǡ������������Τ����ݤȤ��������Ǥ����Ȥ��˼���
27
+ ����Τ����ѤǤ��礦��
28
+
29
+ * SDL::BMFont
30
+
31
+ �ե���ȥե�����Ϥ���ʤ�ӥåȥޥåץե�����(*.bmp) �� PNG �ե�����(*.png)
32
+ ��Ȥ��ޤ����ȼ������ξ�硢������������ʸ���ǡ����򲣤�256���¤٤���Τ�
33
+ �ߤʤ������Τ��줾�줬 ASCII �����ɤ��б����Ƥ����Ȥβ�ᤵ��ޤ���
34
+ �Ĥޤ� ���� 8 �ԥ����롢�⤵ 16�ԥ�����Υǡ����ʤ��
35
+ �� 8*256 = 2048���⤵ 16�ԥ�����β����Ȥʤ�ޤ���
36
+ �ե���ȥǡ����򼫺��Τ����Ū�ưפʤ��Ȥ������Ǥ���
37
+ ʿ��̾�������������褬�Ǥ��ʤ����ȡ�����̾�����ʸ����
38
+ ����Ǥ��ʤ����Ȥ������Ǥ���
39
+
40
+ �⤦��ġ����Υ��饹�� ((<SFont|URL:http://www.linux-games.com/sfont/>))
41
+ �����ⰷ�����Ȥ��Ǥ��ޤ��������ӥåȥޥåץե���Ȥΰ��Ǥ�����
42
+ ʸ�����������ѤǤ������ʤɤ������Ǥ����ܤ����ϥ����򸫤Ƥ���������
43
+
44
+ * SDL::Kanji
45
+
46
+ �ե���ȥե�����γ�ĥ�Ҥˤ�bdf���Ȥ��ޤ����ӥåȥޥåץե���Ȥ�
47
+ ���Ǥ���ʣ���Υե���ȥե�����(�㤨�Х���ե��٥åȤ����ܸ�)
48
+ �Υǡ�����ʻ���ƻȤ���ǽ����äƤ��ޤ���
49
+ ʿ��̾�������������褬��ǽ�����������Ǥ���
50
+ �����ϡ�bdf �ե���ȤϤ��ޤ����Ū�ʷ����ǤϤʤ�����ե���Ȥ��Ѱդ�
51
+ ���ݤǤ��뤳�ȤǤ���
52
+
53
+ == SDL::TTF
54
+ METHODS(TTF)
55
+
56
+ TrueTypeFont��ɽ�魯���饹�Ǥ������Υ��饹��Ȥ�����ˤϡ�
57
+ ((<SDL_ttf|URL:http://www.libsdl.org/projects/SDL_ttf/index.html>))
58
+ ��ɬ�פǤ����Хå�����ɤ�((<Freetype|URL:http://www.freetype.org/>))
59
+ �����Ѥ��ޤ���
60
+
61
+ �ޤ����ե���ȤΥ饤���󥹤ˤ����դ��Ƥ����������㤨�� Windows ��°��
62
+ �ե���ȤϺ����ۤ�ǧ����Ƥ��ޤ���
63
+
64
+ == SDL::BMFont
65
+ METHODS(BMFont)
66
+
67
+ �ӥåȥޥåץե���Ȥ�ɽ�魯���饹�Ǥ������Υ��饹��Ȥ�����ˤ�
68
+ ((<SGE|URL:http://www.etek.chalmers.se/~e8cal1/sge/index.html>))
69
+ ��ɬ�פǤ���
70
+
71
+ == SDL::Kanji
72
+ METHODS(Kanji)
73
+
74
+ bdf�ե���Ȥ�ɽ�魯���饹�Ǥ���
75
+
76
+ == �ե���ȴ�Ϣ�᥽�å�
77
+ %%%
78
+ NAME init
79
+ MOD TTF
80
+ TYPE .
81
+ DEP SDL_ttf
82
+ PURPOSE TTF���赡ǽ���������ޤ���
83
+
84
+ PROTO
85
+ init
86
+
87
+ DESC
88
+ TTF���赡ǽ���������ޤ���
89
+ @[TTF] ��¾�Υ᥽�åɤ�Ƥ����ˤ����Ƥ�Ǥ���������
90
+ @[init] ��Ƥ����˸Ƥ�Ǥ⤫�ޤ��ޤ���
91
+
92
+ SEEALSO
93
+ TTF.init?
94
+
95
+ %%
96
+ NAME init?
97
+ MOD TTF
98
+ TYPE .
99
+ DEP SDL_ttf
100
+ PURPOSE TTF���赡ǽ�����������Ƥ��뤫�ɤ��������ޤ���
101
+ RVAL true/false
102
+
103
+ PROTO
104
+ init?
105
+
106
+ DESC
107
+ TTF���赡ǽ�����˽��������Ƥ����true�򡢤��ʤ����
108
+ false���֤��ޤ���
109
+
110
+ SEEALSO
111
+ TTF.init
112
+
113
+ %%
114
+ NAME open
115
+ MOD TTF
116
+ TYPE .
117
+ DEP SDL_ttf
118
+ PURPOSE �ե����뤫��ե���Ȥ��ɤߤ��ߤޤ���
119
+ RVAL SDL::TTF
120
+
121
+ PROTO
122
+ open(filename, ptsize, index=nil)
123
+
124
+ DESC
125
+ $[filename] �ǻ��ꤷ���ե���ȥե������ $[ptsize] �ݥ����
126
+ ���ɤ߹��ߤޤ���$[index] �� face index �����Ǥ��ޤ���
127
+ �ǥե���ȤǤ� 0 �Ǥ���
128
+
129
+ RET
130
+ @[TTF] �Υ��󥹥��󥹤��֤��ޤ���
131
+
132
+ EXCEPTION *
133
+
134
+ EXAMPLE
135
+ SDL::TTF.init
136
+ font = SDL::TTF.open("font.ttf", 32, 0)
137
+
138
+ %%
139
+ NAME style
140
+ MOD TTF
141
+ TYPE #
142
+ DEP SDL_ttf
143
+ PURPOSE �ե���Ȥ����襹��������֤��ޤ���
144
+ RVAL UINT
145
+
146
+ PROTO
147
+ style
148
+
149
+ DESC
150
+ �ե���� $[self] �����襹�������ʲ����ͤ������¤�Ȥä���Τ��֤��ޤ���
151
+ * SDL::TTF::STYLE_BOLD
152
+ * SDL::TTF::STYLE_ITALIC
153
+ * SDL::TTF::STYLE_UNDERLINE
154
+ �ʾ�Τɤ�����ꤵ��Ƥ��ʤ����� SDL::TTF::STYLE_NORMAL ���֤���ޤ���
155
+
156
+ EXAMPLE
157
+ print "The font style is:"
158
+
159
+ print " normal" if font.style == SDL::TTF::STYLE_NORMAL
160
+ print " bold" if (font.style & SDL::TTF::STYLE_BOLD) != 0
161
+ print " italic" if (font.style & SDL::TTF::STYLE_ITALIC) != 0
162
+ print " italic" if (font.style & SDL::TTF::STYLE_UNDERLINE) != 0
163
+
164
+ print "\n"
165
+
166
+ SEEALSO
167
+ TTF#style=
168
+
169
+ %%
170
+ NAME style=
171
+ MOD TTF
172
+ TYPE #
173
+ DEP SDL_ttf
174
+ PURPOSE �ե���Ȥ����襹����������ꤷ�ޤ���
175
+
176
+ PROTO
177
+ style=(new_style)
178
+
179
+ DESC
180
+ �ե���� $[self] �����襹������� $[new_style] �����ꤷ�ޤ���
181
+ $[new_style] �ϰʲ�������������¤�Ϳ���Ƥ���������
182
+ * SDL::TTF::STYLE_BOLD
183
+ * SDL::TTF::STYLE_ITALIC
184
+ * SDL::TTF::STYLE_UNDERLINE
185
+
186
+ NOTES
187
+ ���Υ᥽�åɤ�Ƥ֤������Υ�����󥰺Ѥ�ʸ���Υ���å��夬
188
+ �ä���ޤ���
189
+
190
+ EXAMPLE
191
+ # ������å��Τ��ĥܡ�����Τ����ꤹ��
192
+ font.style = SDL::TTF::STYLE_ITALIC | SDL::TTF::STYLE_BOLD
193
+
194
+ # ���褹���
195
+
196
+ # �̾���᤹
197
+ font.style = SDL::TTF::STYLE_NORMAL
198
+
199
+ SEEALSO
200
+ TTF#style
201
+
202
+ %%
203
+ NAME height
204
+ MOD TTF
205
+ TYPE #
206
+ DEP SDL_ttf
207
+ PURPOSE �ե���Ȥ�ʸ���ι⤵���֤��ޤ���
208
+ RVAL Integer
209
+
210
+ PROTO
211
+ height
212
+
213
+ DESC
214
+ �ե���Ȥ�ʸ������ǰ��ֽĤι⤵���⤤��Τι⤵��ԥ���������֤��ޤ���
215
+ �����ͤ�ʸ����ĤˤǤ��������Ť������褹�뤿��˻Ȥ��ޤ������ξ���
216
+ �����ͤ�1��­����ʸ��Ʊ�Τ�����ʤ��ʤ�ޤ���
217
+ Ruby/SDL��ʣ����������θ���Ƥ��ʤ����ᡢ�Դ֤򤭤���ȼ��Τ�
218
+ ��ʬ�Ǥ��ʤ���Фʤ�ޤ���@[TTF#line_skip] �⻲�ͤˤ��Ƥ���������
219
+
220
+ %%
221
+ NAME ascent
222
+ MOD TTF
223
+ TYPE #
224
+ DEP SDL_ttf
225
+ PURPOSE �ե���Ȥ�ascent���֤��ޤ���
226
+ RVAL Integer
227
+
228
+ PROTO
229
+ ascent
230
+
231
+ DESC
232
+ ʸ����ascent(�١����饤�󤫤�ξ����ʬ�ι⤵)�κ����ͤ��֤��ޤ���
233
+ �Ĥޤ�ʸ���ξ�ü����١����饤��ޤǤε�Υ�Ǥ���
234
+
235
+ COMMENT
236
+ It could be used when drawing an individual glyph relative to a top point, by combining
237
+ it with the glyph's maxy metric to resolve the top of the rectangle used when blitting
238
+ the glyph on the screen.
239
+
240
+ SEEALSO
241
+ TTF#height
242
+ TTF#descent
243
+ TTF#line_skip
244
+
245
+ %%
246
+ NAME descent
247
+ MOD TTF
248
+ TYPE #
249
+ DEP SDL_ttf
250
+ PURPOSE �ե���Ȥ�descent���֤��ޤ���
251
+ RVAL Integer
252
+
253
+ PROTO
254
+ descent
255
+
256
+ DESC
257
+ ʸ����descent(�١����饤�󤫤鲼����ʬ�ι⤵)�κ����ͤ��֤��ޤ���
258
+ �Ĥޤ�ʸ���β�ü����١����饤��ޤǤε�Υ�Ǥ���
259
+
260
+ COMMENT
261
+ It could be used when drawing an individual glyph relative to a bottom point, by
262
+ combining it with the glyph's maxy metric to resolve the top of the rectangle used when
263
+ blitting the glyph on the screen.
264
+
265
+ SEEALSO
266
+ TTF#height
267
+ TTF#ascent
268
+ TTF#line_skip
269
+
270
+ %%
271
+ NAME line_skip
272
+ MOD TTF
273
+ TYPE #
274
+ DEP SDL_ttf
275
+ PURPOSE �ե���Ȥΰ�Ԥ�����ο侩�⤵���֤���
276
+ RVAL Integer
277
+
278
+ PROTO
279
+ line_skip
280
+
281
+ DESC
282
+ ���Υե���Ȥ˰�Ԥ����겿�ԥ�����ι⤵������Ƥ�٤�����
283
+ �֤��ޤ���ʣ�������褷�������ˤ� @[TTF#height] ���ͤ��
284
+ ��������ͤ�Ȥä��ۤ����ɤ����⤷��ޤ���
285
+ �����ͤ��̾� @[TTF#height] ���ͤ���礭���Ǥ���
286
+
287
+ SEEALSO
288
+ TTF#height
289
+ TTF#ascent
290
+ TTF#descent
291
+
292
+ %%
293
+ NAME faces
294
+ MOD TTF
295
+ TYPE #
296
+ DEP SDL_ttf
297
+ PURPOSE �ե������ο����֤��ޤ���
298
+ RVAL Integer
299
+
300
+ PROTO
301
+ faces
302
+
303
+ DESC
304
+ �ե���Ȥ˴ޤޤ�����Ѳ�ǽ�ʥե�����(�֥��֥ե���ȡ�)�ο����֤��ޤ���
305
+ �̾盧���ͤ����Ѳ��ͤϤʤ��Ǥ��礦���Ȥ����ΤϤ����ͤ� @[TTF] ��¾��
306
+ �᥽�åɤˤʤ��ƶ���Ϳ���ʤ�����Ǥ���
307
+
308
+ %%
309
+ NAME fixed_width?
310
+ MOD TTF
311
+ TYPE #
312
+ DEP SDL_ttf
313
+ PURPOSE �ե���ȥե��������������ɤ��������ޤ���
314
+ RVAL true/false
315
+
316
+ PROTO
317
+ fixed_width?
318
+
319
+ DESC
320
+ $[self] �������Ǥ���� true �򡢤ʤ���� false ���֤���
321
+ �����ե���ȤϤ��٤Ƥ�ʸ����Ʊ���Ǥ��ꡢʸ����������󥰤������
322
+ �Υ����ե���������ñ�ˡ�ʸ������ * ʸ�����Ĺ���פˤʤ�ޤ���
323
+
324
+ SEEALSO
325
+ TTF#faces
326
+ TTF#family_name
327
+
328
+ %%
329
+ NAME family_name
330
+ MOD TTF
331
+ TYPE #
332
+ DEP SDL_ttf
333
+ PURPOSE �ե���Ȥθ��ߤΥե�������̾�������ޤ���
334
+ RVAL String/nil
335
+
336
+ PROTO
337
+ family_name
338
+ familyName
339
+
340
+ DESC
341
+ $[self] �θ��ߤΥե���ȥե�������̾�����֤��ޤ���
342
+ ̾������̵������ nil ���֤��ޤ���
343
+
344
+ SEEALSO
345
+ TTF#faces
346
+ TTF#fixed_width?
347
+ TTF#style_name
348
+
349
+ %%
350
+ NAME style_name
351
+ MOD TTF
352
+ TYPE #
353
+ DEP SDL_ttf
354
+ PURPOSE �ե���Ȥθ��ߤΥե������Υ��������̾�������ޤ���
355
+ RVAL String/nil
356
+
357
+ PROTO
358
+ style_name
359
+ styleName
360
+
361
+ DESC
362
+ $[self] �θ��ߤΥե���ȥե������Υ��������̾�����֤��ޤ���
363
+ ̾������̵������ nil ���֤��ޤ���
364
+
365
+ SEEALSO
366
+ TTF#faces
367
+ TTF#fixed_width?
368
+ TTF#family_name
369
+
370
+ %%
371
+ NAME text_size
372
+ MOD TTF
373
+ TYPE #
374
+ DEP SDL_ttf
375
+ PURPOSE ʸ����Υ�����󥰤�ɬ�פʥ����ե����Υ����������ޤ���
376
+ RVAL [Integer, Integer]
377
+
378
+ PROTO
379
+ text_size(text)
380
+ textSize(text)
381
+
382
+ DESC
383
+ $[text] ��Ϳ����줿ʸ����������󥰤���Τ�ɬ�פ�@[�����ե���|Surface]
384
+ �Υ�������׻��������������⤵���֤��ޤ���$[text] �Υ��󥳡��ǥ��󥰤�
385
+ UTF8�Ǥʤ���Фʤ�ޤ���
386
+ �ºݤˤϰ��ڥ�����󥰤���ޤ��󤬡������˥󥰤αƶ����θ��������
387
+ �����ޤ���
388
+ �⤵�� @[TTF#height] ��Ʊ���ͤ������ޤ���
389
+
390
+ EXCEPTION *
391
+
392
+ EXAMPLE
393
+ w, h = font.size_text("Hello World!")
394
+ puts "width=#{w} height=#{h}"
395
+
396
+ SEEALSO
397
+ TTF#render_solid_utf8
398
+ TTF#render_shaded_utf8
399
+ TTF#render_blended_utf8
400
+ TTF#draw_solid_utf8
401
+ TTF#draw_shaded_utf8
402
+ TTF#draw_blended_utf8
403
+
404
+ %%
405
+ NAME render_solid_utf8
406
+ MOD TTF
407
+ TYPE #
408
+ DEP SDL_ttf
409
+ PURPOSE ʸ����������󥰤��������ե������֤��ޤ���
410
+ RVAL SDL::Surface/nil
411
+
412
+ PROTO
413
+ render_solid_utf8(text, r, g, b)
414
+ renderSolidUTF8(text, r, g, b)
415
+
416
+ DESC
417
+ $[text] �ǻ��ꤷ��ʸ����(���󥳡��ǥ��󥰤�UTF8)��
418
+ $[r], [g], $[b] �ǻ��ꤷ�����ǥ�����󥰤�����̤�
419
+ @[Surface] �Υ��󥹥��󥹤��֤��ޤ���
420
+
421
+ @[TTF#render_shaded_utf8] �� @[TTF#render_blended_utf8]
422
+ ����®�Ǥ��������ܤϤ�������ɤ�����ޤ���
423
+
424
+ ��������륵���ե�����8bpp�Υ����ե����ǡ����ꤷ����
425
+ �����Ʃ������2���Τ߻Ȥ��ޤ���
426
+ Ʃ�����Ȥ��� 0 �Υԥ������ͤ��� ʸ������ʬ�� 1 �Υԥ������ͤ�
427
+ �Ȥ�졢�ѥ�åȤ�1�˻��ꤷ�������ͤ��֤���ޤ���
428
+ ���Τ���ƥ�����󥰤��뤳�Ȥʤ���ʸ���ο����Ѥ��뤳�Ȥ��Ǥ��ޤ���
429
+ 0 �ϥ��顼�����ǡ�Ʃ���Ǥ����顢
430
+ �ѥ�å� 0 �ο�������¾�Υ����ե�����@[ž��|blit_surface]���Ƥ�
431
+ ���褵��ޤ��󡣼¤Ϥ��ο��� (255-$[r], 255-$[g], 255-$[b])
432
+ �Ǥ���
433
+ ����� @[TTF#render_shaded_utf8] �� @[TTF#render_blended_utf8]
434
+ ����٤ƹ�®�ʥ�����󥰤��Ǥ��ޤ�����
435
+ ����������ꥢ�������Ϥ����äƤ��ޤ���
436
+ �ޤ������Υ᥽�åɤǺ�ä������ե����ϡ�
437
+ @[TTF#render_blended_utf8] ���������������ե����� @[ž��|blit_surface]
438
+ �������®��ž���Ǥ��ޤ���
439
+ �Ȥˤ�����®��ư�ɬ�פʾ��˻Ȥ��Ȥ褤�Ǥ��礦��
440
+
441
+ SEEALSO
442
+ TTF#render_shaded_utf8
443
+ TTF#render_blended_utf8
444
+ TTF#draw_solid_utf8
445
+
446
+ %%
447
+ NAME render_shaded_utf8
448
+ MOD TTF
449
+ TYPE #
450
+ DEP SDL_ttf
451
+ PURPOSE ʸ����򥢥�������ꥢ���󥰤��ƥ�����󥰤��������ե������֤��ޤ���
452
+ RVAL SDL::Surface/nil
453
+
454
+ PROTO
455
+ render_shaded_utf8(text,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b)
456
+ renderShadedUTF8(text,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b)
457
+
458
+ DESC
459
+ $[text] �ǻ��ꤷ��ʸ����(���󥳡��ǥ��󥰤�UTF8)��
460
+ $[fg_r], [fg_g], $[fg_b] �ǻ��ꤷ������ʸ���ο���
461
+ $[bg_r], [bg_g], $[bg_b] �ǻ��ꤷ�������طʤο��Ȥ���
462
+ ������󥰤�����̤�
463
+ @[Surface] �Υ��󥹥��󥹤��֤��ޤ���
464
+
465
+ @[TTF#render_solid_utf8]��������󥰤���®�Ǥ�����
466
+ �����ܤ� @[TTF#render_solid_utf8] ���ͥ��Ƥ��ޤ���
467
+
468
+ ���������@[�����ե���|Surface]��8bpp�ǡ��ԥ������� 0 ���طʤǡ�
469
+ ����¾�Υԥ������ͤ��طʿ������ʿ��Ȥ���֤ο���ɽ�����뤿��
470
+ �˻Ȥ��ޤ���ʸ���ˤϥ���������ꥢ��������Ƥ��ޤ���
471
+ ������󥰤�®�٤� @[TTF#render_solid_utf8] �����®�ǡ�
472
+ @[TTF#render_blended_utf8] ��Ʊ�����餤�Ǥ���
473
+ �ޤ������Υ᥽�åɤǺ�ä������ե����ϡ�
474
+ @[TTF#render_solid_utf8] ���������������ե�����@[ž��|blit_surface]
475
+ ����Τ�Ʊ�����餤��®�٤�ž���Ǥ��ޤ���
476
+ ���顼�����ˤ��ȴ���䥢��ե��֥��ɤʤɤϻ��Ȥ߾�Ȥ��ʤ��Τǡ�
477
+ ���ʼ��ʥ�����󥰤�ɬ�פǡ��طʤ��쿧������ʤ����˻ȤäƤ���������
478
+
479
+ SEEALSO
480
+ TTF#render_solid_utf8
481
+ TTF#render_blended_utf8
482
+ TTF#draw_shaded_utf8
483
+
484
+ %%
485
+ NAME render_blended_utf8
486
+ MOD TTF
487
+ TYPE #
488
+ DEP SDL_ttf
489
+ PURPOSE ʸ����򥢥�ե���Ȥäƥ���������ꥢ�����������ե������֤��ޤ���
490
+ RVAL SDL::Surface/nil
491
+
492
+ PROTO
493
+ render_blended_utf8(text, r, g, b)
494
+ render_blended_utf8(text, r, g, b)
495
+
496
+ DESC
497
+ $[text] �ǻ��ꤷ��ʸ����(���󥳡��ǥ��󥰤�UTF8)��
498
+ $[r], [g], $[b] �ǻ��ꤷ�����ǥ�����󥰤�����̤�
499
+ @[Surface] �Υ��󥹥��󥹤��֤��ޤ���
500
+
501
+ @[TTF#render_solid_utf8]��������󥰤���®�Ǥ�����
502
+ �����ܤ�ͥ��Ƥ��ޤ���
503
+
504
+ ��������륵���ե�����32bppARGB�Τ�Τǡ�����ե���Ȥ��ǥ������
505
+ �򤷹��ʼ���ʸ������򤷤ޤ����طʤϥ���ե��ͤ�������Ʃ�����ͤʤΤǡ�
506
+ @[TTF#render_shaded_utf8] �Τ褦��ʸ���Τޤ��˻ͳѤ��������
507
+ ���ȤϤ���ޤ���ʸ���ˤϥ���������ꥢ���󥰤�����Ƥ��ޤ���
508
+ ������󥰤�ɬ�פʻ��֤� @[TTF#render_solid_utf8] ���Ĺ����
509
+ @[TTF#render_shaded_utf8] ��Ʊ�����餤�Ǥ���
510
+ �ޤ����������������ե�����@[ blit ž��|blit_surface]����Τˤϡ�
511
+ @[TTF#render_solid_utf8] �� @[TTF#render_shaded_utf8] ����������
512
+ �����ե�����ž����������֤�������ޤ���
513
+ ���Υ᥽�åɤϹ��ʼ��ʥ�����󥰤�ɬ�פǡ�®�٤�����ۤ�ɬ�פ�
514
+ ����ʤ��������Ѥ��Ƥ���������
515
+
516
+ SEEALSO
517
+ TTF#render_solid_utf8
518
+ TTF#render_shaded_utf8
519
+ TTF#draw_blended_utf8
520
+
521
+ %%
522
+ NAME draw_solid_utf8
523
+ MOD TTF
524
+ TYPE #
525
+ DEP SDL_ttf
526
+ PURPOSE ʸ��������褷�ޤ���
527
+
528
+ PROTO
529
+ draw_solid_utf8(dest, text, x, y, r, g, b)
530
+ drawSolidUTF8(dest, text, x, y, r, g, b)
531
+
532
+ DESC
533
+ $[text] �ǻ��ꤷ��ʸ����� $[dest] �ǻ��ꤷ��@[�����ե���|Surface]��
534
+ ($[x], $[y]) �򺸾�Ȥ�������($[r], $[g], $[b])�ǻ��ꤷ������
535
+ ���褷�ޤ������褵���ʸ�����ʼ���®�٤ʤɤ� @[TTF#render_solid_utf8]
536
+ ��Ʊ������������ޤ����ܤ����Ϥ�����򸫤Ƥ���������
537
+
538
+ SEEALSO
539
+ TTF#draw_shaded_utf8
540
+ TTF#draw_blended_utf8
541
+ TTF#render_solid_utf8
542
+
543
+ %%
544
+ NAME draw_shaded_utf8
545
+ MOD TTF
546
+ TYPE #
547
+ DEP SDL_ttf
548
+ PURPOSE ʸ����򥢥�������ꥢ�����褷�ޤ���
549
+
550
+ PROTO
551
+ draw_shaded_utf8(dest, text, x, y, fg_r, fg_g, fg_b, bg_r, bg_g, bg_b)
552
+ drawShadedUTF8(dest, text, x, y, fg_r, fg_g, fg_b, bg_r, bg_g, bg_b)
553
+
554
+ DESC
555
+ $[text] �ǻ��ꤷ��ʸ����� $[dest] �ǻ��ꤷ��@[�����ե���|Surface]��
556
+ ($[x], $[y]) �򺸾�Ȥ�������($[fg_r], $[fg_g], $[fg_b])�ǻ��ꤷ��
557
+ ����ʸ����($[bg_r], $[bg_g], $[bg_b])�ǻ��ꤷ�������طʤȤ���
558
+ ���褷�ޤ������褵���ʸ�����ʼ���®�٤ʤɤ� @[TTF#render_shaded_utf8]
559
+ ��Ʊ������������ޤ������Τ���($[x], $[y])�򺸾�Ȥ���
560
+ @[TTF#size_text]($[text]) �������⤵�Ȥ���Ĺ���������ꤷ���طʿ���
561
+ �ɤ�Ĥ֤���ޤ���
562
+
563
+ SEEALSO
564
+ TTF#draw_solid_utf8
565
+ TTF#draw_blended_utf8
566
+ TTF#render_shaded_utf8
567
+
568
+ %%
569
+ NAME draw_blended_utf8
570
+ MOD TTF
571
+ TYPE #
572
+ DEP SDL_ttf
573
+ PURPOSE ʸ����򥢥�ե��ǥ���������ꥢ���������褷�ޤ���
574
+
575
+ PROTO
576
+ draw_blended_utf8(dest, text, x, y, r, g, b)
577
+ drawBlendedUTF8(dest, text, x, y, r, g, b)
578
+
579
+ DESC
580
+ $[text] �ǻ��ꤷ��ʸ����� $[dest] �ǻ��ꤷ��@[�����ե���|Surface]��
581
+ ($[x], $[y]) �򺸾�Ȥ�������($[r], $[g], $[b])�ǻ��ꤷ������
582
+ ���褷�ޤ������褵���ʸ�����ʼ���®�٤ʤɤ� @[TTF#render_blended_utf8]
583
+ ��Ʊ������������ޤ����ܤ����Ϥ�����򸫤Ƥ���������
584
+
585
+ SEEALSO
586
+ TTF#draw_solid_utf8
587
+ TTF#draw_shaded_utf8
588
+ TTF#render_blended_utf8
589
+
590
+ %%
591
+ NAME open
592
+ MOD BMFont
593
+ TYPE .
594
+ DEP SGE
595
+ PURPOSE �ե���Ȥ�����ɤ��ޤ���
596
+ RVAL SDL::BMFont
597
+
598
+ PROTO
599
+ open(filename, flags)
600
+
601
+ DESC
602
+ $[filename] �ǻ��ꤷ���ե���Ȥ�����ɤ������Υե���Ȥ�ɽ�魯
603
+ ���֥������Ȥ� @[BMFont] �Υ��󥹥��󥹤Ȥ����֤��ޤ���
604
+
605
+ $[flags] �Ȥ��Ƥϰʲ����ͤ�Ϳ���뤳�Ȥ��Ǥ��ޤ���
606
+ :SDL::BMFont::TRANSPARENT
607
+ @[Surface#set_color_key] ��Ŭ����Ʃ�ῧ��Ϳ����(��˻Ȥ��٤�)��
608
+ :SDL::BMFont::NOCONVERT
609
+ �ɤ߹�����ե���Ȳ������Ф� @[Surface#display_format] ��ƤФʤ���
610
+ :SDL::BMFont::SFONT
611
+ �ɤ߹�����ե���Ȳ����� SFont �ե����ޥåȤȲ��ꤹ�롣
612
+ �����Ϳ���ʤ������ȼ������Ȳ��ꤹ�롣
613
+ :SDL::BMFont::PALETTE
614
+ �ɤߤ���������ե����� 8bpp�ѥ�å��դ������ե������Ѵ����롣
615
+ ����� SFont �����Υե���Ȥ��Ф��ƤϻȤ��ޤ���
616
+ ����򤹤�����褬�����٤��ʤ�ޤ��� @[BMFont#set_color] ��®���ʤ�ޤ���
617
+
618
+ %%
619
+ NAME set_color
620
+ MOD BMFont
621
+ TYPE #
622
+ DEP SGE
623
+ PURPOSE �ե���Ȥο����ѹ����ޤ���
624
+
625
+ PROTO
626
+ set_color(r, g, b)
627
+ setColor(r, g, b)
628
+
629
+ DESC
630
+ �ե���Ȥο��� ($[r], $[g], $[b]) ���ѹ����ޤ���¿���ե���Ȥ����
631
+ SFont���Ф��Ƥ����ѤǤ��ޤ��󡣤��Υ᥽�åɤ��٤�Ƥ֤ΤǤ����
632
+ @[BMFont.open] �� ((<SDL::BMFont::PALETTE>)) ��Ϳ���Ƥ������ɤ��Ǥ��礦��
633
+
634
+ %%
635
+ NAME height
636
+ MOD BMFont
637
+ TYPE #
638
+ DEP SGE
639
+ PURPOSE �ե���Ȥι⤵�����ޤ���
640
+ RVAL Integer
641
+
642
+ PROTO
643
+ height
644
+
645
+ DESC
646
+ �ե���Ȥι⤵���֤��ޤ���
647
+
648
+ SEEALSO
649
+ BMFont#width
650
+
651
+ %%
652
+ NAME width
653
+ MOD BMFont
654
+ TYPE #
655
+ DEP SGE
656
+ PURPOSE �ե���Ȥ��������ޤ���
657
+ RVAL Integer
658
+
659
+ PROTO
660
+ width
661
+
662
+ DESC
663
+ ʸ�����ʬ�������֤��ޤ���SFont ���Ф��ƤϻȤ��ޤ���
664
+
665
+ SEEALSO
666
+ BMFont#height
667
+
668
+ %%
669
+ NAME text_size
670
+ MOD BMFont
671
+ TYPE #
672
+ DEP SGE
673
+ PURPOSE ʸ����������ɬ�פʥ����ե������礭�������ޤ���
674
+ RVAL [Integer, Integer]
675
+
676
+ PROTO
677
+ text_size(string)
678
+ textSize(string)
679
+
680
+ DESC
681
+ $[self] ��ɽ�蘆���ե���Ȥ� $[string] �����褹��Τ�ɬ�פ�
682
+ �����ե������礭���� [��, �⤵] �Ȥ���������֤��ޤ���
683
+ Ĺ����ñ�̤ϥԥ�������Ǥ���
684
+
685
+ SEEALSO
686
+ BMFont#textout
687
+
688
+ %%
689
+ NAME textout
690
+ MOD BMFont
691
+ TYPE #
692
+ DEP SGE
693
+ PURPOSE ʸ��������褷�ޤ���
694
+
695
+ PROTO
696
+ textout(surface, string, x, y)
697
+
698
+ DESC
699
+ $[string] �� $[surface] �� ($[x], $[y]) �����褷�ޤ���
700
+
701
+ COMMENT
702
+ lock���롩
703
+
704
+ SEEALSO
705
+ BMFont#text_size
706
+
707
+ %%
708
+ NAME open
709
+ MOD Kanji
710
+ TYPE .
711
+ PURPOSE bdf�ե�������ɤ߹��ࡣ
712
+ RVAL SDL::Kanji
713
+
714
+ PROTO
715
+ open(filename, size)
716
+
717
+ DESC
718
+ $[filename] �ǻ��ꤷ�� bdf �ե�������ɤߤ��ߡ�@[Kanji] �Υ��󥹥���
719
+ ���֤��ޤ���$[size] ��ʸ���Υ���������ꤷ�ޤ��������ͤ�
720
+ ʸ���ι⤵���������ޤ����ޤ�������Ⱦ��ʸ��2ʸ��ʬ�����ˤ�ʤ�ޤ���
721
+
722
+ SEEALSO
723
+ Kanji#add
724
+
725
+ %%
726
+ NAME add
727
+ MOD Kanji
728
+ TYPE #
729
+ PURPOSE �����ɤ߹���Ǥ���ե���Ȥ��ɲä��ƥե���Ȥ��ɤߤ��ߤޤ���
730
+
731
+ PROTO
732
+ add(filename)
733
+
734
+ DESC
735
+ $[filename] �ǻ��ꤷ�� bdf �ե�������ɤߤ��ߡ�$[self] ��̵���ä�ʸ����
736
+ �������ե���Ȥ��䴰���ޤ��������ȤäƱѸ�����ܸ���̤Υե����
737
+ �����ɤߤ��ࡢ�Ȥ��ä����Ȥ��Ǥ��ޤ���
738
+
739
+ SEEALSO
740
+ Kanji#open
741
+
742
+ %%
743
+ NAME set_coding_system
744
+ MOD Kanji
745
+ TYPE #
746
+ PURPOSE ʸ�������ɤ���ꤷ�ޤ���
747
+
748
+ PROTO
749
+ set_coding_system(sys)
750
+ setCodingSystem(sys)
751
+
752
+ DESC
753
+ ʸ�������ɤ���ꤷ�ޤ��� $[sys] �Ȥ��ưʲ��Τ����줫�����Ǥ��ޤ���
754
+ * SDL::Kanji::SJIS
755
+ * SDL::Kanji::EUC
756
+ * SDL::Kanji::JIS
757
+ �ǥե���ȤǤ� SDL::Kanji::JIS �����ꤵ��Ƥ��ޤ���
758
+
759
+ %%
760
+ NAME height
761
+ MOD Kanji
762
+ TYPE #
763
+ PURPOSE ʸ���ι⤵�����ޤ���
764
+ RVAL Integer
765
+
766
+ PROTO
767
+ height
768
+
769
+ DESC
770
+ �ե���Ȥι⤵��ԥ���������֤��ޤ�������Ϥ���������ʸ�������Ǥ��ꡢ
771
+ ������Ⱦ��ʸ��������2�ܤ��ͤǤ���
772
+
773
+ %%
774
+ NAME textwidth
775
+ MOD Kanji
776
+ TYPE #
777
+ PURPOSE ʸ������������ޤ���
778
+ RVAL Integer
779
+
780
+ PROTO
781
+ textwidth(text)
782
+
783
+ DESC
784
+ $[text] �ǻ��ꤷ��ʸ��������褹��Τ�ɬ�פ�����ԥ���������֤��ޤ���
785
+
786
+ SEEALSO
787
+ Kanji#width
788
+
789
+ %%
790
+ NAME width
791
+ MOD Kanji
792
+ TYPE #
793
+ PURPOSE ʸ�����������ޤ���
794
+
795
+ PROTO
796
+ width
797
+
798
+ DESC
799
+ Ⱦ��ʸ��1ʸ��������ԥ�����������ޤ���
800
+
801
+ SEEALSO
802
+ textwidth
803
+
804
+ %%
805
+ NAME put
806
+ MOD Kanji
807
+ TYPE #
808
+ PURPOSE ʸ�������褷�ޤ���
809
+
810
+ PROTO
811
+ put(surface, text, x, y, r, g, b)
812
+
813
+ DESC
814
+ $[text] �ǻ��ꤷ��ʸ����� $[surface] �� ($[x], $[y]) �� ($[r], $[g], $[b])
815
+ �ǻ��ꤷ���������褷�ޤ���
816
+
817
+ SEEALSO
818
+ Kanji#put_tate
819
+
820
+ %%
821
+ NAME put_tate
822
+ MOD Kanji
823
+ TYPE #
824
+ PURPOSE ʸ����Ľ񤭤����褷�ޤ���
825
+
826
+ PROTO
827
+ put_tate(surface, x, y, r, g, b)
828
+ putTate(surface, x, y, r, g, b)
829
+
830
+ DESC
831
+ $[text] �ǻ��ꤷ��ʸ����� $[surface] �� ($[x], $[y]) �� ($[r], $[g], $[b])
832
+ �ǻ��ꤷ�����ǽĽ񤭤����褷�ޤ���
833
+
834
+ ASCIIʸ���ϽĽ񤭤ˤǤ��ޤ���
835
+
836
+ SEEALSO
837
+ Kanji#put
838
+
839
+