1 /* 2 * Copyright 2010, Google Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * 9 * * Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * * Redistributions in binary form must reproduce the above 12 * copyright notice, this list of conditions and the following disclaimer 13 * in the documentation and/or other materials provided with the 14 * distribution. 15 * * Neither the name of Google Inc. nor the names of its 16 * contributors may be used to endorse or promote products derived from 17 * this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 #ifndef GLUOS_H_ 33 #define GLUOS_H_ 34 35 // This header provides the minimal definitions needed to compile the 36 // GLU tessellator sources. 37 #define GLAPIENTRY 38 39 typedef unsigned char GLboolean; 40 typedef double GLdouble; 41 typedef unsigned int GLenum; 42 typedef float GLfloat; 43 typedef void GLvoid; 44 45 #define gluNewTess Sk_gluNewTess 46 #define gluDeleteTess Sk_gluDeleteTess 47 #define gluTessProperty Sk_gluTessProperty 48 #define gluGetTessProperty Sk_gluGetTessProperty 49 #define gluTessNormal Sk_gluTessNormal 50 #define gluTessCallback Sk_gluTessCallback 51 #define gluTessVertex Sk_gluTessVertex 52 #define gluTessBeginPolygon Sk_gluTessBeginPolygon 53 #define gluTessBeginContour Sk_gluTessBeginContour 54 #define gluTessEndContour Sk_gluTessEndContour 55 #define gluTessEndPolygon Sk_gluTessEndPolygon 56 57 #define __gl_noBeginData Sk__gl_noBeginData 58 #define __gl_noEdgeFlagData Sk__gl_noEdgeFlagData 59 #define __gl_noVertexData Sk__gl_noVertexData 60 #define __gl_noEndData Sk__gl_noEndData 61 #define __gl_noErrorData Sk__gl_noErrorData 62 #define __gl_noCombineData Sk__gl_noCombineData 63 #define __gl_computeInterior Sk__gl_computeInterior 64 #define __gl_dictListDelete Sk__gl_dictListDelete 65 #define __gl_dictListDeleteDict Sk__gl_dictListDeleteDict 66 #define __gl_dictListInsertBefore Sk__gl_dictListInsertBefore 67 #define __gl_dictListNewDict Sk__gl_dictListNewDict 68 #define __gl_dictListSearch Sk__gl_dictListSearch 69 #define __gl_edgeEval Sk__gl_edgeEval 70 #define __gl_edgeIntersect Sk__gl_edgeIntersect 71 #define __gl_edgeSign Sk__gl_edgeSign 72 #define __gl_memInit Sk__gl_memInit 73 #define __gl_meshAddEdgeVertex Sk__gl_meshAddEdgeVertex 74 #ifndef NDEBUG 75 #define __gl_meshCheckMesh Sk__gl_meshCheckMesh 76 #endif 77 #define __gl_meshConnect Sk__gl_meshConnect 78 #define __gl_meshDelete Sk__gl_meshDelete 79 #define __gl_meshDeleteMesh Sk__gl_meshDeleteMesh 80 #define __gl_meshDiscardExterior Sk__gl_meshDiscardExterior 81 #define __gl_meshMakeEdge Sk__gl_meshMakeEdge 82 #define __gl_meshNewMesh Sk__gl_meshNewMesh 83 #define __gl_meshSetWindingNumber Sk__gl_meshSetWindingNumber 84 #define __gl_meshSplice Sk__gl_meshSplice 85 #define __gl_meshSplitEdge Sk__gl_meshSplitEdge 86 #define __gl_meshTessellateInterior Sk__gl_meshTessellateInterior 87 #define __gl_meshTessellateMonoRegion Sk__gl_meshTessellateMonoRegion 88 #define __gl_meshUnion Sk__gl_meshUnion 89 #define __gl_meshZapFace Sk__gl_meshZapFace 90 #define __gl_pqHeapDelete Sk__gl_pqHeapDelete 91 #define __gl_pqHeapDeletePriorityQ Sk__gl_pqHeapDeletePriorityQ 92 #define __gl_pqHeapExtractMin Sk__gl_pqHeapExtractMin 93 #define __gl_pqHeapInit Sk__gl_pqHeapInit 94 #define __gl_pqHeapInsert Sk__gl_pqHeapInsert 95 #define __gl_pqHeapNewPriorityQ Sk__gl_pqHeapNewPriorityQ 96 #define __gl_pqSortDelete Sk__gl_pqSortDelete 97 #define __gl_pqSortDeletePriorityQ Sk__gl_pqSortDeletePriorityQ 98 #define __gl_pqSortExtractMin Sk__gl_pqSortExtractMin 99 #define __gl_pqSortInit Sk__gl_pqSortInit 100 #define __gl_pqSortInsert Sk__gl_pqSortInsert 101 #define __gl_pqSortIsEmpty Sk__gl_pqSortIsEmpty 102 #define __gl_pqSortMinimum Sk__gl_pqSortMinimum 103 #define __gl_pqSortNewPriorityQ Sk__gl_pqSortNewPriorityQ 104 #define __gl_projectPolygon Sk__gl_projectPolygon 105 #define __gl_renderBoundary Sk__gl_renderBoundary 106 #define __gl_renderCache Sk__gl_renderCache 107 #define __gl_renderMesh Sk__gl_renderMesh 108 #define __gl_transEval Sk__gl_transEval 109 #define __gl_transSign Sk__gl_transSign 110 #define __gl_vertCCW Sk__gl_vertCCW 111 #define __gl_vertLeq Sk__gl_vertLeq 112 113 114 #undef MIN 115 #undef MAX 116 117 #endif // GLUOS_H_ 118