chickadee » macaw » rgb-array-parent

rgb-array-at pointer width height #!optional pitchprocedure
rgb-array-parent rgb-array_1procedure
set! (rgb-array-parent rgb-array_1) parentsetter

rgb-array-at creates an rgb-array which reads and writes to the memory at pointer, which can be a pointer or a locative. If pitch is omitted, it defaults to (* width 16). The memory starting at pointer must be at least (* pitch height) bytes long, containing groups of four 32-bit floats in the order r, g, b, a.

rgb-array-parent gets or sets the rgb-array's parent, which can be any object that the array depends on. This reference prevents the parent from being garbage collected while the array is still accessing the parent's memory.