//-------------------------------------------------
def getVideoSurface():Surface = return sdl.getVideoSurface()
def getVideoInfo():VideoInfo = return sdl.getVideoInfo()
-
+ def videoDriverName():String = return sdl.videoDriverName()
+ def listModes(format:PixelFormat, flags:Int):Rect = return sdl.listModes(format, flags)
def setVideoMode(width:Int, height:Int, bitsperpixel:Int, flags:Int):Surface = return sdl.setVideoMode(width, height, bitsperpixel, flags)
def flip(surface:Surface):Int = sdl.flip(surface)
def setColors(surface:Surface, colors:Array[Color], firstcolor:Int, ncolor:Int):Int = return sdl.setColors(surface, colors, firstcolor, ncolor)
def mapRGB(fmt:PixelFormat, r:Int, g:Int, b:Int):Long = return sdl.mapRGB(fmt, r, g, b);
def lockSurface(surface:Surface):Int = return sdl.lockSurface(surface)
def unlockSurface(surface:Surface):Unit = return sdl.unlockSurface(surface)
+ def blitSurface(surface:Surface, srcrect:Rect, dst:Surface, dstrect:Rect):Int = sdl.blitSurface(surface, srcrect, dst, dstrect)
//-------------------------------------------------
// Window Management
//const SDL_VideoInfo* SDL_GetVideoInfo()
@native def getVideoInfo():VideoInfo
//char* SDL_VideoDriverName(char* namebuf, int maxlen)
- @native def videoDriverName(namebuf:String, maxlen:Int):String
+ @native def videoDriverName():String
//SDL_Rect** SDL_ListModes(SDL_PixelFormat* format, Unit32 flags)
- @native def listModes():Rect
+ @native def listModes(format:PixelFormat, flags:Int):Rect
//int SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags)
@native def videoModeOK(width:Int, height:Int, bpp:Int, flags:Long):Int
//SDL_Surface* setVideoMode(int width, int height, int bitsperpixel, Uint32 flags)
//void SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect)
//void SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect)
//int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)
+ @native def blitSurface(surface:Surface, srcrect:Rect, dst:Surface, dstrect:Rect):Int
//int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color)
//---GL---