projects
/
sdlgit/SDL_perl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Wrap PixelFormat
[sdlgit/SDL_perl.git]
/
src
/
Core
/
objects
/
Surface.xs
diff --git
a/src/Core/objects/Surface.xs
b/src/Core/objects/Surface.xs
index
b35484a
..
587ddc5
100644
(file)
--- a/
src/Core/objects/Surface.xs
+++ b/
src/Core/objects/Surface.xs
@@
-45,6
+45,15
@@
surface_new (CLASS, flags, width, height, depth, Rmask, Gmask, Bmask, Amask )
OUTPUT:
RETVAL
+SDL_PixelFormat *
+surface_format ( surface )
+ SDL_Surface *surface
+ CODE:
+ char* CLASS = "SDL::PixelFormat";
+ RETVAL = surface->format;
+ OUTPUT:
+ RETVAL
+
int
surface_fill_rect ( dest, dest_rect, color )
SDL_Surface *dest