mlib_GraphicsDrawTriangleSmediaLibmlib_GraphicsDrawTriangleStripSet_AGZ(3MLIB)NAME
mlib_GraphicsDrawTriangleStripSet_AGZ, mlib_GraphicsDrawTrian‐
gleStripSet_AGZ_8, mlib_GraphicsDrawTriangleStripSet_AGZ_32 - draw tri‐
angle set with antialiasing, Gouraud shading, and Z buffering, where
the first side of each member is common to the second side of the pre‐
vious member
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_GraphicsDrawTriangleStripSet_AGZ_8(mlib_image *buffer,
mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const
mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
mlib_status mlib_GraphicsDrawTriangleStripSet_AGZ_32(mlib_image *buf‐
fer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const
mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
DESCRIPTION
Each of these functions draws a set of triangles with vertices at
{(x1,y1),(x2,y2), (x3,y3)}, {(x2,y2),(x3,y3),(x4,y4)}, ..., and
{(xn-2,yn-2),(xn-1,yn-1),(xn,yn)}.
PARAMETERS
Each of the functions takes the following arguments:
buffer Pointer to the image into which the function is draw‐
ing.
zbuffer Pointer to the image that holds the Z buffer.
x Pointer to array of X coordinates of the points.
y Pointer to array of Y coordinates of the points.
z Pointer to array of Z coordinates of the points.
npoints Number of points in the arrays.
c Pointer to array of colors of the points.
RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Evolving │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │MT-Safe │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOmlib_GraphicsDrawTriangleStripSet_8(3MLIB), mlib_GraphicsDrawTrian‐
gleStripSet_A_8(3MLIB), mlib_GraphicsDrawTriangleStripSet_AG_8(3MLIB),
mlib_GraphicsDrawTriangleStripSet_AZ_8(3MLIB), mlib_GraphicsDrawTrian‐
gleStripSet_G_8(3MLIB), mlib_GraphicsDrawTriangleStripSet_GZ_8(3MLIB),
mlib_GraphicsDrawTriangleStripSet_X_8(3MLIB), mlib_GraphicsDrawTrian‐
gleStripSet_Z_8(3MLIB), attributes(5)SunOS 5.10mlib_GraphicsDrawTriangleStripSet_AGZ(3MLIB)