RenderCelHLine

Renders a horizontal line into a cel's data buffer.

Synopsis

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

Description

This function renders a horizontal line 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 line.
x
X coordinate within the cel data buffer.
y
Y coordinate within the cel data buffer.
w
Width of the line to render in the cel data buffer.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, celutils.h