Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

tesspoly.h

Go to the documentation of this file.
00001 
00002 //                          tessPoly.h                                  //
00003 //                         ------------                                 //
00004 //    begin                : Thu Sep 11 2003                            //
00005 //    copyright            : (C) 2003 by cbaudry (CEA/DSM/SPP)          //
00006 //    email                : cedric.baudry@tremplin-utc.fr              //
00008 
00010 //                                                                        //
00011 //   This program is free software; you can redistribute it and/or modify //
00012 //   it under the terms of the GNU General Public License as published by //
00013 //   the Free Software Foundation, version 2 of the License               //
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 /* TODO
00033  * 2. Add the ability to specify a normal for tessellated polygons. See gluTessNormal( ).
00034  * 3. Use display lists if polygon data is always static.
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 

Generated on Wed Feb 18 16:32:51 2004 for POVAMA by doxygen1.2.18