Moved old SDL::Palette to SDL::Game::Palette.
[sdlgit/SDL_perl.git] / src / Core / objects / PixelFormat.xs
index 76ab6d1..a463c3d 100644 (file)
@@ -27,6 +27,17 @@ SDL_PixelFormat -- Stores surface format information
 
 =cut
 
+SDL_Palette*
+pixelformat_palette( pixelformat )
+       SDL_PixelFormat *pixelformat
+       PREINIT:
+               char* CLASS = "SDL::Palette";
+       CODE:
+               RETVAL = pixelformat->palette;
+       OUTPUT:
+               RETVAL
+
+
 Uint8
 pixelformat_BitsPerPixel( pixelformat )
        SDL_PixelFormat *pixelformat