Permalink
Browse files

Added set_pixel_ptr to SDLx::Surface

  • Loading branch information...
1 parent 703a2cc commit 96d34f14c95a5c4402b2f2b4034abc7fd7050193 @kthakore kthakore committed Apr 4, 2012
Showing with 9 additions and 0 deletions.
  1. +8 −0 src/SDLx/Surface.xs
  2. +1 −0 typemap
View
@@ -116,6 +116,14 @@ surfacex_get_pixel_xs ( surface, x, y )
RETVAL
+void
+surfacex_set_pixel_ptr ( surface, pointer )
+ SDL_Surface *surface
+ void *pointer
+ CODE:
+ surface->pixels = pointer
+
+
void
surfacex_set_pixel_xs ( surface, x, y, value )
SDL_Surface *surface
View
@@ -103,6 +103,7 @@ SDL_RWops* O_OBJECT
SDL_svg_context* T_PTR
int T_IV
intArray T_ARRAY
+void * T_PTR
OUTPUT

0 comments on commit 96d34f1

Please sign in to comment.