From: Kartik Thakore Date: Wed, 21 Oct 2009 17:47:11 +0000 (-0400) Subject: Started on Video.xs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=70fd0f8d095dcd8b6ada462329979a342ebda392;hp=0015f5b43d147605b188adef5ac61bd26ba3db0d;p=sdlgit%2FSDL_perl.git Started on Video.xs --- diff --git a/Build.PL b/Build.PL index 2c40fd2..a4a35b9 100644 --- a/Build.PL +++ b/Build.PL @@ -88,7 +88,7 @@ my %subsystems = from => 'src/SFont.xs', to => 'lib/SDL/SFont.xs', }, - libraries => [qw( SDL SDL_image )], + libraries => [qw( SDL SDL_image SDL_ttf )], }, ); diff --git a/src/Core/Video.xs b/src/Core/Video.xs index e69de29..bb1a619 100644 --- a/src/Core/Video.xs +++ b/src/Core/Video.xs @@ -0,0 +1,30 @@ +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +#ifndef aTHX_ +#define aTHX_ +#endif + +#include + +MODULE = SDL::Video PACKAGE = SDL::Video PREFIX = video_ + +=for documentation + +The Following are XS bindings to the Video category in the SDL API v2.1.13 + +Describe on the SDL API site. + +See: L + +=cut + +SDL_Surface * +GetVideoSurface () + CODE: + RETVAL = SDL_GetVideoSurface(); + OUTPUT: + RETVAL + +