list_modes ( format, flags )
Uint32 flags
SDL_PixelFormat *format
+
CODE:
SDL_Rect **mode;
RETVAL = newAV();
SDL_PixelFormat *
surface_format ( surface )
SDL_Surface *surface
- CODE:
+ PREINIT:
char* CLASS = "SDL::PixelFormat";
+ CODE:
RETVAL = surface->format;
OUTPUT:
RETVAL
#!/usr/bin/perl -w
use strict;
use SDL;
+use SDL::Surface;
use SDL::Config;
use Devel::Peek;
+use Data::Dumper;
use Test::More;
plan ( tests => 6 );
pass '[video_driver_name] This is your driver name: '.$driver_name;
-#Dump( SDL::Video::video_driver_name() );
+Dump SDL::Video::list_modes( $display->format , SDL_HWSURFACE );
pass "Are we still alive?";
O_OBJECT
if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) )
- $var = ($type)SvIV((SV*)SvRV( $arg ));
+ { $var = ($type)SvIV((SV*)SvRV( $arg )); }
+ else if ($arg == 0)
+ { XSRETURN(0); }
else{
- warn( \"${Package}::$func_name() -- $var is not a blessed SV reference\" );
XSRETURN_UNDEF;
}