rubysdl-mswin32-1.8 2.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/NEWS.en +280 -0
  2. data/NEWS.ja +291 -0
  3. data/README.en +118 -0
  4. data/README.en.win32 +72 -0
  5. data/README.ja +166 -0
  6. data/README.ja.win32 +80 -0
  7. data/dll/SDL.dll +0 -0
  8. data/dll/SDL_image.dll +0 -0
  9. data/dll/SDL_mixer.dll +0 -0
  10. data/dll/SDL_ttf.dll +0 -0
  11. data/dll/SGE.dll +0 -0
  12. data/dll/jpeg.dll +0 -0
  13. data/dll/libcharset-1.dll +0 -0
  14. data/dll/libfreetype-6.dll +0 -0
  15. data/dll/libiconv-2.dll +0 -0
  16. data/dll/libogg-0.dll +0 -0
  17. data/dll/libpng12-0.dll +0 -0
  18. data/dll/libtiff-3.dll +0 -0
  19. data/dll/libvorbis-0.dll +0 -0
  20. data/dll/libvorbisfile-3.dll +0 -0
  21. data/dll/smpeg.dll +0 -0
  22. data/dll/zlib1.dll +0 -0
  23. data/doc/cdrom.rd +305 -0
  24. data/doc/collision.rd +121 -0
  25. data/doc/event.rd +1090 -0
  26. data/doc/font.rd +625 -0
  27. data/doc/general.rd +60 -0
  28. data/doc/init.rd +142 -0
  29. data/doc/joystick.rd +301 -0
  30. data/doc/mixer.rd +584 -0
  31. data/doc/mpeg.rd +420 -0
  32. data/doc/opengl.rd +144 -0
  33. data/doc/rsd.rb +158 -0
  34. data/doc/sdlskk.rd +404 -0
  35. data/doc/time.rd +34 -0
  36. data/doc/video.rd +2269 -0
  37. data/doc/wm.rd +78 -0
  38. data/ext/opengl.so +0 -0
  39. data/ext/sdl.so +0 -0
  40. data/install_rubysdl.rb +30 -0
  41. data/lib/rubysdl_aliases.rb +303 -0
  42. data/lib/rubysdl_compatible_ver1.rb +243 -0
  43. data/lib/sdl.rb +224 -0
  44. data/rubysdl_doc_old.en.rd +2181 -0
  45. data/rubysdl_doc_old.rd +2402 -0
  46. data/rubysdl_ref.html +5888 -0
  47. data/rubysdl_ref.rd +6577 -0
  48. data/sample/aadraw.rb +25 -0
  49. data/sample/alpha.rb +26 -0
  50. data/sample/alphadraw.rb +25 -0
  51. data/sample/bfont.rb +24 -0
  52. data/sample/cdrom.rb +24 -0
  53. data/sample/collision.rb +97 -0
  54. data/sample/cursor.bmp +0 -0
  55. data/sample/cursor.rb +22 -0
  56. data/sample/ellipses.rb +39 -0
  57. data/sample/event2.rb +34 -0
  58. data/sample/font.bmp +0 -0
  59. data/sample/font.rb +26 -0
  60. data/sample/fpstimer.rb +175 -0
  61. data/sample/icon.bmp +0 -0
  62. data/sample/icon.bmp.gz +0 -0
  63. data/sample/icon.png +0 -0
  64. data/sample/joy2.rb +81 -0
  65. data/sample/kanji.rb +36 -0
  66. data/sample/load_from_io.rb +45 -0
  67. data/sample/movesp.rb +94 -0
  68. data/sample/playmod.rb +13 -0
  69. data/sample/plaympeg.rb +44 -0
  70. data/sample/playwave.rb +15 -0
  71. data/sample/randrect.rb +40 -0
  72. data/sample/rubysdl.rb +34 -0
  73. data/sample/sample.ttf +0 -0
  74. data/sample/sdlskk.rb +70 -0
  75. data/sample/sgetest.rb +33 -0
  76. data/sample/stetris.rb +274 -0
  77. data/sample/testgl.rb +165 -0
  78. data/sample/testsprite.rb +69 -0
  79. data/sample/transformblit.rb +42 -0
  80. metadata +135 -0
data/doc/wm.rd ADDED
@@ -0,0 +1,78 @@
1
+ = Window Management
2
+ * ((<Window Management����>))
3
+ * ((<Window Management��Ϣ�᥽�å�>))
4
+ * ((<SDL::WM.caption>)) -- ������ɥ��Υ����ȥ�ȥ�������̾��������ޤ���
5
+ * ((<SDL::WM.set_caption>)) -- ������ɥ��Υ����ȥ�ȥ�������̾�򥻥åȤ��ޤ���
6
+ * ((<SDL::WM.icon=>)) -- ɽ��������ɥ��˥�������򥻥åȤ��ޤ���
7
+ * ((<SDL::WM.iconify>)) -- ������ɥ��򥢥�����/�Ǿ������ޤ���
8
+ * ((<SDL::WM.grab_input>)) -- �ޥ����ȥ����ܡ������Ϥ�Ĥ����Υ���ʤ��褦�ˤ��ޤ���
9
+
10
+ == Window Management����
11
+ SDL �ϥ�����ɥ������ε�ǽ�ΰ������󶡤��Ƥ��ꡢ
12
+ ���ץꥱ������󤬼��ȤΥ����ȥ���ѹ������ꡢ
13
+ �ե륹���꡼��⡼�ɤ����ݡ��Ȥ���Ƥ����
14
+ ������ɥ��⡼�ɤȥե륹���꡼��⡼�ɤȤ��ڤ괹����
15
+ ���Ȥ��Ǥ��ޤ���
16
+
17
+ == Window Management��Ϣ�᥽�å�
18
+
19
+ --- SDL::WM.caption
20
+
21
+ ������ɥ��Υ����ȥ�ȥ�������̾��ʸ����2�Ĥ�������֤��ޤ���
22
+
23
+ * See Also
24
+
25
+ ((<SDL::WM.set_caption>))
26
+
27
+ --- SDL::WM.set_caption(title, icon)
28
+ --- SDL::WM.setCaption(title, icon)
29
+
30
+ ɽ��������ɥ��Υ����ȥ�С��ȥ�������̾�򥻥åȤ��ޤ���
31
+
32
+ * See Also
33
+
34
+ ((<SDL::WM.caption>)), ((<SDL::WM.icon=>))
35
+
36
+ --- SDL::WM.icon=(icon_image)
37
+
38
+ ɽ��������ɥ��˥�������򥻥åȤ��ޤ���
39
+ Win32 �Υ�������� 32��32 �Ǥʤ���Ф����ޤ���
40
+
41
+ ���Υ⥸�塼��ؿ��ϡ�((<SDL.set_video_mode>)) ��
42
+ ���ƸƤ����˸ƤФ�ʤ���Ф����ޤ���
43
+ ((|icon|))�Ȥ��Ƥ� ((<SDL::Surface>)) �Υ��󥹥��󥹤�Ϳ���ޤ���
44
+
45
+
46
+ EXAMPLE
47
+ SDL::WM.icon = SDL::Surface.load_bmp("icon.bmp")
48
+
49
+ * See Also
50
+
51
+ ((<SDL.set_video_mode>)), ((<SDL::WM.caption>))
52
+
53
+ --- SDL::WM.iconify
54
+
55
+ ������ɥ����������Ķ��ǥ��ץꥱ������󤬼¹Ԥ���Ƥ����硢
56
+ Ruby/SDL �ϥ��ץꥱ�������򥢥�����/�Ǿ������뤳�Ȥ��ߤޤ���
57
+ �⤷��������С����ץꥱ�������� ((<SDL::Event::APPACTIVE>)) �򼺤ʤä�
58
+ ���٥�Ȥ�������Ǥ��礦��
59
+
60
+ ���Ԥ����Ȥ��ˤ��㳰((<SDL::Error>))��ȯ�������ޤ���
61
+
62
+ --- SDL::WM.grab_input(mode)
63
+ --- SDL::WM.grabInput(mode)
64
+
65
+ �Ĥ���(Grabbing)�Ȥϡ��ޥ��������ץꥱ������󥦥���ɥ����Ĥ������졢
66
+ �ۤ����ƤΥ����ܡ������Ϥ�ľ�ܥ��ץꥱ��������ž�����졢
67
+ ������ɥ��ޥ͡�����ˤ��ᤵ��ʤ����Ȥ�ɽ���ޤ���
68
+
69
+ ((|mode|)) �Ȥ��ưʲ��������Ϳ���뤳�Ȥ��Ǥ��ޤ���
70
+ * SDL::WM::GRAB_QUERY
71
+ * SDL::WM::GRAB_OFF
72
+ * SDL::WM::GRAB_ON
73
+
74
+ ((|mode|)) �� SDL::WM::GRAB_QUERY �ΤȤ��ϡ�
75
+ grab �⡼�ɤ��ѹ�����ʤ��Ǹ��ߤ� grab �⡼�ɤ��֤���ޤ���
76
+
77
+ ���ߤΡ����뤤�Ͽ������⡼�ɤ��֤��ޤ���
78
+
data/ext/opengl.so ADDED
Binary file
data/ext/sdl.so ADDED
Binary file
@@ -0,0 +1,30 @@
1
+
2
+ require 'rbconfig'
3
+ require 'fileutils'
4
+ require 'optparse'
5
+
6
+ dlldir = nil
7
+ option = { :noop => false, :verbose => true }
8
+
9
+ ARGV.options do |opt|
10
+ opt.on('--dlldir DIR'){|dir| dlldir = dir}
11
+ opt.on('--no-harm'){ option[:noop] = true }
12
+ opt.on('--quiet'){ option[:verbose] = false }
13
+
14
+ opt.parse!
15
+ end
16
+
17
+ dlldir ||= Config::CONFIG["bindir"]
18
+ sitelibdir = Config::CONFIG["sitelibdir"]
19
+ sitearchdir = Config::CONFIG["sitearchdir"]
20
+
21
+
22
+ FileUtils.mkpath(dlldir, option)
23
+ FileUtils.mkpath(sitelibdir, option)
24
+ FileUtils.mkpath(sitearchdir, option)
25
+
26
+ Dir.glob("dll/*.dll"){|fname| FileUtils.install(fname, dlldir, option)}
27
+ Dir.glob("ext/*.so"){|fname| FileUtils.install(fname, sitearchdir, option)}
28
+ Dir.glob("lib/*.rb"){|fname| FileUtils.install(fname, sitelibdir, option)}
29
+
30
+
@@ -0,0 +1,303 @@
1
+ class << SDL
2
+ alias inited_system initedSystem
3
+ end
4
+
5
+ # rubysdl_video.c
6
+ module SDL
7
+ class Screen
8
+ alias update_rect updateRect
9
+ alias update_rects updateRects
10
+ alias flip flip
11
+ alias toggle_fullscreen toggleFullScreen
12
+ end
13
+ class << Screen
14
+ alias check_mode checkMode
15
+ alias list_modes listModes
16
+ alias set_gamma setGamma
17
+ alias get_gamma_ramp getGammaRamp
18
+ alias set_gamma_ramp setGammaRamp
19
+ alias driver_name driverName
20
+ end
21
+ end
22
+
23
+ module SDL
24
+ class << Surface
25
+ alias load_bmp loadBMP
26
+ alias load_bmp_from_io loadBMPFromIO
27
+ alias load_bmp_from_string loadBMPFromString
28
+ end
29
+
30
+ class Surface
31
+ alias get_pixel getPixel
32
+ alias put_pixel putPixel
33
+ alias display_format displayFormat
34
+ alias display_format_alpha displayFormatAlpha
35
+ alias set_color_key setColorKey
36
+ alias fill_rect fillRect
37
+ alias set_clip_rect setClipRect
38
+ alias get_clip_rect getClipRect
39
+ alias set_alpha setAlpha
40
+ alias save_bmp saveBMP
41
+ alias set_palette setPalette
42
+ alias set_colors setColors
43
+ alias must_lock? mustLock?
44
+ alias copy_rect copyRect
45
+
46
+ end
47
+
48
+ class PixelFormat
49
+ alias map_rgb mapRGB
50
+ alias map_rgba mapRGBA
51
+ alias get_rgb getRGB
52
+ alias get_rgba getRGBA
53
+ alias bytes_per_pixel bytesPerPixel
54
+ end
55
+ end
56
+
57
+
58
+ # rubysdl_event.c
59
+ module SDL
60
+ class << Event
61
+ alias app_state appState
62
+ alias enable_unicode enableUNICODE
63
+ alias disable_unicode disableUNICODE
64
+ alias enable_unicode? enableUNICODE?
65
+ end
66
+ end
67
+
68
+ # rubysdl_sge_video.c
69
+ module SDL
70
+ if defined?(CollisionMap) then
71
+ class << Surface
72
+ alias auto_lock? autoLock?
73
+ alias auto_lock_on autoLockON
74
+ alias auto_lock_off autoLockOFF
75
+ alias transform_draw transformDraw
76
+ alias transform_blit transformBlit
77
+ end
78
+
79
+ class Surface
80
+ alias draw_line drawLine
81
+ alias draw_rect drawRect
82
+ alias draw_circle drawCircle
83
+ alias draw_ellipse drawEllipse
84
+
85
+ #alias rotate_scaled_surface rotateScaledSurface
86
+ alias transform_surface transformSurface
87
+ alias make_collision_map makeCollisionMap
88
+ end
89
+
90
+ class CollisionMap
91
+ alias collision_check collisionCheck
92
+ alias bounding_box_check boundingBoxCheck
93
+ end
94
+
95
+ class << CollisionMap
96
+ alias bounding_box_check boundingBoxCheck
97
+ end
98
+
99
+ class BMFont
100
+ alias set_color setColor
101
+ alias text_size textSize
102
+ end
103
+ end
104
+
105
+ # rubysdl_kanji.c
106
+ if defined?(Kanji) then
107
+ class Kanji
108
+ alias set_coding_system setCodingSystem
109
+ alias get_coding_system getCodingSystem
110
+ alias put_tate putTate
111
+ end
112
+ end
113
+ end
114
+
115
+
116
+ # rubysdl_time.c
117
+ class << SDL
118
+ alias get_ticks getTicks
119
+ end
120
+
121
+ # rubysdl_cdrom.c
122
+ module SDL
123
+ class << CD
124
+ alias num_drive numDrive
125
+ alias index_name indexName
126
+ alias frames_to_msf framesToMSF
127
+ alias msf_to_frames MSFToFrames
128
+ end
129
+
130
+ class CD
131
+ alias play_tracks playTracks
132
+ alias num_tracks numTracks
133
+ alias current_track currentTrack
134
+ alias current_frame currentFrame
135
+ alias track_type trackType
136
+ alias track_length trackLength
137
+ end
138
+ end
139
+
140
+ # rubysdl_mouse.c
141
+ module SDL
142
+ class << Mouse
143
+ alias set_cursor setCursor
144
+ end
145
+ end
146
+
147
+ # rubysdl_joystick.c
148
+ module SDL
149
+ class << Joystick
150
+ alias index_name indexName
151
+ alias update_all updateAll
152
+ end
153
+
154
+ class Joystick
155
+ alias num_axes numAxes
156
+ alias num_balls numBalls
157
+ alias num_hats numHats
158
+ alias num_buttons numButtons
159
+ end
160
+ end
161
+
162
+ # rubysdl_event_key.c
163
+ module SDL
164
+ class << Key
165
+ alias mod_state modState
166
+ alias enable_key_repeat enableKeyRepeat
167
+ alias disable_key_repeat disableKeyRepeat
168
+ alias get_key_name getKeyName
169
+ end
170
+ end
171
+
172
+ # rubysdl_wm.c
173
+ class << SDL::WM
174
+ alias set_caption setCaption
175
+ alias grab_input grabInput
176
+ end
177
+
178
+ # rubysdl_mixer.c
179
+ module SDL
180
+ if defined?(Mixer) then
181
+ class << Mixer
182
+ alias driver_name driverName
183
+ alias play_channel playChannel
184
+ alias play_channel_timed playChannelTimed
185
+ alias fade_in_channel fadeInChannel
186
+ alias fade_in_channel_timed fadeInChannelTimed
187
+ alias set_volume setVolume
188
+ alias allocate_channels allocateChannels
189
+ alias fade_out fadeOut
190
+ alias playing_channels playingChannels
191
+ alias play_music playMusic
192
+ alias fade_in_music fadeInMusic
193
+ alias set_volume_music setVolumeMusic
194
+ alias halt_music haltMusic
195
+ alias fade_out_music fadeOutMusic
196
+ alias pause_music pauseMusic
197
+ alias resume_music resumeMusic
198
+ alias rewind_music rewindMusic
199
+ alias pause_music? pauseMusic?
200
+ alias play_music? playMusic?
201
+ alias fading_music fadingMusic
202
+ end
203
+
204
+ module Mixer
205
+ class Wave
206
+ class << self
207
+ alias load_from_io loadFromIO
208
+ alias load_from_string loadFromString
209
+ end
210
+ alias set_volume setVolume
211
+ end
212
+
213
+ class << Music
214
+ if method_defined?(:loadFromString)
215
+ alias load_from_string loadFromString
216
+ end
217
+ end
218
+ end
219
+ end
220
+ end
221
+
222
+ # rubysdl_image.c
223
+ module SDL
224
+ class Surface
225
+ if method_defined?(:load)
226
+ alias load_from_io loadFromIO
227
+ alias load_from_string loadFromString
228
+ end
229
+ end
230
+ end
231
+
232
+ # rubysdl_ttf.c
233
+ module SDL
234
+ if defined?(TTF) then
235
+ class TTF
236
+ alias text_size textSize
237
+ alias fixed_width? fixedWidth?
238
+ alias family_name familyName
239
+ alias style_name styleName
240
+ alias line_skip lineSkip
241
+ alias draw_solid_utf8 drawSolidUTF8
242
+ alias draw_blended_utf8 drawBlendedUTF8
243
+ alias draw_shaded_utf8 drawShadedUTF8
244
+ alias render_solid_utf8 renderSolidUTF8
245
+ alias render_blended_utf8 renderBlendedUTF8
246
+ alias render_shaded_utf8 renderShadedUTF8
247
+ if method_defined?(:drawSolid)
248
+ alias draw_solid drawSolid
249
+ alias draw_blended drawBlended
250
+ alias draw_shaded drawShaded
251
+ alias render_solid renderSolid
252
+ alias render_blended renderBlended
253
+ alias render_shaded renderShaded
254
+ end
255
+ end
256
+ end
257
+ end
258
+
259
+ # rubysdl_smpeg.c
260
+ module SDL
261
+ if defined?(MPEG) then
262
+ class MPEG
263
+ # alias load load
264
+ # alias new new
265
+ # alias info info
266
+ alias enable_audio enableAudio
267
+ alias enable_video enableVideo
268
+ # alias status status
269
+ alias set_volume setVolume
270
+ alias set_display setDisplay
271
+ alias set_loop setLoop
272
+ alias scale_xy scaleXY
273
+ # alias scale scale
274
+ # alias move move
275
+ alias set_display_region setDisplayRegion
276
+ # alias play play
277
+ # alias pause pause
278
+ # alias stop stop
279
+ # alias rewind rewind
280
+ # alias seek seek
281
+ # alias skip skip
282
+ alias render_frame renderFrame
283
+ alias render_final renderFinal
284
+ alias set_filter setFilter
285
+ end
286
+ end
287
+ end
288
+
289
+ # rubysdl_opengl.c
290
+ module SDL
291
+ if defined?(GL)
292
+ class << GL
293
+ alias set_attr setAttr
294
+ alias get_attr getAttr
295
+ alias swap_buffers swapBuffers
296
+ end
297
+ end
298
+ end
299
+
300
+
301
+ class << SDL
302
+ alias blit_surface2 blitSurface2
303
+ end
@@ -0,0 +1,243 @@
1
+
2
+ module SDL
3
+ # compatible method definition
4
+ module_function
5
+ def blitSurface(*args)
6
+ SDL::Surface.blit(*args)
7
+ end
8
+
9
+ def getVideoSurface
10
+ SDL::Screen.get
11
+ end
12
+
13
+ def setVideoMode(*args)
14
+ SDL::Screen.open(*args)
15
+ end
16
+
17
+ def checkVideoMode(*args)
18
+ SDL::Screen.checkMode(*args)
19
+ end
20
+
21
+ def listModes(*args)
22
+ SDL::Screen.listModes(*args)
23
+ end
24
+
25
+ def setGamma(*args)
26
+ SDL::Screen.setGamma(*args)
27
+ end
28
+
29
+ def getGammaRamp(*args)
30
+ SDL::Screen.getGammaRamp(*args)
31
+ end
32
+
33
+ def setGammaRamp(*args)
34
+ SDL::Screen.setGammaRamp(*args)
35
+ end
36
+
37
+ def videoDriverName
38
+ SDL::Screen.driverName
39
+ end
40
+
41
+ def videoInfo
42
+ SDL::Screen.info
43
+ end
44
+
45
+ def getGLAttr(arg)
46
+ GL.getAttr(arg)
47
+ end
48
+
49
+ def setGLAttr(*args)
50
+ GL.setAttr(*args)
51
+ end
52
+
53
+ def GLSwapBuffers
54
+ GL.swap_buffers
55
+ end
56
+
57
+ GL_RED_SIZE = GL::RED_SIZE
58
+ GL_GREEN_SIZE = GL::GREEN_SIZE
59
+ GL_BLUE_SIZE = GL::BLUE_SIZE
60
+ GL_ALPHA_SIZE = GL::ALPHA_SIZE
61
+ GL_BUFFER_SIZE = GL::BUFFER_SIZE
62
+ GL_DOUBLEBUFFER = GL::DOUBLEBUFFER
63
+ GL_DEPTH_SIZE = GL::DEPTH_SIZE
64
+ GL_STENCIL_SIZE = GL::STENCIL_SIZE
65
+ GL_ACCUM_RED_SIZE = GL::ACCUM_RED_SIZE
66
+ GL_ACCUM_GREEN_SIZE = GL::ACCUM_GREEN_SIZE
67
+ GL_ACCUM_BLUE_SIZE = GL::ACCUM_BLUE_SIZE
68
+ GL_ACCUM_ALPHA_SIZE = GL::ACCUM_ALPHA_SIZE
69
+
70
+ class Surface
71
+ extend Forwardable
72
+
73
+ def_delegators(:format,
74
+ :alpha, :colorkey, :mapRGB, :mapRGBA,
75
+ :getRGB, :getRGBA, :bpp, :bytesPerPixel,
76
+ :Rmask, :Gmask, :Bmask, :Amask,
77
+ :Rloss, :Gloss, :Bloss, :Aloss,
78
+ :Rshift, :Gshift, :Bshift, :Ashift)
79
+
80
+ def getPalette
81
+ format.palette
82
+ end
83
+ end
84
+
85
+ Event2 = Event
86
+
87
+ if defined?(CollisionMap)
88
+ class Surface
89
+ def drawAALine(x1, y1, x2, y2, col)
90
+ drawLine(x1, y1, x2, y2, col, true)
91
+ end
92
+ def drawAALineAlpha(x1, y1, x2, y2, col, alpha)
93
+ drawLine(x1, y1, x2, y2, col, true, alpha)
94
+ end
95
+ def drawLineAlpha(x1, y1, x2, y2, col, alpha)
96
+ drawLine(x1, y1, x2, y2, col, false, alpha)
97
+ end
98
+
99
+ def drawAACircle(x, y, r, color)
100
+ drawCircle(x, y, r, color, false, true)
101
+ end
102
+ def drawAAFilledCircle(x, y, r, color)
103
+ drawCircle(x, y, r, color, true, true)
104
+ end
105
+ def drawAACircleAlpha(x, y, r, color, alpha)
106
+ drawCircle(x, y, r, color, false, true, alpha)
107
+ end
108
+ def drawCircleAlpha(x, y, r, color, alpha)
109
+ drawCircle(x, y, r, color, false, false, alpha)
110
+ end
111
+ def drawAACircleAlpha(x, y, r, color, alpha)
112
+ drawCircle(x, y, r, color, false, true, alpha)
113
+ end
114
+ def drawFilledCircleAlpha(x, y, r, color, alpha)
115
+ drawCircle(x, y, r, color, true, false, alpha)
116
+ end
117
+ def drawFilledCircle(x, y, r, color)
118
+ drawCircle(x, y, r, color, true)
119
+ end
120
+
121
+
122
+ def drawRectAlpha(x1, y1, x2, y2, color, alpha)
123
+ drawRect(x1, y1, x2, y2, color, false, alpha)
124
+ end
125
+ def drawFilledRectAlpha(x1, y1, x2, y2, color, alpha)
126
+ drawRect(x1, y1, x2, y2, color, true, alpha)
127
+ end
128
+
129
+ def drawFilledEllipse(x, y, rx, ry, color)
130
+ drawEllipse(x, y, rx, ry, color, true)
131
+ end
132
+ def drawAAFilledEllipse(x, y, rx, ry, color)
133
+ drawEllipse(x, y, rx, ry, color, true, true)
134
+ end
135
+ def drawFilledEllipseAlpha(x, y, rx, ry, color, alpha)
136
+ drawEllipse(x, y, rx, ry, color, true, false, alpha)
137
+ end
138
+
139
+ def drawAAEllipse(x, y, rx, ry, color)
140
+ drawEllipse(x, y, rx, ry, color, false, true)
141
+ end
142
+ def drawAAEllipseAlpha(x, y, rx, ry, color, alpha)
143
+ drawEllipse(x, y, rx, ry, color, false, true, alpha)
144
+ end
145
+ def drawEllipseAlpha(x, y, rx, ry, color, alpha)
146
+ drawEllipse(x, y, rx, ry, color, false, false, alpha)
147
+ end
148
+
149
+ def drawAABezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color)
150
+ drawBezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color,true)
151
+ end
152
+ def drawBezierAlpha(x1,y1,x2,y2,x3,y3,x4,y4,level,color,alpha)
153
+ drawBezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color,false,alpha)
154
+ end
155
+ def drawAABezierAlpha(x1,y1,x2,y2,x3,y3,x4,y4,level,color,alpha)
156
+ drawBezier(x1,y1,x2,y2,x3,y3,x4,y4,level,color,true,alpha)
157
+ end
158
+
159
+ end
160
+
161
+ def autoLock?; Surface.autoLock?; end
162
+ def autoLock; Surface.autoLock?; end
163
+ def autoLockON; Surface.autoLockON; end
164
+ def autoLockOFF; Surface.autoLockOFF; end
165
+ def autoLock=(val)
166
+ if val then autoLockON else autoLockOFF end
167
+ end
168
+ def transform(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
169
+ Surface.transformDraw(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
170
+ end
171
+ def transformBlit(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
172
+ Surface.transformBlit(src,dst,angle,xscale,yscale,px,py,qx,qy,flags)
173
+ end
174
+ end
175
+
176
+ # aliases
177
+
178
+ class << self
179
+ alias get_video_surface getVideoSurface
180
+ alias blit_surface blitSurface
181
+ alias set_video_mode setVideoMode
182
+ alias check_video_mode checkVideoMode
183
+ alias list_modes listModes
184
+ alias set_gamma setGamma
185
+ alias get_gamma_ramp getGammaRamp
186
+ alias set_gamma_ramp setGammaRamp
187
+ alias video_info videoInfo
188
+ alias video_driver_name videoDriverName
189
+ end
190
+
191
+ class Surface
192
+ alias map_rgb mapRGB
193
+ alias map_rgba mapRGBA
194
+ alias get_rgb getRGB
195
+ alias get_rgba getRGBA
196
+ alias get_palette getPalette
197
+ end
198
+
199
+ if defined?(CollisionMap)
200
+ class << self
201
+ alias auto_lock? autoLock?
202
+ alias auto_lock_on autoLockON
203
+ alias auto_lock_off autoLockOFF
204
+ alias auto_lock autoLock
205
+ alias auto_lock= autoLock=
206
+ alias transform_blit transformBlit
207
+ end
208
+
209
+ class Surface
210
+ alias draw_filled_circle drawFilledCircle
211
+ alias draw_aa_line drawAALine
212
+ alias draw_aa_circle drawAACircle
213
+ alias draw_aa_filled_circle drawAAFilledCircle
214
+ alias draw_aa_ellipse drawAAEllipse
215
+
216
+ alias draw_line_alpha drawLineAlpha
217
+ alias draw_rect_alpha drawRectAlpha
218
+ alias draw_filled_rect_alpha drawFilledRectAlpha
219
+ alias draw_circle_alpha drawCircleAlpha
220
+ alias draw_filled_circle_alpha drawFilledCircleAlpha
221
+ alias draw_ellipse_alpha drawEllipseAlpha
222
+ alias draw_filled_ellipse_alpha drawFilledEllipseAlpha
223
+ alias draw_filled_ellipse drawFilledEllipse
224
+
225
+ alias draw_aa_line_alpha drawAALineAlpha
226
+ alias draw_aa_circle_alpha drawAACircleAlpha
227
+ alias draw_aa_ellipse_alpha drawAAEllipseAlpha
228
+
229
+ alias draw_bezier drawBezier
230
+ alias draw_aa_bezier drawAABezier
231
+ alias draw_bezier_alpha drawBezierAlpha
232
+ alias draw_aa_bezier_alpha drawAABezierAlpha
233
+ end
234
+ end
235
+
236
+ if defined?(GL)
237
+ class << self
238
+ alias set_GL_attr setGLAttr
239
+ alias get_GL_attr getGLAttr
240
+ alias GL_swap_buffers GLSwapBuffers
241
+ end
242
+ end
243
+ end