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,113 @@
1
+ = Window Management
2
+ * ((<Window Management����>))
3
+ * ((<Window Management��Ϣ�᥽�å�>))
4
+ TOC
5
+
6
+ == Window Management����
7
+ SDL �ϥ�����ɥ������ε�ǽ�ΰ������󶡤��Ƥ��ꡢ
8
+ ���ץꥱ������󤬼��ȤΥ����ȥ���ѹ������ꡢ
9
+ �ե륹���꡼��⡼�ɤ����ݡ��Ȥ���Ƥ����
10
+ ������ɥ��⡼�ɤȥե륹���꡼��⡼�ɤȤ��ڤ괹����
11
+ ���Ȥ��Ǥ��ޤ���
12
+
13
+ == Window Management��Ϣ�᥽�å�
14
+ %%%
15
+ NAME caption
16
+ MOD WM
17
+ TYPE .
18
+ PURPOSE ������ɥ��Υ����ȥ�ȥ�������̾��������ޤ���
19
+ RVAL [String, String]
20
+
21
+ PROTO
22
+ caption
23
+
24
+ DESC
25
+ ������ɥ��Υ����ȥ�ȥ�������̾��ʸ����2�Ĥ�������֤��ޤ���
26
+
27
+ SEEALSO
28
+ WM.set_caption
29
+
30
+ %%
31
+ NAME set_caption
32
+ MOD WM
33
+ TYPE .
34
+ PURPOSE ������ɥ��Υ����ȥ�ȥ�������̾�򥻥åȤ��ޤ���
35
+
36
+ PROTO
37
+ set_caption(title, icon)
38
+ setCaption(title, icon)
39
+
40
+ DESC
41
+ ɽ��������ɥ��Υ����ȥ�С��ȥ�������̾�򥻥åȤ��ޤ���
42
+
43
+ SEEALSO
44
+ WM.caption
45
+ WM.icon=
46
+
47
+ %%
48
+ NAME icon=
49
+ MOD WM
50
+ TYPE .
51
+ PURPOSE ɽ��������ɥ��˥�������򥻥åȤ��ޤ���
52
+
53
+ PROTO
54
+ icon=(icon_image)
55
+
56
+ DESC
57
+ ɽ��������ɥ��˥�������򥻥åȤ��ޤ���
58
+ Win32 �Υ�������� 32��32 �Ǥʤ���Ф����ޤ���
59
+
60
+ ���Υ⥸�塼��ؿ��ϡ�@[set_video_mode] ��
61
+ ���ƸƤ����˸ƤФ�ʤ���Ф����ޤ���
62
+ $[icon]�Ȥ��Ƥ� @[Surface] �Υ��󥹥��󥹤�Ϳ���ޤ���
63
+
64
+ EXAMPLE
65
+ SDL::WM.icon = SDL::Surface.load_bmp("icon.bmp")
66
+
67
+ SEEALSO
68
+ set_video_mode
69
+ WM.caption
70
+
71
+ %%
72
+ NAME iconify
73
+ MOD WM
74
+ TYPE .
75
+ PURPOSE ������ɥ��򥢥�����/�Ǿ������ޤ���
76
+
77
+ PROTO
78
+ iconify
79
+
80
+ DESC
81
+ ������ɥ����������Ķ��ǥ��ץꥱ������󤬼¹Ԥ���Ƥ����硢
82
+ SDL �ϥ��ץꥱ�������򥢥�����/�Ǿ������뤳�Ȥ��ߤޤ���
83
+ �⤷��������С����ץꥱ�������� @[Event2::APPACTIVE] �򼺤ʤä�
84
+ ���٥�Ȥ�������Ǥ��礦��
85
+
86
+ EXCEPTION *
87
+
88
+ %%
89
+ NAME grab_input
90
+ MOD WM
91
+ TYPE .
92
+ PURPOSE �ޥ����ȥ����ܡ������Ϥ�Ĥ����Υ���ʤ��褦�ˤ��ޤ���
93
+ RVAL Integer
94
+
95
+ PROTO
96
+ grab_input(mode)
97
+ grabInput(mode)
98
+
99
+ DESC
100
+ �Ĥ���(Grabbing)�Ȥϡ��ޥ��������ץꥱ������󥦥���ɥ����Ĥ������졢
101
+ �ۤ����ƤΥ����ܡ������Ϥ�ľ�ܥ��ץꥱ��������ž�����졢
102
+ ������ɥ��ޥ͡�����ˤ��ᤵ��ʤ����Ȥ�ɽ���ޤ���
103
+
104
+ $[mode] �Ȥ��ưʲ��������Ϳ���뤳�Ȥ��Ǥ��ޤ���
105
+ * SDL::WM::GRAB_QUERY
106
+ * SDL::WM::GRAB_OFF
107
+ * SDL::WM::GRAB_ON
108
+
109
+ $[mode] �� SDL::WM::GRAB_QUERY �ΤȤ��ϡ�
110
+ grab �⡼�ɤ��ѹ�����ʤ��Ǹ��ߤ� grab �⡼�ɤ��֤���ޤ���
111
+
112
+ RET
113
+ ���ߤΡ����뤤�Ͽ������⡼�ɤ��֤��ޤ���
@@ -0,0 +1,92 @@
1
+ require 'mkmf'
2
+
3
+ if /mswin32/ =~ CONFIG["arch"]
4
+ have_library("SDL")
5
+ else
6
+ sdl_config = with_config('sdl-config', 'sdl-config')
7
+
8
+ $CFLAGS += ' ' + `#{sdl_config} --cflags`.chomp
9
+ $LOCAL_LIBS += ' ' + `#{sdl_config} --libs`.chomp
10
+
11
+ if /-Dmain=SDL_main/ =~ $CFLAGS then
12
+ def try_func(func, libs, headers = nil, &b)
13
+ headers = cpp_include(headers)
14
+ try_link(<<"SRC", libs, &b) or try_link(<<"SRC", libs, &b)
15
+ #{headers}
16
+ /*top*/
17
+ int main(int argc,char** argv) { return 0; }
18
+ int t() { #{func}(); return 0; }
19
+ SRC
20
+ #{COMMON_HEADERS}
21
+ #{headers}
22
+ /*top*/
23
+ int main(int argc,char** argv) { return 0; }
24
+ int t() { void ((*volatile p)()); p = (void ((*)()))#{func}; return 0; }
25
+ SRC
26
+ end
27
+ end
28
+ end
29
+
30
+ if enable_config("static-libs",false) then
31
+ have_library("stdc++")
32
+ have_library("z")
33
+ have_library("png")
34
+ have_library("tiff")
35
+ have_library("jpeg")
36
+ have_library("freetype")
37
+ have_library("iconv")
38
+ have_library("ogg")
39
+ have_library("vorbis")
40
+ have_library("vorbisfile")
41
+ have_library("vorbisenc")
42
+ have_library("winmm")
43
+ have_library("SDL")
44
+ end
45
+
46
+ if enable_config("event2",true) then
47
+ $CFLAGS+= " -D DEF_EVENT2"
48
+ end
49
+
50
+ if have_library("smpeg","SMPEG_new") then
51
+ $CFLAGS+= " -D HAVE_SMPEG "
52
+ end
53
+ if have_library("SDL_mixer","Mix_OpenAudio") then
54
+ $CFLAGS+= " -D HAVE_SDL_MIXER "
55
+ end
56
+ if have_library("SGE","sge_Line") then
57
+ $CFLAGS+= " -D HAVE_SGE "
58
+ end
59
+ if have_library("SDL_image","IMG_Load") then
60
+ $CFLAGS+= " -D HAVE_SDL_IMAGE "
61
+ end
62
+ if have_library("SDL_ttf","TTF_Init") then
63
+ $CFLAGS+= " -D HAVE_SDL_TTF "
64
+ end
65
+
66
+ have_func("TTF_OpenFontIndex")
67
+ have_func("TTF_FontFaces")
68
+ have_func("TTF_FontFaceIsFixedWidth")
69
+ have_func("TTF_FontFaceFamilyName")
70
+ have_func("TTF_FontFaceStyleName")
71
+ have_func("Mix_LoadMUS_RW")
72
+
73
+ if have_library("SDLSKK","SDLSKK_Context_new") then
74
+ $CFLAGS+= " -D HAVE_SDLSKK "
75
+ end
76
+ if enable_config("opengl",true) then
77
+ dir_config('x11','/usr/X11R6')
78
+
79
+ $CFLAGS+= " -D DEF_OPENGL "
80
+ if arg_config("--linkoglmodule",false) then
81
+ $CFLAGS+= " -D INIT_OGLMODULE_FROM_SDL "
82
+ end
83
+
84
+ if /linux/ =~ CONFIG["arch"] then
85
+ have_library("GL","glVertex3d")
86
+ elsif /mingw32/ =~ CONFIG["arch"] then
87
+ have_library("opengl32","glVertex3d")
88
+ have_library("glu32","gluGetString")
89
+ end
90
+ end
91
+ create_makefile("sdl")
92
+
@@ -0,0 +1,431 @@
1
+ class <<SDL
2
+ alias init init
3
+ alias inited_system initedSystem
4
+ end
5
+
6
+ # rubysdl_video.c
7
+ module SDL
8
+ class Screen
9
+ alias update_rect updateRect
10
+ alias update_rects updateRects
11
+ alias flip flip
12
+ alias toggle_fullscreen toggleFullScreen
13
+ end
14
+ end
15
+
16
+ class << SDL
17
+ alias get_video_surface getVideoSurface
18
+ alias blit_surface blitSurface
19
+ alias set_video_mode setVideoMode
20
+ alias check_video_mode checkVideoMode
21
+ alias list_modes listModes
22
+ alias set_gamma setGamma
23
+ alias get_gamma_ramp getGammaRamp
24
+ alias set_gamma_ramp setGammaRamp
25
+ alias video_info videoInfo
26
+ end
27
+
28
+ module SDL
29
+
30
+ class << Surface
31
+ # alias new new
32
+ alias load_bmp loadBMP
33
+ alias load_bmp_from_io loadBMPFromIO
34
+ end
35
+
36
+ class Surface
37
+ alias display_format displayFormat
38
+ alias display_format_alpha displayFormatAlpha
39
+ alias set_color_key setColorKey
40
+ alias fill_rect fillRect
41
+ alias set_clip_rect setClipRect
42
+ alias get_clip_rect getClipRect
43
+ alias set_alpha setAlpha
44
+ alias save_bmp saveBMP
45
+ # alias h h
46
+ # alias w w
47
+ # alias flags flags
48
+ alias set_palette setPalette
49
+ alias set_colors setColors
50
+ alias get_palette getPalette
51
+ alias must_lock? mustLock?
52
+ # alias lock lock
53
+ # alias unlock unlock
54
+ alias map_rgb mapRGB
55
+ alias map_rgba mapRGBA
56
+ alias get_rgb getRGB
57
+ alias get_rgba getRGBA
58
+ # alias bpp bpp
59
+ # alias colorkey colorkey
60
+ # alias alpha alpha
61
+ alias copy_rect copyRect
62
+ end
63
+ end
64
+
65
+ # rubysdl_event.c
66
+ class << SDL::Event
67
+ # alias new new
68
+ alias app_state appState
69
+ end
70
+
71
+ module SDL
72
+ class <<Event
73
+ alias enable_unicode enableUNICODE
74
+ alias disable_unicode disableUNICODE
75
+ alias enable_unicode? enableUNICODE?
76
+ end
77
+
78
+ class Event
79
+ # alias poll poll
80
+ # alias wait wait
81
+ # alias type type
82
+ alias key_press? keyPress?
83
+ alias key_sym keySym
84
+ alias key_mod keyMod
85
+ # alias gain? gain?
86
+ alias app_state appState
87
+ alias mouse_x mouseX
88
+ alias mouse_y mouseY
89
+ alias mouse_xrel mouseXrel
90
+ alias mouse_yrel mouseYrel
91
+ alias mouse_button mouseButton
92
+ alias mouse_press? mousePress?
93
+ # alias info info
94
+ end
95
+ end
96
+
97
+ # rubysdl_event2.c
98
+ module SDL
99
+ if defined?(Event2) then
100
+ class << Event2
101
+ # alias poll poll
102
+ # alias wait wait
103
+ # alias new new
104
+ # alias push push
105
+ alias app_state appState
106
+ alias enable_unicode enableUNICODE
107
+ alias disable_unicode disableUNICODE
108
+ alias enable_unicode? enableUNICODE?
109
+ end
110
+ end
111
+ end
112
+
113
+ #rubysdl_mouse.c
114
+ #alias state state
115
+ #alias warp warp
116
+ #alias set_cursor_imp setCursor_imp
117
+ #alias show show
118
+ #alias hide hide
119
+
120
+ # rubysdl_sge_video.c
121
+ class << SDL
122
+ if method_defined?(:autoLock)
123
+ alias auto_lock autoLock
124
+ alias auto_lock? autoLock?
125
+ alias auto_lock= autoLock=
126
+ alias auto_lock_on autoLockON
127
+ alias auto_lock_off autoLockOFF
128
+ alias rotate_scaled_blit rotateScaledBlit
129
+ alias rotate_xy_scaled rotateXYScaled
130
+ # alias transform transform
131
+ end
132
+ end
133
+
134
+
135
+ module SDL
136
+ class Surface
137
+ # shared with rubysdl_sge_video.c and rubysdl_pixel.c
138
+ alias get_pixel getPixel
139
+ alias put_pixel putPixel
140
+ if method_defined?(:drawLine) then
141
+ # alias [] []
142
+ # alias []= []=
143
+ alias draw_line drawLine
144
+ alias draw_rect drawRect
145
+ alias draw_circle drawCircle
146
+ alias draw_filled_circle drawFilledCircle
147
+ alias draw_ellispe drawEllispe # typo
148
+ alias draw_ellipse drawEllipse
149
+ alias draw_filled_ellispe drawFilledEllispe # typo
150
+ alias draw_filled_ellipse drawFilledEllipse
151
+ alias rotate_scaled_surface rotateScaledSurface
152
+ alias transform_surface transformSurface
153
+ alias make_collision_map makeCollisionMap
154
+
155
+ alias draw_aa_line drawAALine
156
+ alias draw_aa_circle drawAACircle
157
+ alias draw_aa_filled_circle drawAAFilledCircle
158
+ alias draw_aa_ellipse drawAAEllipse
159
+
160
+ alias draw_line_alpha drawLineAlpha
161
+ alias draw_rect_alpha drawRectAlpha
162
+ alias draw_filled_rect_alpha drawFilledRectAlpha
163
+ alias draw_circle_alpha drawCircleAlpha
164
+ alias draw_filled_circle_alpha drawFilledCircleAlpha
165
+ alias draw_ellipse_alpha drawEllipseAlpha
166
+ alias draw_filled_ellipse_alpha drawFilledEllipseAlpha
167
+
168
+ alias draw_aa_line_alpha drawAALineAlpha
169
+ alias draw_aa_circle_alpha drawAACircleAlpha
170
+ alias draw_aa_ellipse_alpha drawAAEllipseAlpha
171
+
172
+ alias draw_bezier drawBezier
173
+ alias draw_aa_bezier drawAABezier
174
+ alias draw_bezier_alpha drawBezierAlpha
175
+ alias draw_aa_bezier_alpha drawAABezierAlpha
176
+ end
177
+ end
178
+
179
+ if defined?(CollisionMap) then
180
+
181
+ class CollisionMap
182
+ alias collision_check collisionCheck
183
+ alias bounding_box_check boundingBoxCheck
184
+ end
185
+
186
+ class << CollisionMap
187
+ alias bounding_box_check boundingBoxCheck
188
+ end
189
+
190
+ end
191
+
192
+ if defined?(BMFont) then
193
+ class BMFont
194
+ alias set_color setColor
195
+ alias text_size textSize
196
+ end
197
+ end
198
+
199
+ if defined?(Kanji) then
200
+ class Kanji
201
+ alias set_coding_system setCodingSystem
202
+ alias put_tate putTate
203
+ end
204
+ end
205
+ end
206
+
207
+
208
+ # rubysdl_time.c
209
+ class << SDL
210
+ alias get_ticks getTicks
211
+ alias delay delay
212
+ end
213
+
214
+ module SDL
215
+ # rubysdl_cdrom.c
216
+ class << CD
217
+ alias num_drive numDrive
218
+ alias index_name indexName
219
+ alias frames_to_msf framesToMSF
220
+ alias msf_to_frames MSFToFrames
221
+ # alias open open
222
+ end
223
+
224
+ class CD
225
+ # alias status status
226
+ # alias play play
227
+ alias play_tracks playTracks
228
+ alias pause pause
229
+ # alias resume resume
230
+ # alias stop stop
231
+ # alias eject eject
232
+ alias num_tracks numTracks
233
+ alias current_track currentTrack
234
+ alias current_frame currentFrame
235
+ alias track_type trackType
236
+ alias track_length trackLength
237
+ end
238
+ end
239
+
240
+ # rubysdl_joystick.c
241
+ module SDL
242
+ class << Joystick
243
+ # alias poll poll
244
+ # alias poll= poll=
245
+ # alias num num
246
+ alias index_name indexName
247
+ # alias open open
248
+ # alias open? open?
249
+ alias update_all updateAll
250
+ end
251
+
252
+ class Joystick
253
+ # alias index index
254
+ alias num_axes numAxes
255
+ alias num_balls numBalls
256
+ alias num_hats numHats
257
+ alias num_buttons numButtons
258
+ # alias axis axis
259
+ # alias hat hat
260
+ # alias button button
261
+ # alias ball ball
262
+ end
263
+ end
264
+
265
+ # rubysdl_event_key.c
266
+ module SDL
267
+ class << Key
268
+ # alias scan scan
269
+ # alias press? press?
270
+ alias mod_state modState
271
+ alias enable_key_repeat enableKeyRepeat
272
+ alias disable_key_repeat disableKeyRepeat
273
+ alias get_key_name getKeyName
274
+ end
275
+ end
276
+
277
+ # rubysdl_wm.c
278
+ class << SDL::WM
279
+ # alias caption caption
280
+ alias set_caption setCaption
281
+ # alias icon= icon=
282
+ # alias iconify iconify
283
+ alias grab_input grabInput
284
+ end
285
+
286
+ # rubysdl_mixer.c
287
+ module SDL
288
+ if defined?(Mixer) then
289
+ class << Mixer
290
+ # alias open open
291
+ # alias spec spec
292
+ alias driver_name driverName
293
+ alias play_channel playChannel
294
+ alias play_channel_timed playChannelTimed
295
+ alias fade_in_channel fadeInChannel
296
+ alias fade_in_channel_timed fadeInChannelTimed
297
+ # alias play? play?
298
+ alias set_volume setVolume
299
+ alias allocate_channels allocateChannels
300
+ # alias halt halt
301
+ # alias pause pause
302
+ # alias resume resume
303
+ # alias pause? pause?
304
+ alias fade_out fadeOut
305
+ alias play_music playMusic
306
+ alias fade_in_music fadeInMusic
307
+ alias set_volume_music setVolumeMusic
308
+ alias halt_music haltMusic
309
+ alias fade_out_music fadeOutMusic
310
+ alias pause_music pauseMusic
311
+ alias resume_music resumeMusic
312
+ alias rewind_music rewindMusic
313
+ alias pause_music? pauseMusic?
314
+ alias play_music? playMusic?
315
+ alias fading_music fadingMusic
316
+ end
317
+
318
+ module Mixer
319
+ class Wave
320
+ class << self
321
+ alias load_from_io loadFromIO
322
+ end
323
+ alias set_volume setVolume
324
+ end
325
+
326
+ class << Music
327
+ if method_defined?(:loadFromString)
328
+ alias load_from_string loadFromString
329
+ end
330
+ end
331
+ end
332
+ end
333
+ end
334
+
335
+ # rubysdl_image.c
336
+ module SDL
337
+ class Surface
338
+ if method_defined?(:load)
339
+ alias load_from_io loadFromIO
340
+ end
341
+ end
342
+ end
343
+
344
+ # rubysdl_ttf.c
345
+ module SDL
346
+ if defined?(TTF) then
347
+ #alias init init
348
+ #alias open open
349
+
350
+ class TTF
351
+ # alias style style
352
+ # alias style= style=
353
+ alias text_size textSize
354
+ # alias faces faces
355
+ alias fixed_width? fixedWidth?
356
+ alias family_name familyName
357
+ alias style_name styleName
358
+ alias line_skip lineSkip
359
+ alias draw_solid_utf8 drawSolidUTF8
360
+ alias draw_blended_utf8 drawBlendedUTF8
361
+ alias draw_shaded_utf8 drawShadedUTF8
362
+ alias render_solid_utf8 renderSolidUTF8
363
+ alias render_blended_utf8 renderBlendedUTF8
364
+ alias render_shaded_utf8 renderShadedUTF8
365
+ end
366
+ end
367
+ end
368
+
369
+ # rubysdl_smpeg.c
370
+ module SDL
371
+ if defined?(MPEG) then
372
+ class MPEG
373
+ # alias load load
374
+ # alias new new
375
+ # alias info info
376
+ alias enable_audio enableAudio
377
+ alias enable_video enableVideo
378
+ # alias status status
379
+ alias set_volume setVolume
380
+ alias set_display setDisplay
381
+ alias set_loop setLoop
382
+ alias scale_xy scaleXY
383
+ # alias scale scale
384
+ # alias move move
385
+ alias set_display_region setDisplayRegion
386
+ # alias play play
387
+ # alias pause pause
388
+ # alias stop stop
389
+ # alias rewind rewind
390
+ # alias seek seek
391
+ # alias skip skip
392
+ alias render_frame renderFrame
393
+ alias render_final renderFinal
394
+ alias set_filter setFilter
395
+ end
396
+ end
397
+ end
398
+
399
+ # rubysdl_opengl.c
400
+ class << SDL
401
+ if method_defined?(:getGLAttr)
402
+ alias get_GL_attr getGLAttr
403
+ alias set_GL_attr setGLAttr
404
+ alias GL_swap_buffers GLSwapBuffers
405
+ end
406
+ end
407
+
408
+ # sdl.rb
409
+
410
+ module SDL
411
+ class Surface
412
+ if method_defined?(:rotateScaledSurface) then
413
+ alias rotate_scaled_surface rotateScaledSurface
414
+ alias rotate_surface rotateSurface
415
+ end
416
+ end
417
+ end
418
+
419
+ class << SDL
420
+ if method_defined?(:rotateScaled) then
421
+ alias rotate_scaled rotateScaled
422
+ # alias rotate
423
+ alias rotate_blit rotateBlit
424
+ end
425
+
426
+ if method_defined?(:transform) then
427
+ alias transform_blit transformBlit
428
+ end
429
+
430
+ alias blit_surface2 blitSurface2
431
+ end