chickadee » sdl2 » make-rect

make-rect #!optional x y w hprocedure
make-rect* #!optional x y w hprocedure

Allocate and initialize a new sdl2:rect.

x, y, w, and h must be integers in the range -2147483648 to 2147483647 (inclusive). They all default to 0.

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