12 use_ok( 'SDL::Video' );
14 can_ok ('SDL::Video', qw/
22 #testing get_video_surface
23 SDL::Init(SDL_INIT_VIDEO);
25 my $display = SDL::SetVideoMode(640,480,32, SDL_SWSURFACE );
27 #diag('Testing SDL::Video');
29 isa_ok(SDL::Video::get_video_surface(), 'SDL::Surface', '[get_video_surface] Checking if we get a surface ref back');
31 isa_ok(SDL::Video::get_video_info(), 'SDL::VideoInfo', '[get_video_info] Checking if we get videoinfo ref back');
33 my $driver_name = SDL::Video::video_driver_name();
35 pass '[video_driver_name] This is your driver name: '.$driver_name;
39 is( ref( SDL::Video::list_modes( $display->format , SDL_SWSURFACE )), 'ARRAY', '[list_modes] Returned an ARRAY! ');
41 cmp_ok(SDL::Video::video_mode_ok( 100, 100, 16, SDL_SWSURFACE), '>=', 0, "[video_mode_ok] Checking if an integer was return");
43 pass "Are we still alive?";
60 create_RGB_surface_from