Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/glutess/_glu is written in an unsupported language. File is not indexed.

0001 /*
0002    G.Barrand : glu.h of Mesa-7.8.1 but containing only tess related material.
0003    We bring also the needed material from gl.h.
0004  */
0005 
0006 #ifndef tools_glutess__glu
0007 #define tools_glutess__glu
0008 
0009 #include "rename"
0010 
0011 /* //////////////////////////////////////////////////////////////// */
0012 /* //////////////////////////////////////////////////////////////// */
0013 
0014 typedef unsigned int    GLUenum;
0015 typedef void            GLUvoid;
0016 typedef double          GLUdouble;
0017 
0018 typedef unsigned char   GLUboolean;
0019 typedef float           GLUfloat;       /* single precision float */
0020 typedef double          GLUclampd;      /* double precision float in [0,1] */
0021 
0022 /* //////////////////////////////////////////////////////////////// */
0023 /* //////////////////////////////////////////////////////////////// */
0024 /* //////////////////////////////////////////////////////////////// */
0025 
0026 /* TessCallback */
0027 #define GLU_TESS_BEGIN_DATA                100106
0028 #define GLU_TESS_VERTEX_DATA               100107
0029 #define GLU_TESS_END_DATA                  100108
0030 #define GLU_TESS_ERROR_DATA                100109
0031 #define GLU_TESS_COMBINE_DATA              100111
0032 
0033 /* TessProperty */
0034 #define GLU_TESS_WINDING_RULE              100140
0035 //#define GLU_TESS_TOLERANCE                 100142
0036 
0037 /* TessWinding */
0038 #define GLU_TESS_WINDING_ODD               100130
0039 #define GLU_TESS_WINDING_POSITIVE          100132
0040 #define GLU_TESS_WINDING_NEGATIVE          100133
0041 
0042 /*************************************************************/
0043 
0044 #define GLUAPIENTRY
0045 typedef void (* _GLUfuncptr)();
0046 
0047 #define GLUAPI
0048 
0049 typedef struct GLUtesselator GLUtesselator;
0050 
0051 typedef GLUtesselator GLUtesselatorObj;
0052 typedef GLUtesselator GLUtriangulatorObj;
0053 
0054 #define GLU_MIN(x,y)    ((x) <= (y) ? (x) : (y))
0055 #define GLU_MAX(x,y)    ((x) >= (y) ? (x) : (y))
0056 #define GLU_ABS(x)      ((x) < 0 ? -(x) : (x))
0057 
0058 /* //////////////////////////////////////////////////////////////// */
0059 /* //////////////////////////////////////////////////////////////// */
0060 /* //////////////////////////////////////////////////////////////// */
0061 
0062 /* Boolean values */
0063 #define TOOLS_GLU_FALSE   0x0
0064 #define TOOLS_GLU_TRUE    0x1
0065 
0066 /* Primitives */
0067 #define GLU_LINE_LOOP                           0x0002
0068 #define GLU_TRIANGLES                           0x0004
0069 #define GLU_TRIANGLE_STRIP                      0x0005
0070 #define GLU_TRIANGLE_FAN                        0x0006
0071 
0072 #define GLU_TESS_MAX_COORD 1.0e150
0073 
0074 /* ErrorCode */
0075 #define GLU_INVALID_ENUM                   100900
0076 #define GLU_INVALID_VALUE                  100901
0077 #define GLU_OUT_OF_MEMORY                  100902
0078 #define GLU_INCOMPATIBLE_GL_VERSION        100903
0079 #define GLU_INVALID_OPERATION              100904
0080 
0081 /* TessCallback */
0082 #define GLU_TESS_BEGIN                     100100
0083 #define GLU_TESS_VERTEX                    100101
0084 #define GLU_TESS_END                       100102
0085 #define GLU_TESS_ERROR                     100103
0086 #define GLU_TESS_EDGE_FLAG                 100104
0087 #define GLU_EDGE_FLAG                      100104
0088 #define GLU_TESS_COMBINE                   100105
0089 #define GLU_TESS_EDGE_FLAG_DATA            100110
0090 
0091 /* TessContour */
0092 #define GLU_CW                             100120
0093 #define GLU_CCW                            100121
0094 #define GLU_INTERIOR                       100122
0095 #define GLU_EXTERIOR                       100123
0096 #define GLU_UNKNOWN                        100124
0097 
0098 /* TessProperty */
0099 #define GLU_TESS_BOUNDARY_ONLY             100141
0100 #define GLU_TESS_TOLERANCE                 100142
0101 
0102 /* TessError */
0103 #define GLU_TESS_ERROR1                    100151
0104 #define GLU_TESS_ERROR2                    100152
0105 #define GLU_TESS_ERROR3                    100153
0106 #define GLU_TESS_ERROR4                    100154
0107 #define GLU_TESS_ERROR5                    100155
0108 #define GLU_TESS_ERROR6                    100156
0109 #define GLU_TESS_ERROR7                    100157
0110 #define GLU_TESS_ERROR8                    100158
0111 #define GLU_TESS_MISSING_BEGIN_POLYGON     100151
0112 #define GLU_TESS_MISSING_BEGIN_CONTOUR     100152
0113 #define GLU_TESS_MISSING_END_POLYGON       100153
0114 #define GLU_TESS_MISSING_END_CONTOUR       100154
0115 #define GLU_TESS_COORD_TOO_LARGE           100155
0116 #define GLU_TESS_NEED_COMBINE_CALLBACK     100156
0117 
0118 /* TessWinding */
0119 #define GLU_TESS_WINDING_NONZERO           100131
0120 #define GLU_TESS_WINDING_ABS_GEQ_TWO       100134
0121 
0122 #endif /* __glu_h__ */