Scroll to navigation

GLUNEXTCONTOUR(3G) GLUNEXTCONTOUR(3G)

̾??

gluNextContour - ???η?ϩ?γ??Ϥ򼨤?

????

void gluNextContour( GLUtesselator* tess,

	GLenum type )

??????

?ƥ??졼?????󥪥֥???????(gluNewTess ???Ȥäƺ???)?????ꤹ?롣
??????????ϩ?μ????????ꤹ?롣 ͭ?????ͤ? GLU_EXTERIOR, GLU_INTERIOR, GLU_UNKNOWN, GLU_CCW, GLU_CW ?Ǥ??롣

????

gluNextContour ??ʣ???η?ϩ?????ĥݥꥴ???򵭽Ҥ??뤿???˻Ȥ????롣 gluTessVertex ?򷫤??֤??ƤӽФ??ƺǽ??η?ϩ?򵭽Ҥ????塢 gluNextContour ???ƤӽФ????Ȥǡ????η?ϩ???????ꡢ???η?ϩ?? ???줫???Ϥޤ뤳?Ȥ򼨤??? ???θ??? gluTessVertex ?򷫤??֤??ƤӽФ????Ȥǡ? ????????ϩ?򵭽Ҥ??롣 ???ν????ϡ????Ƥη?ϩ?򵭽Ҥ????????ޤǷ????֤????Ȥ??Ǥ??롣

type ?? gluTessVertex ?θ???³??????ϩ?μ????????ꤹ?롣 ??ϩ??ͭ???ʼ????ϰʲ????̤??Ǥ???:

?ݥꥴ???γ?¦?ζ??????????????볰????ϩ??
?ݥꥴ???????ζ?????(???ʤ?)????????????????ϩ??
?????Τ狼???ʤ???ϩ?Ǥ??ꡢ?饤?֥??꤬???Ϥ??Ԥä??????ȳ??? ?Τɤ????Ǥ????Τ???Ƚ?ꤹ?롣
?ǽ??????????줿 GLU_CCW ??ϩ?? GLU_CW ??ϩ?? ??¦?Ȥߤʤ????롣 ?????ʳ??????Ƥη?ϩ?ϡ??ǽ??η?ϩ??Ʊ??????(???ײ????ޤ???ȿ???ײ???) ?Ǥ????г?????ϩ?Ȥߤʤ??졢?ۤʤ??????Ǥ???????????ϩ?ȸ??ʤ????롣

??ϩ?ΤҤȤĤ? GLU_CCW ???ޤ??? GLU_CW ???Ǥ????С? ???Ƥη?ϩ??Ʊ?????Ǥʤ????Фʤ??ʤ?(?????Ǥʤ??????ˤϡ????Ƥ? GLU_CCW ??ϩ?????? GLU_CW ??ϩ?? GLU_UNKNOWN ???? ?ѹ???????)??

?ºݤˤ? GLU_CCW ???? GLU_CW ???δ֤ˤϰ㤤???ʤ????? ???դ??뤳?ȡ?

?ǽ??η?ϩ?򵭽Ҥ??????ˡ?gluNextContour ???Ƥ??Ǻǽ??η?ϩ?? ???????????뤳?Ȥ??Ǥ??롣 ?ǽ??η?ϩ?????? gluNextContour ???ƤФ??Ƥ??ʤ????С??ǽ??? ??ϩ?? GLU_EXTERIOR ???Ȥ????롣

???δؿ??ϸŤ??ƻ??Ѥ??٤??ǤϤʤ????????ߴ????Τ??????????󶡤????Ƥ??롣 gluNextContour ?θƤӽФ??ϡ?gluTessEndContour ?? gluTessBeginContour ?????˸ƤӽФ????Ȥ??֤??????????롣

??????

???ѷ??η꤬???????ͳѷ??ϡ????Τ褦?˵??ҤǤ???:

gluBeginPolygon(tobj);
gluTessVertex(tobj, v1, v1);
gluTessVertex(tobj, v2, v2);
gluTessVertex(tobj, v3, v3);
gluTessVertex(tobj, v4, v4); gluNextContour(tobj, GLU_INTERIOR);
gluTessVertex(tobj, v5, v5);
gluTessVertex(tobj, v6, v6);
gluTessVertex(tobj, v7, v7); gluEndPolygon(tobj);

??Ϣ????

gluBeginPolygon, gluNewTess, gluTessCallback, gluTessVertex, gluTessBeginContour