Scroll to navigation

GLUTESSVERTEX(3G) GLUTESSVERTEX(3G)

̾??

gluTessVertex - ?ݥꥴ????ĺ???????ꤹ??

????

void gluTessVertex( GLUtesselator* tess,

	GLdouble *location,
	GLvoid* data )

??????

????

gluTessVertex ?ϥץ??????????????????ݥꥴ????ĺ???򵭽Ҥ??롣 ?????֤??? gluTessVertex ???Ƥ֤??Ȥ??Ĥ?????ϩ?򵭽Ҥ??롣 ?㤨?лͳѷ??򵭽Ҥ????ˤϡ?gluTessVertex ?? 4 ???ƤФʤ????Фʤ??ʤ??? gluTessVertex ???Ƥ֤??Ȥ??Ǥ????Τϡ?gluTessBeginContour ?? gluTessEndContour ?˶??ޤ줿??ʬ?????Ǥ??롣

data ?????̡?ĺ?????֤???Ǽ???Ƥ??빽¤?Τ??ؤ??? ???ι?¤?Τϡ?????ˡ???ʤɡ???ĺ????????°???????ġ? ?ƥ??졼??????????(gluTessCallback ?ι??ܤ򻲾?)?θ塢???Υݥ??󥿤? GLU_TESS_VERTEX ?? GLU_TESS_VERTEX_DATA ???????Хå???ͳ?? ?桼?????֤????롣

??????

???ѷ??η꤬???????ͳѷ??ϰʲ??Τ褦?˵??ҤǤ???:

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);

????

?????????ѿ??? location ?? data ?˻Ȥ????롼?פΰ????Ȥ??? ?????ѿ????ͤ???Ǽ???Ƥ??ޤ????ȤϤ褯?????????Ǥ??롣 ?㤨?С? for (i = 0; i < NVERTICES; ++i) {
GLdouble data[3];
data[0] = vertex[i][0];
data[1] = vertex[i][1];
data[2] = vertex[i][2];
gluTessVertex(tobj, data, data);
}

?Ϥ??ޤ?ư??ʤ??? location ?? data ?????ꤷ?Ƥ????ݥ??󥿤? gluTessEndPolygon ???¹Ԥ??????ޤǻ??Ȥ??ڤ??ʤ????⤷???ʤ??? ?ǡ??롼?פκǸ??η????֤??ǻ??ꤵ?줿???ΰʳ???ĺ????ɸ?ϡ? ?ƥ??졼?????????????Ϥޤ????˾??񤭤????뤫?⤷???ʤ???

???????꤬???????ˤ褯?????? 2 ?Ĥξɾ??ϡ??????ҤȤĤ???ɽ???????ʤ? ????(data ???Ф??ƶɽ??ѿ????Ȥ????Ƥ?????)?ȡ? GLU_TESS_NEED_COMBINE_CALLBACK ???顼???????뤳?? (location ???Ф??ƶɽ??ѿ????Ȥ????Ƥ?????)?Ǥ??롣

??Ϣ????

gluTessBeginPolygon, gluNewTess, gluTessBeginContour, gluTessCallback, gluTessProperty, gluTessNormal, gluTessEndPolygon