|
||
int pixel_in_primitive ( PRIM_NODE *prim, int x, int y )
PRIM_NODE *prim; // pointer to primitive int x; // x coordinate of pixel int y; // y coordinate of pixel
|
|
|
Synopsis |
#include "silver.h"
The pixel_in_primitive function function examines primitive prim to determine if the pixel a location x, y lies within the boundaries of the primitive.
|
|
Parameters |
prim is a pointer to a primitive. x and y are pixel coordinates, with 0 <= x < spixel_width and 0 <= y < spixel_height .
|
|
Return Value |
If the pixel lies within the boundary of the primitive, 1 is returned. Otherwise 0 is returned.
|
|
|
|