chickadee » sdl2 » create-rgb-surface-from*

create-rgb-surface-from* pixels width height depth pitch rmask gmask bmask amaskprocedure

Returns a new unmanaged sdl2:surface with the given properties, using existing pixel data (a pointer, e.g. from surface-pixels-raw). See SDL_CreateRGBSurfaceFrom.

Signals an exception of kind (exn sdl2) if the surface cannot be created.