Move display format and display format alpha out of Surface.xs
[sdlgit/SDL_perl.git] / src / Core / objects / Surface.xs
index b3c5477..33c95e5 100644 (file)
@@ -45,48 +45,15 @@ surface_new (CLASS, flags, width, height, depth, Rmask, Gmask, Bmask, Amask )
        OUTPUT:
                RETVAL
 
-
-SDL_Surface *
-surface_load (CLASS, filename )
-       char* CLASS
-       char* filename
-       CODE:
-               RETVAL = IMG_Load(filename);
-       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
+SDL_PixelFormat *
+surface_format ( surface )
+       SDL_Surface *surface
        CODE:
-               RETVAL = SDL_BlitSurface(src,src_rect,dest,dest_rect);
+               char* CLASS = "SDL::PixelFormat";
+               RETVAL = surface->format;
        OUTPUT:
                RETVAL
 
-int
-surface_fill_rect ( dest, dest_rect, color )
-       SDL_Surface *dest
-       SDL_Color *color
-       SDL_Rect *dest_rect
-       CODE:
-               Uint32 pixel = SDL_MapRGB(dest->format,color->r,color->g,color->b);
-               RETVAL = SDL_FillRect(dest,dest_rect,pixel);
-       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, ... )
        SDL_Surface *surface
@@ -107,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