From: Kartik Thakore Date: Fri, 23 Oct 2009 16:45:52 +0000 (-0400) Subject: Added getters to VideoInfo struct X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb3ed710392a28c26f931bebc43b6a66fcd3d66d;p=sdlgit%2FSDL_perl.git Added getters to VideoInfo struct --- diff --git a/src/Core/objects/VideoInfo.xs b/src/Core/objects/VideoInfo.xs index 55b55ec..44276d7 100644 --- a/src/Core/objects/VideoInfo.xs +++ b/src/Core/objects/VideoInfo.xs @@ -34,3 +34,114 @@ typedef struct{ =cut +Uint32 +videoinfo_hw_available( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->hw_available; + OUTPUT: + RETVAL + +Uint32 +videoinfo_wm_available( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->wm_available; + OUTPUT: + RETVAL + +Uint32 +videoinfo_blit_hw( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_hw; + OUTPUT: + RETVAL + +Uint32 +videoinfo_blit_hw_CC( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_hw_CC; + OUTPUT: + RETVAL + + +Uint32 +videoinfo_blit_hw_A( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_hw_A; + OUTPUT: + RETVAL + +Uint32 +videoinfo_blit_sw( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_sw; + OUTPUT: + RETVAL + +Uint32 +videoinfo_blit_sw_CC( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_sw_CC; + OUTPUT: + RETVAL + + +Uint32 +videoinfo_blit_sw_A( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_sw_A; + OUTPUT: + RETVAL + +Uint32 +videoinfo_blit_fill( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->blit_fill; + OUTPUT: + RETVAL + +Uint32 +videoinfo_video_mem( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->video_mem; + OUTPUT: + RETVAL + + +SDL_PixelFormat * +videoinfo_vfmt( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfo->vfmt; + OUTPUT: + RETVAL + +int +videoinfo_current_w( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfor->current_w; + OUTPUT: + RETVAL + +int +videoinfo_current_h( videoinfo ) + SDL_VideoInfo *videoinfo + CODE: + RETVAL = videoinfor->current_h; + OUTPUT: + RETVAL + + + + +