chickadee » sdl2 » create-cursor*

create-cursor data mask w h hot-x hot-yprocedure
create-cursor* data mask w h hot-x hot-yprocedure

Create a cursor from pixel and mask data. data and mask must be u8vectors, blobs, locatives, or pointers. See SDL_CreateCursor.

  • create-cursor returns a memory-managed sdl2:cursor.
  • create-cursor* returns an unmanaged sdl2:cursor, which should be freed with free-cursor! when you are done with it.

Requires sdl2 egg 0.4.0 or higher.