1mlib_GraphicsDrawLineFanSetm(e3dMiLaILBi)b Library Fumnlcitbi_oGnrsaphicsDrawLineFanSet(3MLIB)
2
3
4

NAME

6       mlib_GraphicsDrawLineFanSet, mlib_GraphicsDrawLineFanSet_8, mlib_Graph‐
7       icsDrawLineFanSet_32,  mlib_GraphicsDrawLineFanSet_X_8,  mlib_Graphics‐
8       DrawLineFanSet_X_32,   mlib_GraphicsDrawLineFanSet_A_8,  mlib_Graphics‐
9       DrawLineFanSet_A_32,  mlib_GraphicsDrawLineFanSet_B_8,   mlib_Graphics‐
10       DrawLineFanSet_B_32,   mlib_GraphicsDrawLineFanSet_G_8,  mlib_Graphics‐
11       DrawLineFanSet_G_32,  mlib_GraphicsDrawLineFanSet_Z_8,   mlib_Graphics‐
12       DrawLineFanSet_Z_32,  mlib_GraphicsDrawLineFanSet_AB_8,  mlib_Graphics‐
13       DrawLineFanSet_AB_32, mlib_GraphicsDrawLineFanSet_ABG_8, mlib_Graphics‐
14       DrawLineFanSet_ABG_32,  mlib_GraphicsDrawLineFanSet_ABGZ_8, mlib_Graph‐
15       icsDrawLineFanSet_ABGZ_32,           mlib_GraphicsDrawLineFanSet_ABZ_8,
16       mlib_GraphicsDrawLineFanSet_ABZ_32,   mlib_GraphicsDrawLineFanSet_AG_8,
17       mlib_GraphicsDrawLineFanSet_AG_32,   mlib_GraphicsDrawLineFanSet_AGZ_8,
18       mlib_GraphicsDrawLineFanSet_AGZ_32,   mlib_GraphicsDrawLineFanSet_AZ_8,
19       mlib_GraphicsDrawLineFanSet_AZ_32,    mlib_GraphicsDrawLineFanSet_BG_8,
20       mlib_GraphicsDrawLineFanSet_BG_32,   mlib_GraphicsDrawLineFanSet_BGZ_8,
21       mlib_GraphicsDrawLineFanSet_BGZ_32,   mlib_GraphicsDrawLineFanSet_BZ_8,
22       mlib_GraphicsDrawLineFanSet_BZ_32,    mlib_GraphicsDrawLineFanSet_GZ_8,
23       mlib_GraphicsDrawLineFanSet_GZ_32 - draw line set where all members  of
24       the set have one common end point
25

SYNOPSIS

27       cc [ flag... ] file... -lmlib [ library... ]
28       #include <mlib.h>
29
30       mlib_status mlib_GraphicsDrawLineFanSet_8(mlib_image *buffer,
31            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
32
33
34       mlib_status mlib_GraphicsDrawLineFanSet_32(mlib_image *buffer,
35            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
36
37
38       mlib_status mlib_GraphicsDrawLineFanSet_X_8(mlib_image *buffer,
39            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
40            mlib_s32 c2);
41
42
43       mlib_status mlib_GraphicsDrawLineFanSet_X_32(mlib_image *buffer,
44            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
45            mlib_s32 c2);
46
47
48       mlib_status mlib_GraphicsDrawLineFanSet_A_8(mlib_image *buffer,
49            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
50
51
52       mlib_status mlib_GraphicsDrawLineFanSet_A_32(mlib_image *buffer,
53            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
54
55
56       mlib_status mlib_GraphicsDrawLineFanSet_B_8(mlib_image *buffer,
57            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
58            mlib_s32 a);
59
60
61       mlib_status mlib_GraphicsDrawLineFanSet_B_32(mlib_image *buffer,
62            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
63            mlib_s32 a);
64
65
66       mlib_status mlib_GraphicsDrawLineFanSet_G_8(mlib_image *buffer,
67            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
68            const mlib_s32 *c);
69
70
71       mlib_status mlib_GraphicsDrawLineFanSet_G_32(mlib_image *buffer,
72            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
73            const mlib_s32 *c);
74
75
76       mlib_status mlib_GraphicsDrawLineFanSet_Z_8(mlib_image *buffer,
77            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
78            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
79
80
81       mlib_status mlib_GraphicsDrawLineFanSet_Z_32(mlib_image *buffer,
82            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
83            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
84
85
86       mlib_status mlib_GraphicsDrawLineFanSet_AB_8(mlib_image *buffer,
87            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
88            mlib_s32 a);
89
90
91       mlib_status mlib_GraphicsDrawLineFanSet_AB_32(mlib_image *buffer,
92            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
93            mlib_s32 a);
94
95
96       mlib_status mlib_GraphicsDrawLineFanSet_ABG_8(mlib_image *buffer,
97            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
98            const mlib_s32 *c, mlib_s32 a);
99
100
101       mlib_status mlib_GraphicsDrawLineFanSet_ABG_32(mlib_image *buffer,
102            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
103            const mlib_s32 *c, mlib_s32 a);
104
105
106       mlib_status mlib_GraphicsDrawLineFanSet_ABGZ_8(mlib_image *buffer,
107            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
108            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
109
110
111       mlib_status mlib_GraphicsDrawLineFanSet_ABGZ_32(mlib_image *buffer,
112            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
113            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
114
115
116       mlib_status mlib_GraphicsDrawLineFanSet_ABZ_8(mlib_image *buffer,
117            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
118            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
119
120
121       mlib_status mlib_GraphicsDrawLineFanSet_ABZ_32(mlib_image *buffer,
122            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
123            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
124
125
126       mlib_status mlib_GraphicsDrawLineFanSet_AG_8(mlib_image *buffer,
127            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
128            const mlib_s32 *c);
129
130
131       mlib_status mlib_GraphicsDrawLineFanSet_AG_32(mlib_image *buffer,
132            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
133            const mlib_s32 *c);
134
135
136       mlib_status mlib_GraphicsDrawLineFanSet_AGZ_8(mlib_image *buffer,
137            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
138            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
139
140
141       mlib_status mlib_GraphicsDrawLineFanSet_AGZ_32(mlib_image *buffer,
142            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
143            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
144
145
146       mlib_status mlib_GraphicsDrawLineFanSet_AZ_8(mlib_image *buffer,
147            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
148            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
149
150
151       mlib_status mlib_GraphicsDrawLineFanSet_AZ_32(mlib_image *buffer,
152            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
153            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
154
155
156       mlib_status mlib_GraphicsDrawLineFanSet_BG_8(mlib_image *buffer,
157            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
158            const mlib_s32 *c, mlib_s32 a);
159
160
161       mlib_status mlib_GraphicsDrawLineFanSet_BG_32(mlib_image *buffer,
162            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
163            const mlib_s32 *c, mlib_s32 a);
164
165
166       mlib_status mlib_GraphicsDrawLineFanSet_BGZ_8(mlib_image *buffer,
167            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
168            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
169
170
171       mlib_status mlib_GraphicsDrawLineFanSet_BGZ_32(mlib_image *buffer,
172            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
173            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
174
175
176       mlib_status mlib_GraphicsDrawLineFanSet_BZ_8(mlib_image *buffer,
177            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
178            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
179
180
181       mlib_status mlib_GraphicsDrawLineFanSet_BZ_32(mlib_image *buffer,
182            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
183            const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
184
185
186       mlib_status mlib_GraphicsDrawLineFanSet_GZ_8(mlib_image *buffer,
187            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
188            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
189
190
191       mlib_status mlib_GraphicsDrawLineFanSet_GZ_32(mlib_image *buffer,
192            mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
193            const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
194
195

DESCRIPTION

197       Each  of  the  mlib_GraphicsDrawLineFanSet_*() functions draws a set of
198       lines connecting (x1,y1) with (x2,y2), (x1,y1) with (x3,y3),  ...,  and
199       (x1,y1) with (xn,yn).
200
201
202       Each  of the mlib_GraphicsDrawLineFanSet_X_*() functions draws a set of
203       lines in Xor mode as follows:
204
205             data[x,y] ^= c ^ c2
206
207
208
209       Each of the mlib_GraphicsDrawLineFanSet_A_*() functions draws a set  of
210       lines with antialiasing.
211
212
213       Each  of the mlib_GraphicsDrawLineFanSet_B_*() functions draws a set of
214       lines with alpha blending as follows:
215
216             data[x,y] = (data[x,y] * (255 - a) + c * a) / 255
217
218
219
220       Each of the mlib_GraphicsDrawLineFanSet_G_*() functions draws a set  of
221       lines with Gouraud shading.
222
223
224       Each  of the mlib_GraphicsDrawLineFanSet_Z_*() functions draws a set of
225       lines with Z buffering.
226
227
228       Each of the other functions draws a set of lines with a combination  of
229       two or more features like antialiasing (A), alpha blending (B), Gouraud
230       shading (G), and Z buffering (Z).
231

PARAMETERS

233       Each of the functions takes some of the following arguments:
234
235       buffer     Pointer to the image into which the function is drawing.
236
237
238       zbuffer    Pointer to the image that holds the Z buffer.
239
240
241       x          Pointer to array of X coordinates of the points.
242
243
244       y          Pointer to array of Y coordinates of the points.
245
246
247       z          Pointer to array of Z coordinates of the points.
248
249
250       npoints    Number of points in the arrays.
251
252
253       c          Color used in the drawing, or pointer to array of colors  of
254                  the points in the case of Gouraud shading.
255
256
257       c2         Alternation color.
258
259
260       a          Alpha value for blending. 0 ≤ a ≤ 255.
261
262

RETURN VALUES

264       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
265       returns MLIB_FAILURE.
266

ATTRIBUTES

268       See attributes(5) for descriptions of the following attributes:
269
270
271
272
273       ┌─────────────────────────────┬─────────────────────────────┐
274       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
275       ├─────────────────────────────┼─────────────────────────────┤
276       │Interface Stability          │Committed                    │
277       ├─────────────────────────────┼─────────────────────────────┤
278       │MT-Level                     │MT-Safe                      │
279       └─────────────────────────────┴─────────────────────────────┘
280

SEE ALSO

282       mlib_GraphicsDrawLine(3MLIB),          mlib_GraphicsDrawLineSet(3MLIB),
283       mlib_GraphicsDrawLineStripSet(3MLIB), attributes(5)
284
285
286
287SunOS 5.11                        2 Mar 2007mlib_GraphicsDrawLineFanSet(3MLIB)
Impressum