Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added set_pixel_ptr to SDLx::Surface
  • Loading branch information
Kartik Thakore authored and wchristian committed Mar 14, 2015
1 parent 80eedb4 commit 19c9cda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SDLx/Surface.xs
Expand Up @@ -122,6 +122,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
Expand Down
1 change: 1 addition & 0 deletions typemap
Expand Up @@ -103,6 +103,7 @@ SDL_RWops* O_OBJECT
SDL_svg_context* T_PTR
int T_IV
intArray T_ARRAY
void * T_PTR

OUTPUT

Expand Down

0 comments on commit 19c9cda

Please sign in to comment.