rubysdl-mswin32-1.9 2.1.0.1 → 2.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.en +13 -0
- data/NEWS.ja +91 -78
- data/README.en +13 -12
- data/README.en.win32 +5 -10
- data/README.ja +139 -140
- data/README.ja.win32 +6 -6
- data/dll/SDL.dll +0 -0
- data/dll/SDL_image.dll +0 -0
- data/dll/SDL_mixer.dll +0 -0
- data/dll/jpeg.dll +0 -0
- data/dll/libogg-0.dll +0 -0
- data/dll/libpng12-0.dll +0 -0
- data/dll/libtiff-3.dll +0 -0
- data/dll/libvorbis-0.dll +0 -0
- data/dll/libvorbisfile-3.dll +0 -0
- data/dll/smpeg.dll +0 -0
- data/dll/zlib1.dll +0 -0
- data/ext/opengl.so +0 -0
- data/ext/sdl_ext.so +0 -0
- data/lib/rubysdl_compatible_ver1.rb +5 -3
- data/lib/sdl.rb +2 -2
- data/rubysdl_ref.en.html +5868 -0
- data/rubysdl_ref.html +6181 -5888
- data/sample/load_from_io.rb +2 -3
- data/sample/testgl.rb +96 -93
- metadata +5 -24
- data/doc/cdrom.rd +0 -305
- data/doc/collision.rd +0 -121
- data/doc/event.rd +0 -1090
- data/doc/font.rd +0 -625
- data/doc/general.rd +0 -60
- data/doc/init.rd +0 -142
- data/doc/joystick.rd +0 -301
- data/doc/mixer.rd +0 -584
- data/doc/mpeg.rd +0 -420
- data/doc/opengl.rd +0 -144
- data/doc/rsd.rb +0 -158
- data/doc/sdlskk.rd +0 -404
- data/doc/time.rd +0 -34
- data/doc/video.rd +0 -2269
- data/doc/wm.rd +0 -78
- data/ext/sdl.so +0 -0
- data/rubysdl_doc_old.en.rd +0 -2181
- data/rubysdl_doc_old.rd +0 -2402
- data/rubysdl_ref.rd +0 -6577
- data/sample/caption.rb +0 -21
- data/sample/rubysdl.rb +0 -33
data/sample/caption.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# -*- coding: euc-jp -*-
|
2
|
-
require 'sdl'
|
3
|
-
SDL.init(SDL::INIT_VIDEO)
|
4
|
-
screen = SDL::Screen.open(640, 480, 16, SDL::SWSURFACE)
|
5
|
-
SDL::WM::set_caption('����ץ����Υƥ���','����ץ����')
|
6
|
-
|
7
|
-
s,* = SDL::WM.caption
|
8
|
-
STDOUT.puts s.encode('external')
|
9
|
-
p s.encoding
|
10
|
-
loop do
|
11
|
-
while event = SDL::Event.poll
|
12
|
-
case event
|
13
|
-
when SDL::Event::KeyDown, SDL::Event::Quit
|
14
|
-
exit
|
15
|
-
end
|
16
|
-
end
|
17
|
-
screen.fill_rect(0, 0, 640, 480, 0)
|
18
|
-
screen.update_rect(0, 0, 0, 0)
|
19
|
-
|
20
|
-
SDL.delay(10)
|
21
|
-
end
|
data/sample/rubysdl.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'sdl'
|
2
|
-
|
3
|
-
printf "%d \n" , SDL::INIT_TIMER | SDL::INIT_VIDEO
|
4
|
-
|
5
|
-
SDL.init(SDL::INIT_TIMER | SDL::INIT_VIDEO )
|
6
|
-
screen = SDL::Screen.setVideoMode(640,480,16,SDL::SWSURFACE)
|
7
|
-
exit if screen == nil
|
8
|
-
|
9
|
-
sprite = SDL::Surface.loadBMP("icon.bmp")
|
10
|
-
sprite.setColorKey( 0x00001000 | 0x00002000 ,0)
|
11
|
-
sprite = sprite.displayFormat
|
12
|
-
|
13
|
-
|
14
|
-
screen.fillRect(100,100,100,100,678432)
|
15
|
-
SDL.blitSurface(sprite,0,0,32,32,screen,0,0)
|
16
|
-
screen.updateRect(0,0,640,480)
|
17
|
-
event = SDL::Event.new
|
18
|
-
|
19
|
-
while true
|
20
|
-
if event.pollEvent != 0 then
|
21
|
-
if event.type==SDL::Event::QUIT then
|
22
|
-
break
|
23
|
-
end
|
24
|
-
if event.type==SDL::Event::KEYDOWN then
|
25
|
-
break
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|