Contents |
Download and unpack in c:\sdl.
cd /sdl/test gcc -I/SDL/include -L/SDL/lib testbitmap.c -o testbitmap -lmingw32 -lSDLmain -lSDL -mwindows
The libraries must be linked in the correct order, otherwise you will get a complaint about an undefined reference to WinMain@16.
start irb, and type:
require 'sdl' SDL.init(SDL::INIT_VIDEO) s=SDL::setVideoMode(400,400,16,SDL::SWSURFACE) s.drawAAFilledCircle(200,200,100,s.format.mapRGB(255,0,0)) s.flip