Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/GLConstants.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* @(#)root/base:$Id$ */
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_GLConstants
0012 #define ROOT_GLConstants
0013 
0014 //*-*   This contains the map for those OpenGL package constant the ROOT uses
0015 //*-*   We need the second table since CINT doesn't understand the "define" pre-processor command
0016 
0017 
0018 #ifndef GLConstants
0019 
0020 #define GLConstants1(abc_prefix) \
0021                    abc_prefix##QUAD_STRIP,  abc_prefix##QUADS, abc_prefix##COMPILE, abc_prefix##COMPILE_AND_EXECUTE  \
0022                   ,abc_prefix##LIGHT0    ,  abc_prefix##LIGHT1    ,  abc_prefix##LIGHT2    ,  abc_prefix##LIGHT3     \
0023                   ,abc_prefix##LIGHT4    ,  abc_prefix##LIGHT5    ,  abc_prefix##LIGHT6    ,  abc_prefix##LIGHT7     \
0024                   ,abc_prefix##CW        ,  abc_prefix##CCW                                                          \
0025                   ,abc_prefix##FRONT     ,  abc_prefix##BACK      ,  abc_prefix##FRONT_AND_BACK                      \
0026                   ,abc_prefix##POINT     ,  abc_prefix##LINE      ,  abc_prefix##FILL                                \
0027                   ,abc_prefix##ACCUM_ALPHA_BITS, abc_prefix##ACCUM_BLUE_BITS, abc_prefix##ACCUM_CLEAR_VALUE   \
0028                   ,abc_prefix##ACCUM_GREEN_BITS, abc_prefix##ACCUM_RED_BITS,  abc_prefix##ALPHA_BIAS          \
0029                   ,abc_prefix##ALPHA_BITS,       abc_prefix##ALPHA_SCALE,     abc_prefix##ALPHA_TEST          \
0030                   ,abc_prefix##ALPHA_TEST_FUNC,  abc_prefix##ALPHA_TEST_REF,  abc_prefix##ATTRIB_STACK_DEPTH  \
0031                   ,abc_prefix##AUTO_NORMAL,      abc_prefix##AUX_BUFFERS,     abc_prefix##BLEND               \
0032                   ,abc_prefix##BLEND_DST,        abc_prefix##BLEND_SRC,       abc_prefix##BLUE_BIAS           \
0033                   ,abc_prefix##BLUE_BITS,        abc_prefix##BLUE_SCALE,      abc_prefix##COLOR_CLEAR_VALUE   \
0034                   ,abc_prefix##COLOR_MATERIAL,   abc_prefix##COLOR_MATERIAL_FACE                              \
0035                   ,abc_prefix##COLOR_MATERIAL_PARAMETER,                      abc_prefix##COLOR_WRITEMASK     \
0036                   ,abc_prefix##CULL_FACE,        abc_prefix##CULL_FACE_MODE,  abc_prefix##CURRENT_COLOR
0037 
0038 #define GLConstants2(abc_prefix) \
0039                   ,abc_prefix##CURRENT_INDEX,    abc_prefix##CURRENT_NORMAL,  abc_prefix##CURRENT_RASTER_COLOR          \
0040                   ,abc_prefix##CURRENT_RASTER_DISTANCE,                       abc_prefix##CURRENT_RASTER_INDEX          \
0041                   ,abc_prefix##CURRENT_RASTER_POSITION,                       abc_prefix##CURRENT_RASTER_TEXTURE_COORDS \
0042                   ,abc_prefix##CURRENT_RASTER_POSITION_VALID,                 abc_prefix##CURRENT_TEXTURE_COORDS        \
0043                   ,abc_prefix##DEPTH_BIAS,       abc_prefix##DEPTH_BITS,      abc_prefix##DEPTH_CLEAR_VALUE   \
0044                   ,abc_prefix##DEPTH_FUNC,       abc_prefix##DEPTH_RANGE,     abc_prefix##DEPTH_SCALE         \
0045                   ,abc_prefix##DEPTH_TEST,       abc_prefix##DEPTH_WRITEMASK, abc_prefix##DITHER              \
0046                   ,abc_prefix##DOUBLEBUFFER,     abc_prefix##DRAW_BUFFER,     abc_prefix##EDGE_FLAG           \
0047                   ,abc_prefix##FOG,              abc_prefix##FOG_COLOR,       abc_prefix##FOG_DENSITY         \
0048                   ,abc_prefix##FOG_END,          abc_prefix##FOG_HINT,        abc_prefix##FOG_INDEX           \
0049                   ,abc_prefix##FOG_MODE,         abc_prefix##FOG_START,       abc_prefix##FRONT_FACE          \
0050                   ,abc_prefix##GREEN_BIAS,       abc_prefix##GREEN_BITS,      abc_prefix##GREEN_SCALE         \
0051                   ,abc_prefix##INDEX_BITS,       abc_prefix##INDEX_CLEAR_VALUE                                \
0052                   ,abc_prefix##INDEX_MODE,       abc_prefix##INDEX_OFFSET,    abc_prefix##INDEX_SHIFT         \
0053                   ,abc_prefix##INDEX_WRITEMASK,  abc_prefix##LIGHTING,        abc_prefix##LIGHT_MODEL_AMBIENT           \
0054                   ,abc_prefix##LIGHT_MODEL_LOCAL_VIEWER,                      abc_prefix##LIGHT_MODEL_TWO_SIDE
0055 
0056 #define GLConstants3(abc_prefix) \
0057                   ,abc_prefix##LINE_SMOOTH,      abc_prefix##LINE_SMOOTH_HINT,abc_prefix##LINE_STIPPLE        \
0058                   ,abc_prefix##LINE_STIPPLE_PATTERN,                          abc_prefix##LINE_STIPPLE_REPEAT           \
0059                   ,abc_prefix##LINE_WIDTH,       abc_prefix##LINE_WIDTH_GRANULARITY                           \
0060                   ,abc_prefix##LINE_WIDTH_RANGE, abc_prefix##LIST_BASE,       abc_prefix##LIST_INDEX          \
0061                   ,abc_prefix##LIST_MODE,        abc_prefix##LOGIC_OP,        abc_prefix##LOGIC_OP_MODE       \
0062                   ,abc_prefix##MAP1_COLOR_4,     abc_prefix##MAP1_GRID_DOMAIN,abc_prefix##MAP1_GRID_SEGMENTS  \
0063                   ,abc_prefix##MAP1_INDEX,       abc_prefix##MAP1_NORMAL,     abc_prefix##MAP1_TEXTURE_COORD_1          \
0064                   ,abc_prefix##MAP1_TEXTURE_COORD_2,                          abc_prefix##MAP1_TEXTURE_COORD_3          \
0065                   ,abc_prefix##MAP1_TEXTURE_COORD_4,                          abc_prefix##MAP1_VERTEX_3       \
0066                   ,abc_prefix##MAP1_VERTEX_4,    abc_prefix##MAP2_COLOR_4,    abc_prefix##MAP2_GRID_DOMAIN    \
0067                   ,abc_prefix##MAP2_GRID_SEGMENTS,                            abc_prefix##MAP2_INDEX          \
0068                   ,abc_prefix##MAP2_NORMAL,      abc_prefix##MAP2_TEXTURE_COORD_1                             \
0069                   ,abc_prefix##MAP2_TEXTURE_COORD_2,                          abc_prefix##MAP2_TEXTURE_COORD_3          \
0070                   ,abc_prefix##MAP2_TEXTURE_COORD_4,                          abc_prefix##MAP2_VERTEX_3       \
0071                   ,abc_prefix##MAP2_VERTEX_4,    abc_prefix##MAP_COLOR,       abc_prefix##MAP_STENCIL         \
0072                   ,abc_prefix##MATRIX_MODE,      abc_prefix##MAX_ATTRIB_STACK_DEPTH                           \
0073                   ,abc_prefix##MAX_CLIP_PLANES,  abc_prefix##MAX_EVAL_ORDER,  abc_prefix##MAX_LIGHTS          \
0074                   ,abc_prefix##MAX_LIST_NESTING, abc_prefix##MAX_MODELVIEW_STACK_DEPTH                        \
0075                   ,abc_prefix##MAX_NAME_STACK_DEPTH,                          abc_prefix##MAX_PIXEL_MAP_TABLE           \
0076                   ,abc_prefix##MAX_PROJECTION_STACK_DEPTH,                    abc_prefix##MAX_TEXTURE_SIZE    \
0077                   ,abc_prefix##MAX_TEXTURE_STACK_DEPTH,                       abc_prefix##MAX_VIEWPORT_DIMS
0078 
0079 #define GLConstants4(abc_prefix) \
0080                   ,abc_prefix##MODELVIEW_MATRIX, abc_prefix##MODELVIEW_STACK_DEPTH                            \
0081                   ,abc_prefix##NAME_STACK_DEPTH, abc_prefix##NORMALIZE,       abc_prefix##PACK_ALIGNMENT      \
0082                   ,abc_prefix##PACK_LSB_FIRST,   abc_prefix##PACK_ROW_LENGTH, abc_prefix##PACK_SKIP_PIXELS    \
0083                   ,abc_prefix##PACK_SKIP_ROWS,   abc_prefix##PACK_SWAP_BYTES, abc_prefix##PERSPECTIVE_CORRECTION_HINT   \
0084                   ,abc_prefix##PIXEL_MAP_A_TO_A_SIZE,                         abc_prefix##PIXEL_MAP_B_TO_B_SIZE         \
0085                   ,abc_prefix##PIXEL_MAP_G_TO_G_SIZE,                         abc_prefix##PIXEL_MAP_I_TO_A_SIZE         \
0086                   ,abc_prefix##PIXEL_MAP_I_TO_B_SIZE,                         abc_prefix##PIXEL_MAP_I_TO_G_SIZE         \
0087                   ,abc_prefix##PIXEL_MAP_I_TO_I_SIZE,                         abc_prefix##PIXEL_MAP_I_TO_R_SIZE         \
0088                   ,abc_prefix##PIXEL_MAP_R_TO_R_SIZE,                         abc_prefix##PIXEL_MAP_S_TO_S_SIZE         \
0089                   ,abc_prefix##POINT_SIZE,       abc_prefix##POINT_SIZE_GRANULARITY                           \
0090                   ,abc_prefix##POINT_SIZE_RANGE, abc_prefix##POINT_SMOOTH,    abc_prefix##POINT_SMOOTH_HINT   \
0091                   ,abc_prefix##POLYGON_MODE,     abc_prefix##POLYGON_SMOOTH,  abc_prefix##POLYGON_SMOOTH_HINT           \
0092                   ,abc_prefix##POLYGON_STIPPLE,  abc_prefix##PROJECTION_MATRIX, abc_prefix##PROJECTION_STACK_DEPTH      \
0093                   ,abc_prefix##READ_BUFFER,      abc_prefix##RED_BIAS,        abc_prefix##RED_BITS            \
0094                   ,abc_prefix##RED_SCALE,        abc_prefix##RENDER_MODE,     abc_prefix##RGBA_MODE           \
0095                   ,abc_prefix##SCISSOR_BOX,      abc_prefix##SCISSOR_TEST,    abc_prefix##SHADE_MODEL         \
0096                   ,abc_prefix##STENCIL_BITS,     abc_prefix##STENCIL_CLEAR_VALUE                              \
0097                   ,abc_prefix##STENCIL_FAIL,     abc_prefix##STENCIL_FUNC,    abc_prefix##STENCIL_PASS_DEPTH_FAIL         \
0098                   ,abc_prefix##STENCIL_PASS_DEPTH_PASS,                       abc_prefix##STENCIL_REF         \
0099                   ,abc_prefix##STENCIL_TEST,     abc_prefix##STENCIL_VALUE_MASK,abc_prefix##STENCIL_WRITEMASK \
0100                   ,abc_prefix##STEREO,           abc_prefix##SUBPIXEL_BITS,   abc_prefix##TEXTURE_1D          \
0101                   ,abc_prefix##TEXTURE_2D,       abc_prefix##TEXTURE_ENV_COLOR,abc_prefix##TEXTURE_ENV_MODE   \
0102                   ,abc_prefix##TEXTURE_GEN_S,    abc_prefix##TEXTURE_GEN_T,   abc_prefix##TEXTURE_GEN_R       \
0103                   ,abc_prefix##TEXTURE_GEN_Q,    abc_prefix##TEXTURE_MATRIX,  abc_prefix##TEXTURE_STACK_DEPTH \
0104                   ,abc_prefix##UNPACK_ALIGNMENT, abc_prefix##UNPACK_LSB_FIRST,abc_prefix##UNPACK_ROW_LENGTH   \
0105                   ,abc_prefix##UNPACK_SKIP_PIXELS,abc_prefix##UNPACK_SKIP_ROWS,abc_prefix##UNPACK_SWAP_BYTES  \
0106                   ,abc_prefix##VIEWPORT,         abc_prefix##ZOOM_X,          abc_prefix##ZOOM_Y              \
0107                   ,abc_prefix##SMOOTH,           abc_prefix##FLAT
0108 
0109 #define GLConstants5(abc_prefix) \
0110                   ,abc_prefix##POINTS, abc_prefix##LINES, abc_prefix##LINE_STRIP, abc_prefix##LINE_LOOP \
0111                   ,abc_prefix##TRIANGLES, abc_prefix##TRIANGLE_STRIP, abc_prefix##TRIANGLE_FAN \
0112                   ,abc_prefix##POLYGON
0113 
0114 #define GLConstants6(abc_prefix) \
0115                   ,abc_prefix##DIFFUSE, abc_prefix##POSITION, abc_prefix##CLIP_PLANE0
0116 
0117 #define GLConstants(abc_prefix) \
0118                              GLConstants1(abc_prefix) \
0119                              GLConstants2(abc_prefix) \
0120                              GLConstants3(abc_prefix) \
0121                              GLConstants4(abc_prefix) \
0122                              GLConstants5(abc_prefix) \
0123                              GLConstants6(abc_prefix)
0124 #endif
0125 
0126 
0127 enum EG3D2GLmode { GLConstants(k) };
0128 
0129 #else
0130 enum EG3D2GLmode {
0131                    kQUAD_STRIP, kQUADS, kCOMPILE, kCOMPILE_AND_EXECUTE
0132                   ,kLIGHT0    ,  kLIGHT1    ,  kLIGHT2    ,  kLIGHT3
0133                   ,kLIGHT4    ,  kLIGHT5    ,  kLIGHT6    ,  kLIGHT7
0134                   ,kCW        ,  kCCW
0135                   ,kFRONT     ,  kBACK      ,  kFRONT_AND_BACK
0136                   ,kPOINT     ,  kLINE      ,  kFILL      ,
0137                   ,kACCUM_ALPHA_BITS, kACCUM_BLUE_BITS, kACCUM_CLEAR_VALUE
0138                   ,kACCUM_GREEN_BITS, kACCUM_RED_BITS,  kALPHA_BIAS
0139                   ,kALPHA_BITS,       kALPHA_SCALE,     kALPHA_TEST
0140                   ,kALPHA_TEST_FUNC,  kALPHA_TEST_REF,  kATTRIB_STACK_DEPTH
0141                   ,kAUTO_NORMAL,      kAUX_BUFFERS,     kBLEND
0142                   ,kBLEND_DST,        kBLEND_SRC,       kBLUE_BIAS
0143                   ,kBLUE_BITS,        kBLUE_SCALE,      kCOLOR_CLEAR_VALUE
0144                   ,kCOLOR_MATERIAL,   kCOLOR_MATERIAL_FACE
0145                   ,kCOLOR_MATERIAL_PARAMETER,           kCOLOR_WRITEMASK
0146                   ,kCULL_FACE,        kCULL_FACE_MODE,  kCURRENT_COLOR
0147                   ,kCURRENT_INDEX,    kCURRENT_NORMAL,  kCURRENT_RASTER_COLOR
0148                   ,kCURRENT_RASTER_DISTANCE,            kCURRENT_RASTER_INDEX
0149                   ,kCURRENT_RASTER_POSITION,            kCURRENT_RASTER_TEXTURE_COORDS
0150                   ,kCURRENT_RASTER_POSITION_VALID,      kCURRENT_TEXTURE_COORDS
0151                   ,kDEPTH_BIAS,       kDEPTH_BITS,      kDEPTH_CLEAR_VALUE
0152                   ,kDEPTH_FUNC,       kDEPTH_RANGE,     kDEPTH_SCALE
0153                   ,kDEPTH_TEST,       kDEPTH_WRITEMASK, kDITHER
0154                   ,kDOUBLEBUFFER,     kDRAW_BUFFER,     kEDGE_FLAG
0155                   ,kFOG,              kFOG_COLOR,       kFOG_DENSITY
0156                   ,kFOG_END,          kFOG_HINT,        kFOG_INDEX
0157                   ,kFOG_MODE,         kFOG_START,       kFRONT_FACE
0158                   ,kGREEN_BIAS,       kGREEN_BITS,      kGREEN_SCALE
0159                   ,kINDEX_BITS,       kINDEX_CLEAR_VALUE
0160                   ,kINDEX_MODE,       kINDEX_OFFSET,    kINDEX_SHIFT
0161                   ,kINDEX_WRITEMASK,  kLIGHTING,        kLIGHT_MODEL_AMBIENT
0162                   ,kLIGHT_MODEL_LOCAL_VIEWER,           kLIGHT_MODEL_TWO_SIDE
0163                   ,kLINE_SMOOTH,      kLINE_SMOOTH_HINT,kLINE_STIPPLE
0164                   ,kLINE_STIPPLE_PATTERN,               kLINE_STIPPLE_REPEAT
0165                   ,kLINE_WIDTH,       kLINE_WIDTH_GRANULARITY
0166                   ,kLINE_WIDTH_RANGE, kLIST_BASE,       kLIST_INDEX
0167                   ,kLIST_MODE,        kLOGIC_OP,        kLOGIC_OP_MODE
0168                   ,kMAP1_COLOR_4,     kMAP1_GRID_DOMAIN,kMAP1_GRID_SEGMENTS
0169                   ,kMAP1_INDEX,       kMAP1_NORMAL,     kMAP1_TEXTURE_COORD_1
0170                   ,kMAP1_TEXTURE_COORD_2,               kMAP1_TEXTURE_COORD_3
0171                   ,kMAP1_TEXTURE_COORD_4,               kMAP1_VERTEX_3
0172                   ,kMAP1_VERTEX_4,    kMAP2_COLOR_4,    kMAP2_GRID_DOMAIN
0173                   ,kMAP2_GRID_SEGMENTS,                 kMAP2_INDEX
0174                   ,kMAP2_NORMAL,      kMAP2_TEXTURE_COORD_1
0175                   ,kMAP2_TEXTURE_COORD_2,               kMAP2_TEXTURE_COORD_3
0176                   ,kMAP2_TEXTURE_COORD_4,               kMAP2_VERTEX_3
0177                   ,kMAP2_VERTEX_4,    kMAP_COLOR,       kMAP_STENCIL
0178                   ,kMATRIX_MODE,      kMAX_ATTRIB_STACK_DEPTH
0179                   ,kMAX_CLIP_PLANES,  kMAX_EVAL_ORDER,  kMAX_LIGHTS
0180                   ,kMAX_LIST_NESTING, kMAX_MODELVIEW_STACK_DEPTH
0181                   ,kMAX_NAME_STACK_DEPTH,               kMAX_PIXEL_MAP_TABLE
0182                   ,kMAX_PROJECTION_STACK_DEPTH,         kMAX_TEXTURE_SIZE
0183                   ,kMAX_TEXTURE_STACK_DEPTH,            kMAX_VIEWPORT_DIMS
0184                   ,kMODELVIEW_MATRIX, kMODELVIEW_STACK_DEPTH
0185                   ,kNAME_STACK_DEPTH, kNORMALIZE,       kPACK_ALIGNMENT
0186                   ,kPACK_LSB_FIRST,   kPACK_ROW_LENGTH, kPACK_SKIP_PIXELS
0187                   ,kPACK_SKIP_ROWS,   kPACK_SWAP_BYTES, kPERSPECTIVE_CORRECTION_HINT
0188                   ,kPIXEL_MAP_A_TO_A_SIZE,              kPIXEL_MAP_B_TO_B_SIZE
0189                   ,kPIXEL_MAP_G_TO_G_SIZE,              kPIXEL_MAP_I_TO_A_SIZE
0190                   ,kPIXEL_MAP_I_TO_B_SIZE,              kPIXEL_MAP_I_TO_G_SIZE
0191                   ,kPIXEL_MAP_I_TO_I_SIZE,              kPIXEL_MAP_I_TO_R_SIZE
0192                   ,kPIXEL_MAP_R_TO_R_SIZE,              kPIXEL_MAP_S_TO_S_SIZE
0193                   ,kPOINT_SIZE,       kPOINT_SIZE_GRANULARITY
0194                   ,kPOINT_SIZE_RANGE, kPOINT_SMOOTH,    kPOINT_SMOOTH_HINT
0195                   ,kPOLYGON_MODE,     kPOLYGON_SMOOTH,  kPOLYGON_SMOOTH_HINT
0196                   ,kPOLYGON_STIPPLE,  kPROJECTION_MATRIX, kPROJECTION_STACK_DEPTH
0197                   ,kREAD_BUFFER,      kRED_BIAS,        kRED_BITS
0198                   ,kRED_SCALE,        kRENDER_MODE,     kRGBA_MODE
0199                   ,kSCISSOR_BOX,      kSCISSOR_TEST,    kSHADE_MODEL
0200                   ,kSTENCIL_BITS,     kSTENCIL_CLEAR_VALUE
0201                   ,kSTENCIL_FAIL,     kSTENCIL_FUNC,    kSTENCIL_PASS_DEPTH_FAIL
0202                   ,kSTENCIL_PASS_DEPTH_PASS,            kSTENCIL_REF
0203                   ,kSTENCIL_TEST,     kSTENCIL_VALUE_MASK,kSTENCIL_WRITEMASK
0204                   ,kSTEREO,           kSUBPIXEL_BITS,   kTEXTURE_1D
0205                   ,kTEXTURE_2D,       kTEXTURE_ENV_COLOR,kTEXTURE_ENV_MODE
0206                   ,kTEXTURE_GEN_S,    kTEXTURE_GEN_T,   kTEXTURE_GEN_R
0207                   ,kTEXTURE_GEN_Q,    kTEXTURE_MATRIX,  kTEXTURE_STACK_DEPTH
0208                   ,kUNPACK_ALIGNMENT, kUNPACK_LSB_FIRST,kUNPACK_ROW_LENGTH
0209                   ,kUNPACK_SKIP_PIXELS,kUNPACK_SKIP_ROWS,kUNPACK_SWAP_BYTES
0210                   ,kVIEWPORT,         kZOOM_X,          kZOOM_Y
0211                   ,kSMOOTH,           kFLAT
0212                  };
0213 
0214 #endif