Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mlib_graphicsfilltriangleset_gz_32(3mlib) [sunos man page]

mlib_GraphicsFillTriangleSet(3MLIB)									       mlib_GraphicsFillTriangleSet(3MLIB)

NAME
mlib_GraphicsFillTriangleSet, mlib_GraphicsFillTriangleSet_8, mlib_GraphicsFillTriangleSet_32, mlib_GraphicsFillTriangleSet_X_8, mlib_GraphicsFillTriangleSet_X_32, mlib_GraphicsFillTriangleSet_A_8, mlib_GraphicsFillTriangleSet_A_32, mlib_GraphicsFillTriangleSet_B_8, mlib_GraphicsFillTriangleSet_B_32, mlib_GraphicsFillTriangleSet_G_8, mlib_GraphicsFillTriangleSet_G_32, mlib_GraphicsFillTriangleSet_Z_8, mlib_GraphicsFillTriangleSet_Z_32, mlib_GraphicsFillTriangleSet_AB_8, mlib_GraphicsFillTriangleSet_AB_32, mlib_GraphicsFillTriangle- Set_ABG_8, mlib_GraphicsFillTriangleSet_ABG_32, mlib_GraphicsFillTriangleSet_ABGZ_8, mlib_GraphicsFillTriangleSet_ABGZ_32, mlib_Graphics- FillTriangleSet_ABZ_8, mlib_GraphicsFillTriangleSet_ABZ_32, mlib_GraphicsFillTriangleSet_AG_8, mlib_GraphicsFillTriangleSet_AG_32, mlib_GraphicsFillTriangleSet_AGZ_8, mlib_GraphicsFillTriangleSet_AGZ_32, mlib_GraphicsFillTriangleSet_AZ_8, mlib_GraphicsFillTriangle- Set_AZ_32, mlib_GraphicsFillTriangleSet_BG_8, mlib_GraphicsFillTriangleSet_BG_32, mlib_GraphicsFillTriangleSet_BGZ_8, mlib_GraphicsFillTri- angleSet_BGZ_32, mlib_GraphicsFillTriangleSet_BZ_8, mlib_GraphicsFillTriangleSet_BZ_32, mlib_GraphicsFillTriangleSet_GZ_8, mlib_Graphics- FillTriangleSet_GZ_32 - draw filled triangle set where each member can have different vertices SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_GraphicsFillTriangleSet_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_X_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c, mlib_s32 c2); mlib_status mlib_GraphicsFillTriangleSet_X_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c, mlib_s32 c2); mlib_status mlib_GraphicsFillTriangleSet_A_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_A_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_B_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_B_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_G_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c); mlib_status mlib_GraphicsFillTriangleSet_G_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c); mlib_status mlib_GraphicsFillTriangleSet_Z_8(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_Z_32(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_AB_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_AB_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_ABG_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_ABG_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_ABGZ_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_s32 a); mlib_status mlib_GraphicsFillTriangleSet_ABGZ_32(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_s32 a); mlib_status mlib_GraphicsFillTriangleSet_ABZ_8(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_ABZ_32(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_AG_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c); mlib_status mlib_GraphicsFillTriangleSet_AG_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c); mlib_status mlib_GraphicsFillTriangleSet_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_GraphicsFillTriangleSet_AGZ_32(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_GraphicsFillTriangleSet_AZ_8(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_AZ_32(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c); mlib_status mlib_GraphicsFillTriangleSet_BG_8(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_BG_32(mlib_image *buffer, const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_BGZ_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_s32 a); mlib_status mlib_GraphicsFillTriangleSet_BGZ_32(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_s32 a); mlib_status mlib_GraphicsFillTriangleSet_BZ_8(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_BZ_32(mlib_image *buffer, mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y, const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsFillTriangleSet_GZ_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_GraphicsFillTriangleSet_GZ_32(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); Each of the mlib_GraphicsFillTriangleSet_*() functions draws a set of filled triangles with vertices at {(x1,y1), (x2,y2), (x3,y3)}, {(x4,y4), (x5,y5), (x6,y6)}, ..., and {(xn-2,yn-2), (xn-1,yn-1), (xn,yn)}. Each of the mlib_GraphicsFillTriangleSet_X_*() functions draws a set of filled triangles in Xor mode as follows: data[x,y] ^= c ^ c2 Each of the mlib_GraphicsFillTriangleSet_A_*() functions draws a set of filled triangles with antialiasing. Each of the mlib_GraphicsFillTriangleSet_B_*() functions draws a set of filled triangles with alpha blending as follows: data[x,y] = (data[x,y] * (255 - a) + c * a) / 255 Each of the mlib_GraphicsFillTriangleSet_G_*() functions draws a set of filled triangles with Gouraud shading. Each of the mlib_GraphicsFillTriangleSet_Z_*() functions draws a set of filled triangles with Z buffering. Each of the other functions draws a set of filled triangles with a combination of two or more features like antialiasing (A), alpha blend- ing (B), Gouraud shading (G), and Z buffering (Z). Each of the functions takes some of the following arguments: buffer Pointer to the image into which the function is drawing. 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. npoints must be a multiple of 3. c Color used in the drawing, or pointer to array of colors of the points in the case of Gouraud shading. c2 Alternation color. a Alpha value for blending. 0 <= a <= 255. Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ mlib_GraphicsFillTriangle(3MLIB), mlib_GraphicsFillTriangleFanSet(3MLIB), mlib_GraphicsFillTriangleStripSet(3MLIB), attributes(5) 7 Mar 2005 mlib_GraphicsFillTriangleSet(3MLIB)
Man Page