本文主要是介绍OpenGL(15)GLU库API,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
/**** Backwards compatibility for old tesselator ****/
//定义一个非凸多边形
void APIENTRY gluBeginPolygon( GLUtesselator *tess );
//为其他轮廓的开始做标记
void APIENTRY gluNextContour( GLUtesselator *tess, GLenum type );
//定义一个非凸多边形
void APIENTRY gluEndPolygon( GLUtesselator *tess );
/**** Callback function prototypes ****//* gluQuadricCallback */
typedef void (CALLBACK* GLUquadricErrorProc) (GLenum);/* gluTessCallback */
typedef void (CALLBACK* GLUtessBeginProc) (GLenum);
typedef void (CALLBACK* GLUtessEdgeFlagProc) (GLboolean);
typedef void (CALLBACK* GLUtessVertexProc) (void *);
typedef void (CALLBACK* GLUtessEndProc) (void);
typedef void (CALLBACK* GLUtessErrorProc) (GLenum);
typedef void (CALLBACK* GLUtessCombineProc) (GLdouble[3],void*[4], GLfloat[4],void** );
typedef void (CALLBACK* GLUtessBeginDataProc) (GLenum, void *);
typedef void (CALLBACK* GLUtessEdgeFlagDataProc) (GLboolean, void *);
typedef void (CALLBACK* GLUtessVertexDataProc) (void *, void *);
typedef void (CALLBACK* GLUtessEndDataProc) (void *);
typedef void (CALLBACK* GLUtessErrorDataProc) (GLenum, void *);
typedef void (CALLBACK* GLUtessCombineDataProc) (GLdouble[3],void*[4], GLfloat[4],void**,void* );
这篇关于OpenGL(15)GLU库API的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!