00001
00002
00003
00004
00005
00006
00008
00010
00011
00012
00013
00014
00016
00017 #pragma once
00018
00019 #include <GL/glu.h>
00020 #include <GL/gl.h>
00021
00022
00023
00025 void combineCallback( double coords[3], double *vertex_data[4], float weight[4], double **dataOut);
00026
00027
00029 void vertexCallback(void *vertex);
00030
00031
00032
00033
00034
00035
00036
00037
00041 class TessPoly
00042 {
00043
00044 private:
00045
00046 GLUtesselator *tobj;
00047
00048 public:
00049
00050 TessPoly();
00051 int setWindingRule(GLenum winding_rule);
00052 int renderContour (double obj_data[][6], GLuint num_vertices);
00053 int beginPolygon(void);
00054 int endPolygon(void);
00055 int beginContour(void);
00056 int endContour(void);
00057 int end(void);
00058
00059 };
00060