词条 | gluNurbsCallback |
释义 | gluNurbsCallback NAME gluNurbsCallback -- define a callback for a NURBS object C SPECIFICATION void gluNurbsCallback(GLUnurbsObj *nobj, GLenum which, void (*fn)() ) PARAMETERS nobj Specifies the NURBS object (created with gluNewNurbsRenderer). which Specifies the callback being defined. The only valid value is GLU_ERROR. fn Specifies the function that the callback calls. DESCRIPTION gluNurbsCallback is used to define a callback to be used by a NURBS object. If the specified callback is already defined, then it is replaced. If fn is NULL, then any existing callback is erased. The one legal callback is GLU_ERROR: GLU_ERROR The error function is called when an error is encountered. Its single argument is of type GLenum, and it indicates the specific error that occurred. There are 37 errors unique to NURBS named GLU_NURBS_ERROR1 through GLU_NURBS_ERROR37. Character strings describing these errors can be retrieved with gluErrorString. |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。