char* CLASS = "SDL::VideoInfo";
CODE:
RETVAL = SDL_GetVideoInfo;
- OUTPUT:
+
+ OUTPUT:
RETVAL
+
+char *
+video_video_driver_name( maxlen )
+ int maxlen
+ CODE:
+ char* buffer = safemalloc( sizeof(char) * maxlen);
+ char* str = SvPV( newSVpvn( buffer , maxlen), maxlen );
+
+ RETVAL = SDL_VideoDriverName( str , maxlen);
+
+ sv_2mortal(buffer);
+
+ OUTPUT:
+ RETVAL
can_ok ('SDL::Video', qw/
get_video_surface
get_video_info
+ video_driver_name
/);
#testing get_video_surface
isa_ok(SDL::Video::get_video_info(), 'SDL::VideoInfo', 'Checking if we get videoinfo ref back');
=skip
- video_driver_name
list_modes
video_mode_ok
set_video_mode