RenderCelFillRect

Renders a filled rectangle into a cel's data buffer.

Synopsis

void RenderCelFillRect (CCB *cel, int32 pixel,int32 x, int32 y, int32 w, int32 h)

Description

Renders a filled rectangle into the cel's data buffer.

This function performs no clipping internally. You must be careful not to pass coordinates that would result in rendering outside the cel's data buffer.

This function supports all cel formats and bit depths except packed cels, LRForm cels, and 6-bit coded cels.

Arguments

cel
Pointer to the cel.
pixel
Value to store into each pixel in the area.
x
X coordinate within the cel data buffer.
y
Y coordinate within the cel data buffer.
w
Width of the area to fill in the cel data buffer.
h
Height of the area to fill in the cel data buffer.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, celutils.h