11 MODULE = SDL::Video PACKAGE = SDL::Video PREFIX = video_
15 The Following are XS bindings to the Video category in the SDL API v2.1.13
17 Describe on the SDL API site.
19 See: L<http://www.libsdl.org/cgi/docwiki.cgi/SDL_API#head-813f033ec44914f267f32195aba7d9aff8c410c0>
24 video_get_video_surface()
26 char* CLASS = "SDL::Surface";
28 RETVAL = SDL_GetVideoSurface();
34 video_get_video_info()
36 char* CLASS = "SDL::VideoInfo";
38 RETVAL = (SDL_VideoInfo *) SDL_GetVideoInfo();
44 video_video_driver_name( )
48 if ( SDL_VideoDriverName(buffer, 1024) != NULL )
50 RETVAL = newSVpv(buffer, 0);
58 list_modes ( format, flags )
60 SDL_PixelFormat *format
65 mode = SDL_ListModes(format,flags);
66 if (mode == (SDL_Rect**)-1 ) {
67 av_push(RETVAL,newSVpv("all",0));
69 av_push(RETVAL,newSVpv("none",0));
72 av_push(RETVAL,newSViv(PTR2IV(*mode)));
80 video_video_mode_ok ( width, height, bpp, flags )
86 RETVAL = SDL_VideoModeOK(width,height,bpp,flags);