13 use_ok( 'SDL::Video' );
15 can_ok ('SDL::Video', qw/
25 #testing get_video_surface
26 SDL::Init(SDL_INIT_VIDEO);
28 my $display = SDL::SetVideoMode(640,480,32, SDL_SWSURFACE );
30 #diag('Testing SDL::Video');
32 isa_ok(SDL::Video::get_video_surface(), 'SDL::Surface', '[get_video_surface] Checking if we get a surface ref back');
34 isa_ok(SDL::Video::get_video_info(), 'SDL::VideoInfo', '[get_video_info] Checking if we get videoinfo ref back');
36 my $driver_name = SDL::Video::video_driver_name();
38 pass '[video_driver_name] This is your driver name: '.$driver_name;
42 is( ref( SDL::Video::list_modes( $display->format , SDL_SWSURFACE )), 'ARRAY', '[list_modes] Returned an ARRAY! ');
44 cmp_ok(SDL::Video::video_mode_ok( 100, 100, 16, SDL_SWSURFACE), '>=', 0, "[video_mode_ok] Checking if an integer was return");
46 SDL::Video::update_rect($display, 0, 0, 0, 0);
48 SDL::Video::update_rects($display, SDL::Rect->new(0, 10, 20, 20));
50 pass "Are we still alive?";
67 create_RGB_surface_from