13 use_ok( 'SDL::Video' );
27 can_ok ('SDL::Video', @done);
29 #testing get_video_surface
30 SDL::Init(SDL_INIT_VIDEO);
32 my $display = SDL::SetVideoMode(640,480,32, SDL_SWSURFACE );
34 #diag('Testing SDL::Video');
36 isa_ok(SDL::Video::get_video_surface(), 'SDL::Surface', '[get_video_surface] Checking if we get a surface ref back');
38 isa_ok(SDL::Video::get_video_info(), 'SDL::VideoInfo', '[get_video_info] Checking if we get videoinfo ref back');
40 my $driver_name = SDL::Video::video_driver_name();
42 pass '[video_driver_name] This is your driver name: '.$driver_name;
46 is( ref( SDL::Video::list_modes( $display->format , SDL_SWSURFACE )), 'ARRAY', '[list_modes] Returned an ARRAY! ');
48 cmp_ok(SDL::Video::video_mode_ok( 100, 100, 16, SDL_SWSURFACE), '>=', 0, "[video_mode_ok] Checking if an integer was return");
50 isa_ok(SDL::Video::set_video_mode( 100, 100 ,16, SDL_SWSURFACE), 'SDL::Surface', '[set_video_more] Checking if we get a surface ref back');
54 #TODO: Write to surface and check inf pixel in that area got updated.
56 SDL::Video::update_rect($display, 0, 0, 0, 0);
58 #TODO: Write to surface and check inf pixel in that area got updated.
59 SDL::Video::update_rects($display, SDL::Rect->new(0, 10, 20, 20));
61 my $value = SDL::Video::flip($display);
62 is( ($value == 0) || ($value == -1), 1, '[flip] returns 0 or -1' );
77 create_RGB_surface_from
102 my $why = '[Percentage Completion] '.int( 100 * $#done / ($#done + $#left) ) ."\% implementation. $#done / ".($#done+$#left);
106 local $TODO = 'Implementation not completed';
107 pass $why."\nThe following functions:\n".join "\n", @left;