Scroll to navigation

GLUNURBSCALLBACK(3G) GLUNURBSCALLBACK(3G)

̾??

gluNurbsCallback - NURBS ???֥??????ȤΥ??????Хå???????????

????

void gluNurbsCallback( GLUnurbs* nurb,

	GLenum which,
	_GLUfuncptr CallBackFunc )

??????

NURBS ???֥???????(gluNewNurbsRenderer ???Ȥäƺ???)?????ꤹ?롣
???????륳?????Хå??????ꤹ?롣 ͭ?????ͤ? GLU_NURBS_BEGIN, GLU_NURBS_VERTEX, GLU_NURBS_NORMAL, GLU_NURBS_COLOR, GLU_NURBS_TEXTURE_COORD, GLU_NURBS_END, GLU_NURBS_BEGIN_DATA, GLU_NURBS_VERTEX_DATA, GLU_NURBS_NORMAL_DATA, GLU_NURBS_COLOR_DATA, GLU_NURBS_TEXTURE_COORD_DATA, GLU_NURBS_END_DATA, GLU_NURBS_ERROR ?Ǥ??롣
???????Хå????ƤӽФ??ؿ??????ꤹ?롣

????

gluNurbsCallback ?ϡ?NURBS ???֥??????Ȥ??Ȥ????????Хå??? ???????뤿???˻Ȥ????롣 ???ꤵ?줿???????Хå????????????????Ƥ????顢?????????????Хå??? ?֤??????????롣 CallBackFunc ?? NULL ?Ǥ????С????Υ??????Хå??ϸƤӽФ????ʤ? ?ʤꡢ??Ϣ?դ??????Ƥ????ǡ?????(?⤷??????)???????롣

???顼?ѥ??????Хå????????????????Υ??????Хå??? NURBS ?? ?ƥ??졼???????????˻Ȥ???(GLU_NURBS_MODE ?? GLU_NURBS_TESSELLATOR ?????ꤵ???Ƥ?????)?? ?ƥ??졼???????η??̤Ȥ??????????? OpenGL ?Υݥꥴ???ץ??ߥƥ??֤? ?֤??? ?ƥ??????Хå??ˤ? 2 ?????ΥС??????󤬤??????????դ??뤳?ȡ? ???ʤ??????桼???ǡ??????ؤ??ݥ??󥿤????Ĥ??ΤȻ????ʤ????ΤǤ??롣 ???륳?????Хå????Ф???ξ???ΥС??????󤬻??ꤵ?줿?????ϡ? ?桼???ǡ??????ؤ??ݥ??󥿤??????????Ȥ????롣 ``userData'' ???????? gluNurbsCallbackData ?θƤӽФ??? ???ꤵ?줿?ݥ??󥿤Υ??ԡ??Ǥ??????????դ??뤳?ȡ?

???顼?ѥ??????Хå??ؿ??ϡ?GLU_NURBS_MODE ???ͤ˴ط??ʤ? ͭ???Ȥʤ롣 ¾?????Ƥμ????Υ??????Хå??ؿ??ϡ? GLU_NURBS_MODE ?? GLU_NURBS_TESSELLATOR ?? ???ꤵ???Ƥ???????????ͭ???Ȥʤ롣

ͭ???ʥ??????Хå??ϰʲ????̤??Ǥ???: GLU_NURBS_BEGIN ???ϥ??????Хå??ϥץ??ߥƥ??֤γ??Ϥ򼨤??? ???δؿ??? GLenum ???ΰ????????ҤȤļ??롣 ?????????ͤˤ? GL_LINES, GL_LINE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP, GL_TRIANGLES, GL_QUAD_STRIP ?Τ????줫???????Ǥ??롣 ?ǥե????ȤǤϳ??ϥ??????Хå??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:

void begin ( GLenum type );
GLU_NURBS_BEGIN ???????Хå??Ȥۤ?Ʊ???Ǥ??뤬???ݥ??󥿰????? ???ҤȤ?¿???????ۤʤ롣???Υݥ??󥿤??????? gluNurbsCallbackData ?θƤӽФ??κݤ˻??ꤵ?줿?ݥ??󥿤? ???ԡ??Ǥ??롣 ?ǥե????ȤΥ??????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void beginData (GLenum type, void *userData);
ĺ?????????Хå??ϥץ??ƥߥ??֤?ĺ???򼨤??? ĺ???κ?ɸ?ϰ????? ``vertex'' ?˳?Ǽ?????롣 ???????줿???Ƥ?ĺ???μ????? 3 ?Ǥ??롣?ĤޤꡢƱ????ɸ?Ϥ? ???ե?????ɸ?Ϥ??Ѵ??????롣 ?ǥե????Ȥ?ĺ?????????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void vertex ( GLfloat *vertex );
GLU_NURBS_VERTEX ???????Хå??Ȥۤ?Ʊ???Ǥ??뤬???ݥ??󥿰????? ???ҤȤ?¿???????ۤʤ롣???Υݥ??󥿤??????? gluNurbsCallbackData ?θƤӽФ??κݤ˻??ꤵ?줿?ݥ??󥿤? ???ԡ??Ǥ??롣 ?ǥե????ȤΥ??????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void vertexData ( GLfloat *vertex, void *userData );
ˡ?????????Хå??ϡ?ĺ??????ˡ???????????????ȸƤӽФ????롣 ˡ??????ʬ?ϰ????? ``normal'' ?˳?Ǽ?????롣 NURBS ?????ξ??硢???Υ??????Хå??ؿ??ϥ桼????ˡ???ޥå? (GL_MAP1_NORMAL)??Ϳ?????????Τ?ͭ???Ȥʤ롣 NURBS ???̤ξ??硢ˡ???ޥåפ?(GL_MAP2_NORMAL)??Ϳ?????????ȡ? ??????????ˡ????ˡ???ޥåפ??黻?Ф????롣 ˡ???ޥåפ?Ϳ???????Ƥ??ʤ????С????̤?ˡ???? GL_AUTO_NORMAL ??ͭ???ʾ?????ɾ?????????Ф?????????Ʊ?ͤ???ˡ?ǻ??Ф????롣 ?ǥե????Ȥ?ˡ?????????Хå??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void normal ( GLfloat *normal );
GLU_NURBS_NORMAL ???????Хå??Ȥۤ?Ʊ???Ǥ??뤬???ݥ??󥿰????? ???ҤȤ?¿???????ۤʤ롣???Υݥ??󥿤??????? gluNurbsCallbackData ?θƤӽФ??κݤ˻??ꤵ?줿?ݥ??󥿤? ???ԡ??Ǥ??롣 ?ǥե????ȤΥ??????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void normalData ( GLfloat *normal, void *userData );
?????????Хå??ϡ?ĺ?????˿??????????줿?Ȥ??˸ƤӽФ????롣 ???????Ǥϰ????? ``color'' ?˳?Ǽ?????롣 ???Υ??????Хå??ϡ??桼???????顼?ޥå?((GL_MAP1_COLOR_4 ?ޤ??? GL_MAP2_COLOR_4)?????ꤷ???????Τ?ͭ???ˤʤ롣 ``color'' ?? 4 ?Ĥ?????(R, G, B, A)?????ġ? ?ǥե????Ȥο????????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void color ( GLfloat *color );
GLU_NURBS_COLOR ???????Хå??Ȥۤ?Ʊ???Ǥ??뤬???ݥ??󥿰????? ???ҤȤ?¿???????ۤʤ롣???Υݥ??󥿤??????? gluNurbsCallbackData ?θƤӽФ??κݤ˻??ꤵ?줿?ݥ??󥿤? ???ԡ??Ǥ??롣 ?ǥե????ȤΥ??????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void colorData ( GLfloat *color, void *userData );
?ƥ??????㥳?????Хå???ĺ?????˥ƥ?????????ɸ?Ϥ????????줿?Ȥ??˸Ƥ? ?Ф????롣 ???????κ?ɸ?Ϥϰ????? ``texCoord'' ?˳?Ǽ?????롣 ?ƥ?????????ɸ?Ϥο??? 1, 2, 3, 4 ?Τ????줫?Ǥ??ꡢ???ꤵ?줿 ?ƥ????????ޥåפμ????ˤ??äƷ??ޤ? (GL_MAP1_TEXTURE_COORD_1, GL_MAP1_TEXTURE_COORD_2, GL_MAP1_TEXTURE_COORD_3, GL_MAP1_TEXTURE_COORD_4, GL_MAP2_TEXTURE_COORD_1, GL_MAP2_TEXTURE_COORD_2, GL_MAP2_TEXTURE_COORD_3, GL_MAP2_TEXTURE_COORD_4)?? ?ƥ????????ޥåפ????ꤵ???Ƥ??ʤ??????ϡ????Υ??????Хå??ؿ??? ?ƤӽФ????ʤ??? ?ǥե????ȤΥƥ??????㥳?????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void texCoord ( GLfloat *texCoord );
GLU_NURBS_TEXTURE_COORD ???????Хå??Ȥۤ?Ʊ???Ǥ??뤬?? ?ݥ??󥿰????????ҤȤ?¿???????ۤʤ롣 ???Υݥ??󥿤??????? gluNurbsCallbackData ?θƤӽФ??κݤ? ???ꤵ?줿?ݥ??󥿤Υ??ԡ??Ǥ??롣 ?ǥե????ȤΥ??????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void texCoordData (GLfloat *texCoord, void *userData);
???Υ??????Хå??ϥץ??ߥƥ??֤ν??????ǸƤӽФ????롣 ?ǥե????Ȥν?λ???????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void end ( void );
GLU_NURBS_END ???????Хå??Ȥۤ?Ʊ???Ǥ??뤬???ݥ??󥿰????? ???ҤȤ?¿???????ۤʤ롣???Υݥ??󥿤??????? gluNurbsCallbackData ?θƤӽФ??κݤ˻??ꤵ?줿?ݥ??󥿤? ???ԡ??Ǥ??롣 ?ǥե????ȤΥ??????Хå??ؿ??? NULL ?Ǥ??롣 ???Υ??????Хå??δؿ??ץ??ȥ????פϼ??Τ褦?ˤʤ?:
void endData ( void *userData );
???顼?Ѵؿ??ϡ????顼?????????Ȥ??˸ƤӽФ????롣 ???δؿ??? GLenum ???ΰ????????ҤȤļ??롣??????ȯ?????????顼?򼨤??? NURBS ??ͭ?Υ??顼?? 37 ?Ĥ??ꡢGLU_NURBS_ERROR1 ???? GLU_NURBS_ERROR37 ?ޤǤ?̾?????դ??Ƥ??롣 ???顼?????Ƥ?????????ʸ?????? gluErrorString ???Ȥä? ???뤳?Ȥ??Ǥ??롣

????

gluNurbsCallback ?ϥС??????? 1.2 ?ʹߤ? GLU ?Ǥ????Ȥ??ʤ???

GLU ?С??????? 1.2 ?Ǥϡ?which ?ˤ? GLU_ERROR ?????????? ???ʤ??? GLU_ERROR ?? GLU ?С??????? 1.3 ?ǤϻȤ??٤??ǤϤʤ??? GLU_NURBS_ERROR ?????????ޤ????? CallBackFunc ?˻????Ǥ???¾?????Ƥ??ͤϡ?GLU ?С??????? 1.3 ?ʹ? ?ǤΤ????ѤǤ??롣

??Ϣ????

gluErrorString, gluNewNurbsRenderer, gluNurbsCallbackData, gluNurbsProperty