X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2FCore%2Fobjects%2FSurface.xs;h=33c95e5df6957c5e3077e3509070a380e8ed0357;hb=f7ce55ec6ad0a21bb1fa18aec222fa0274764557;hp=b34b58b824497ad1eca0fae7523673bdc88acef4;hpb=a7fbee873b639bb9c89f763b68068985fc4f3123;p=sdlgit%2FSDL_perl.git diff --git a/src/Core/objects/Surface.xs b/src/Core/objects/Surface.xs index b34b58b..33c95e5 100644 --- a/src/Core/objects/Surface.xs +++ b/src/Core/objects/Surface.xs @@ -45,37 +45,14 @@ surface_new (CLASS, flags, width, height, depth, Rmask, Gmask, Bmask, Amask ) OUTPUT: RETVAL -int -surface_blit ( src, src_rect, dest, dest_rect ) - SDL_Surface *src - SDL_Surface *dest - SDL_Rect *src_rect - SDL_Rect *dest_rect - CODE: - RETVAL = SDL_BlitSurface(src,src_rect,dest,dest_rect); - OUTPUT: - RETVAL - -int -surface_fill_rect ( dest, dest_rect, color ) - SDL_Surface *dest - SDL_Color *color - SDL_Rect *dest_rect +SDL_PixelFormat * +surface_format ( surface ) + SDL_Surface *surface CODE: - Uint32 pixel = SDL_MapRGB(dest->format,color->r,color->g,color->b); - RETVAL = SDL_FillRect(dest,dest_rect,pixel); + char* CLASS = "SDL::PixelFormat"; + RETVAL = surface->format; OUTPUT: RETVAL - -void -surface_update_rect ( surface, x, y, w ,h ) - SDL_Surface *surface - int x - int y - int w - int h - CODE: - SDL_UpdateRect(surface,x,y,w,h); void surface_update_rects ( surface, ... ) @@ -97,24 +74,6 @@ surface_update_rects ( surface, ... ) SDL_UpdateRects(surface,num_rects,rects); safefree(rects); -SDL_Surface * -surface_display ( surface ) - SDL_Surface *surface - CODE: - char* CLASS = "SDL::Surface"; - RETVAL = SDL_DisplayFormat(surface); - OUTPUT: - RETVAL - -SDL_Surface * -surface_display_alpha ( surface ) - SDL_Surface *surface - CODE: - char* CLASS = "SDL::Surface"; - RETVAL = SDL_DisplayFormatAlpha(surface); - OUTPUT: - RETVAL - Uint16 surface_pitch( surface ) SDL_Surface *surface