Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added set_pixel_ptr to SDLx::Surface

  • Loading branch information...
commit 96d34f14c95a5c4402b2f2b4034abc7fd7050193 1 parent 703a2cc
@kthakore kthakore authored
Showing with 9 additions and 0 deletions.
  1. +8 −0 src/SDLx/Surface.xs
  2. +1 −0  typemap
View
8 src/SDLx/Surface.xs
@@ -117,6 +117,14 @@ surfacex_get_pixel_xs ( surface, x, y )
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
int x
View
1  typemap
@@ -103,6 +103,7 @@ SDL_RWops* O_OBJECT
SDL_svg_context* T_PTR
int T_IV
intArray T_ARRAY
+void * T_PTR
OUTPUT
Please sign in to comment.
Something went wrong with that request. Please try again.