1mlib_GraphicsDrawTriangleFamneSdeita(L3iMbLILBi)brarmyliFbu_nGcrtaipohniscsDrawTriangleFanSet(3MLIB)
2
3
4
6 mlib_GraphicsDrawTriangleFanSet, mlib_GraphicsDrawTriangleFanSet_8,
7 mlib_GraphicsDrawTriangleFanSet_32, mlib_GraphicsDrawTriangle‐
8 FanSet_X_8, mlib_GraphicsDrawTriangleFanSet_X_32, mlib_GraphicsDrawTri‐
9 angleFanSet_A_8, mlib_GraphicsDrawTriangleFanSet_A_32, mlib_Graphics‐
10 DrawTriangleFanSet_B_8, mlib_GraphicsDrawTriangleFanSet_B_32,
11 mlib_GraphicsDrawTriangleFanSet_G_8, mlib_GraphicsDrawTriangle‐
12 FanSet_G_32, mlib_GraphicsDrawTriangleFanSet_Z_8, mlib_GraphicsDrawTri‐
13 angleFanSet_Z_32, mlib_GraphicsDrawTriangleFanSet_AB_8, mlib_Graphics‐
14 DrawTriangleFanSet_AB_32, mlib_GraphicsDrawTriangleFanSet_ABG_8,
15 mlib_GraphicsDrawTriangleFanSet_ABG_32, mlib_GraphicsDrawTriangle‐
16 FanSet_ABGZ_8, mlib_GraphicsDrawTriangleFanSet_ABGZ_32, mlib_Graphics‐
17 DrawTriangleFanSet_ABZ_8, mlib_GraphicsDrawTriangleFanSet_ABZ_32,
18 mlib_GraphicsDrawTriangleFanSet_AG_8, mlib_GraphicsDrawTriangle‐
19 FanSet_AG_32, mlib_GraphicsDrawTriangleFanSet_AGZ_8, mlib_GraphicsDraw‐
20 TriangleFanSet_AGZ_32, mlib_GraphicsDrawTriangleFanSet_AZ_8,
21 mlib_GraphicsDrawTriangleFanSet_AZ_32, mlib_GraphicsDrawTriangle‐
22 FanSet_BG_8, mlib_GraphicsDrawTriangleFanSet_BG_32, mlib_GraphicsDraw‐
23 TriangleFanSet_BGZ_8, mlib_GraphicsDrawTriangleFanSet_BGZ_32,
24 mlib_GraphicsDrawTriangleFanSet_BZ_8, mlib_GraphicsDrawTriangle‐
25 FanSet_BZ_32, mlib_GraphicsDrawTriangleFanSet_GZ_8, mlib_GraphicsDraw‐
26 TriangleFanSet_GZ_32 - draw triangle set where all members of the set
27 have a common vertex
28
30 cc [ flag... ] file... -lmlib [ library... ]
31 #include <mlib.h>
32
33 mlib_status mlib_GraphicsDrawTriangleFanSet_8(mlib_image *buffer,
34 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
35
36
37 mlib_status mlib_GraphicsDrawTriangleFanSet_32(mlib_image *buffer,
38 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
39
40
41 mlib_status mlib_GraphicsDrawTriangleFanSet_X_8(mlib_image *buffer,
42 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
43 mlib_s32 c2);
44
45
46 mlib_status mlib_GraphicsDrawTriangleFanSet_X_32(mlib_image *buffer,
47 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
48 mlib_s32 c2);
49
50
51 mlib_status mlib_GraphicsDrawTriangleFanSet_A_8(mlib_image *buffer,
52 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
53
54
55 mlib_status mlib_GraphicsDrawTriangleFanSet_A_32(mlib_image *buffer,
56 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
57
58
59 mlib_status mlib_GraphicsDrawTriangleFanSet_B_8(mlib_image *buffer,
60 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
61 mlib_s32 a);
62
63
64 mlib_status mlib_GraphicsDrawTriangleFanSet_B_32(mlib_image *buffer,
65 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
66 mlib_s32 a);
67
68
69 mlib_status mlib_GraphicsDrawTriangleFanSet_G_8(mlib_image *buffer,
70 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
71 const mlib_s32 *c);
72
73
74 mlib_status mlib_GraphicsDrawTriangleFanSet_G_32(mlib_image *buffer,
75 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
76 const mlib_s32 *c);
77
78
79 mlib_status mlib_GraphicsDrawTriangleFanSet_Z_8(mlib_image *buffer,
80 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
81 const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
82
83
84 mlib_status mlib_GraphicsDrawTriangleFanSet_Z_32(mlib_image *buffer,
85 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
86 const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
87
88
89 mlib_status mlib_GraphicsDrawTriangleFanSet_AB_8(mlib_image *buffer,
90 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
91 mlib_s32 a);
92
93
94 mlib_status mlib_GraphicsDrawTriangleFanSet_AB_32(mlib_image *buffer,
95 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
96 mlib_s32 a);
97
98
99 mlib_status mlib_GraphicsDrawTriangleFanSet_ABG_8(mlib_image *buffer,
100 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
101 const mlib_s32 *c, mlib_s32 a);
102
103
104 mlib_status mlib_GraphicsDrawTriangleFanSet_ABG_32(mlib_image *buffer,
105 const mlib_s16 *x, const mlib_s16 *y,
106 mlib_s32 npoints,
107 const mlib_s32 *c, mlib_s32 a);
108
109
110 mlib_status mlib_GraphicsDrawTriangleFanSet_ABGZ_8(mlib_image *buffer,
111 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
112 const mlib_s16 *z,
113 mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
114
115
116 mlib_status mlib_GraphicsDrawTriangleFanSet_ABGZ_32(mlib_image *buffer,
117 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
118 const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
119
120
121 mlib_status mlib_GraphicsDrawTriangleFanSet_ABZ_8(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_GraphicsDrawTriangleFanSet_ABZ_32(mlib_image *buffer,
127 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
128 const mlib_s16 *z,
129 mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
130
131
132 mlib_status mlib_GraphicsDrawTriangleFanSet_AG_8(mlib_image *buffer,
133 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
134 const mlib_s32 *c);
135
136
137 mlib_status mlib_GraphicsDrawTriangleFanSet_AG_32(mlib_image *buffer,
138 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
139 const mlib_s32 *c);
140
141
142 mlib_status mlib_GraphicsDrawTriangleFanSet_AGZ_8(mlib_image *buffer,
143 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
144 const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
145
146
147 mlib_status mlib_GraphicsDrawTriangleFanSet_AGZ_32(mlib_image *buffer,
148 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
149 const mlib_s16 *z, mlib_s32 npoints,
150 const mlib_s32 *c);
151
152
153 mlib_status mlib_GraphicsDrawTriangleFanSet_AZ_8(mlib_image *buffer,
154 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
155 const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
156
157
158 mlib_status mlib_GraphicsDrawTriangleFanSet_AZ_32(mlib_image *buffer,
159 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
160 const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c);
161
162
163 mlib_status mlib_GraphicsDrawTriangleFanSet_BG_8(mlib_image *buffer,
164 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
165 const mlib_s32 *c, mlib_s32 a);
166
167
168 mlib_status mlib_GraphicsDrawTriangleFanSet_BG_32(mlib_image *buffer,
169 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
170 const mlib_s32 *c, mlib_s32 a);
171
172
173 mlib_status mlib_GraphicsDrawTriangleFanSet_BGZ_8(mlib_image *buffer,
174 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
175 const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
176
177
178 mlib_status mlib_GraphicsDrawTriangleFanSet_BGZ_32(mlib_image *buffer,
179 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
180 const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c, mlib_s32 a);
181
182
183 mlib_status mlib_GraphicsDrawTriangleFanSet_BZ_8(mlib_image *buffer,
184 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
185 const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
186
187
188 mlib_status mlib_GraphicsDrawTriangleFanSet_BZ_32(mlib_image *buffer,
189 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
190 const mlib_s16 *z, mlib_s32 npoints, mlib_s32 c, mlib_s32 a);
191
192
193 mlib_status mlib_GraphicsDrawTriangleFanSet_GZ_8(mlib_image *buffer,
194 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
195 const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
196
197
198 mlib_status mlib_GraphicsDrawTriangleFanSet_GZ_32(mlib_image *buffer,
199 mlib_image *zbuffer, const mlib_s16 *x, const mlib_s16 *y,
200 const mlib_s16 *z, mlib_s32 npoints, const mlib_s32 *c);
201
202
204 Each of the mlib_GraphicsDrawTriangleFanSet_*() functions draws a set
205 of triangles with vertices at {(x1,y1), (x2,y2), (x3,y3)}, {(x1,y1),
206 (x3,y3), (x4,y4)}, ..., and {(x1,y1), (xn-1,yn-1), (xn,yn)}.
207
208
209 Each of the mlib_GraphicsDrawTriangleFanSet_X_*() functions draws a set
210 of triangles in Xor mode as follows:
211
212 data[x,y] ^= c ^ c2
213
214
215
216 Each of the mlib_GraphicsDrawTriangleFanSet_A_*() functions draws a set
217 of triangles with antialiasing.
218
219
220 Each of the mlib_GraphicsDrawTriangleFanSet_B_*() functions draws a set
221 of triangles with alpha blending as follows:
222
223 data[x,y] = (data[x,y] * (255 - a) + c * a) / 255
224
225
226
227 Each of the mlib_GraphicsDrawTriangleFanSet_G_*() functions draws a set
228 of triangles with Gouraud shading.
229
230
231 Each of the mlib_GraphicsDrawTriangleFanSet_Z_*() functions draws a set
232 of triangles with Z buffering.
233
234
235 Each of the other functions draws a set of triangles with a combination
236 of two or more features like antialiasing (A), alpha blending (B),
237 Gouraud shading (G), and Z buffering (Z).
238
240 Each of the functions takes some of the following arguments:
241
242 buffer Pointer to the image into which the function is drawing.
243
244
245 zbuffer Pointer to the image that holds the Z buffer.
246
247
248 x Pointer to array of X coordinates of the points.
249
250
251 y Pointer to array of Y coordinates of the points.
252
253
254 z Pointer to array of Z coordinates of the points.
255
256
257 npoints Number of points in the arrays.
258
259
260 c Color used in the drawing, or pointer to array of colors of
261 the points in the case of Gouraud shading.
262
263
264 c2 Alternation color.
265
266
267 a Alpha value for blending. 0 ≤ a ≤ 255.
268
269
271 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
272 returns MLIB_FAILURE.
273
275 See attributes(5) for descriptions of the following attributes:
276
277
278
279
280 ┌─────────────────────────────┬─────────────────────────────┐
281 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
282 ├─────────────────────────────┼─────────────────────────────┤
283 │Interface Stability │Committed │
284 ├─────────────────────────────┼─────────────────────────────┤
285 │MT-Level │MT-Safe │
286 └─────────────────────────────┴─────────────────────────────┘
287
289 mlib_GraphicsDrawTriangle(3MLIB), mlib_GraphicsDrawTriangleSet(3MLIB),
290 mlib_GraphicsDrawTriangleStripSet(3MLIB), attributes(5)
291
292
293
294SunOS 5.11 2 Mar 2m0l0i7b_GraphicsDrawTriangleFanSet(3MLIB)