'\" e '\"! eqn | mmdoc '\"macro stdmacro .ds Vn Version 1.2 .ds Dt 6 March 1997 .ds Re Release 1.2.0 .ds Dp May 02 11:53 .ds Dm 37 tessendpo .ds Xs 16616 4 tessendpolygon.gl .\" .\" Copyright (c) 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Mon Oct 1 12:37:35 JST 2001 .\" by FUJIWARA Teruyoshi .\" .TH GLUTESSENDPOLYGON 3G .SH 名前 .B "gluTessEndPolygon .\"0 \- delimit a polygon description \- ポリゴンの記述を区切る .SH 書式 void \f3gluTessEndPolygon\fP( GLUtesselator* \fItess\fP ) .nf .fi .EQ delim $$ .EN .SH 引き数 .TP \w'\f2tess\fP\ \ 'u \f2tess\fP .\"0 Specifies the tessellation object (created with \%\f3gluNewTess\fP). テセレーションオブジェクト(\%\f3gluNewTess\fP を使って作る)を指定する。 .SH 説明 .\"0 \%\f3gluTessBeginPolygon\fP and \%\f3gluTessEndPolygon\fP delimit the definition of a .\"0 convex, concave or self-intersecting polygon. Within each \%\f3gluTessBeginPolygon\fP/\%\f3gluTessEndPolygon\fP .\"0 pair, there must be one or more calls to \%\f3gluTessBeginContour\fP/\%\f3gluTessEndContour\fP. \%\f3gluTessBeginPolygon\fP と \%\f3gluTessEndPolygon\fP は、凸なポリゴンや 非凸であるポリゴン、自己干渉しているポリゴンの定義を区切る。 \%\f3gluTessBeginPolygon\fP/\%\f3gluTessEndPolygon\fP の対に挟まれた それぞれの部分では、\%\f3gluTessBeginContour\fP/\%\f3gluTessEndContour\fP を 1 回以上呼び出さなければならない。 .\"0 Within each contour, there are zero or more calls to \%\f3gluTessVertex\fP. The vertices .\"0 specify a closed contour (the last vertex of each contour is automatically linked .\"0 to the first). See the \%\f3gluTessVertex\fP, \%\f3gluTessBeginContour\fP and .\"0 \%\f3gluTessEndContour\fP reference pages for more details. それぞれの経路においては、\%\f3gluTessVertex\fP を 0 回以上呼び出す。 この頂点群は閉じた経路を指定する(それぞれの経路の最後の頂点は、自動的 に最初の頂点と結ばれる)。詳しくは \%\f3gluTessVertex\fP, \%\f3gluTessBeginContour\fP, \%\f3gluTessEndContour\fP の項目を参照 すること。 .P .\"0 Once \%\f3gluTessEndPolygon\fP is called, the polygon is tessellated, and the .\"0 resulting triangles are described through callbacks. \%\f3gluTessEndPolygon\fP が呼ばれるとポリゴンのテセレーション処理が 行われ、その結果として得られる三角形群はコールバックを通して記述される。 .\"0 See \%\f3gluTessCallback\fP for descriptions of the callback functions. コールバック関数の説明については \%\f3gluTessCallback\fP を参照 すること。 .SH 使用例 .\"0 A quadrilateral with a triangular hole in it can be described like this: 三角形の穴が開いた四角形は、以下のように記述できる: .sp .Ex gluTessBeginPolygon(tobj, NULL); gluTessBeginContour(tobj); gluTessVertex(tobj, v1, v1); gluTessVertex(tobj, v2, v2); gluTessVertex(tobj, v3, v3); gluTessVertex(tobj, v4, v4); gluTessEndContour(tobj); gluTessBeginContour(tobj); gluTessVertex(tobj, v5, v5); gluTessVertex(tobj, v6, v6); gluTessVertex(tobj, v7, v7); gluTessEndContour(tobj); gluTessEndPolygon(tobj); .Ee .bp .\"0 In the above example the pointers, $v1$ through $v7$, .\"0 should point to different .\"0 addresses, .\"0 since the values stored at these addresses will not be read by .\"0 the tesselator until \%\f3gluTessEndPolygon\fP is called. 上記の例では、ポインタ $v1$ 〜 $v7$ は異なるアドレスを指していなければ ならない。なぜなら、\%\f3gluTessEndPolygon\fP が呼ばれるまでは、 テセレーション処理がこれらのアドレスに格納されている値を参照しないから である。 .SH 関連項目 \%\f3gluNewTess\fP, \%\f3gluTessBeginContour\fP, \%\f3gluTessVertex\fP, \%\f3gluTessCallback\fP, \%\f3gluTessProperty\fP, \%\f3gluTessNormal\fP, \%\f3gluTessBeginPolygon\fP