Added getters to VideoInfo struct
Kartik Thakore [Fri, 23 Oct 2009 16:45:52 +0000 (12:45 -0400)]
src/Core/objects/VideoInfo.xs

index 55b55ec..44276d7 100644 (file)
@@ -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
+
+
+
+       
+