Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
GLConstants.h
Go to the documentation of this file.
1/* @(#)root/base:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_GLConstants
12#define ROOT_GLConstants
13
14//*-* This contains the map for those OpenGL package constant the ROOT uses
15//*-* We need the second table since CINT doesn't understand the "define" pre-processor command
16
17
18#ifndef __CINT__
19#ifndef GLConstants
20
21#define GLConstants1(abc_prefix) \
22 abc_prefix##QUAD_STRIP, abc_prefix##QUADS, abc_prefix##COMPILE, abc_prefix##COMPILE_AND_EXECUTE \
23 ,abc_prefix##LIGHT0 , abc_prefix##LIGHT1 , abc_prefix##LIGHT2 , abc_prefix##LIGHT3 \
24 ,abc_prefix##LIGHT4 , abc_prefix##LIGHT5 , abc_prefix##LIGHT6 , abc_prefix##LIGHT7 \
25 ,abc_prefix##CW , abc_prefix##CCW \
26 ,abc_prefix##FRONT , abc_prefix##BACK , abc_prefix##FRONT_AND_BACK \
27 ,abc_prefix##POINT , abc_prefix##LINE , abc_prefix##FILL \
28 ,abc_prefix##ACCUM_ALPHA_BITS, abc_prefix##ACCUM_BLUE_BITS, abc_prefix##ACCUM_CLEAR_VALUE \
29 ,abc_prefix##ACCUM_GREEN_BITS, abc_prefix##ACCUM_RED_BITS, abc_prefix##ALPHA_BIAS \
30 ,abc_prefix##ALPHA_BITS, abc_prefix##ALPHA_SCALE, abc_prefix##ALPHA_TEST \
31 ,abc_prefix##ALPHA_TEST_FUNC, abc_prefix##ALPHA_TEST_REF, abc_prefix##ATTRIB_STACK_DEPTH \
32 ,abc_prefix##AUTO_NORMAL, abc_prefix##AUX_BUFFERS, abc_prefix##BLEND \
33 ,abc_prefix##BLEND_DST, abc_prefix##BLEND_SRC, abc_prefix##BLUE_BIAS \
34 ,abc_prefix##BLUE_BITS, abc_prefix##BLUE_SCALE, abc_prefix##COLOR_CLEAR_VALUE \
35 ,abc_prefix##COLOR_MATERIAL, abc_prefix##COLOR_MATERIAL_FACE \
36 ,abc_prefix##COLOR_MATERIAL_PARAMETER, abc_prefix##COLOR_WRITEMASK \
37 ,abc_prefix##CULL_FACE, abc_prefix##CULL_FACE_MODE, abc_prefix##CURRENT_COLOR
38
39#define GLConstants2(abc_prefix) \
40 ,abc_prefix##CURRENT_INDEX, abc_prefix##CURRENT_NORMAL, abc_prefix##CURRENT_RASTER_COLOR \
41 ,abc_prefix##CURRENT_RASTER_DISTANCE, abc_prefix##CURRENT_RASTER_INDEX \
42 ,abc_prefix##CURRENT_RASTER_POSITION, abc_prefix##CURRENT_RASTER_TEXTURE_COORDS \
43 ,abc_prefix##CURRENT_RASTER_POSITION_VALID, abc_prefix##CURRENT_TEXTURE_COORDS \
44 ,abc_prefix##DEPTH_BIAS, abc_prefix##DEPTH_BITS, abc_prefix##DEPTH_CLEAR_VALUE \
45 ,abc_prefix##DEPTH_FUNC, abc_prefix##DEPTH_RANGE, abc_prefix##DEPTH_SCALE \
46 ,abc_prefix##DEPTH_TEST, abc_prefix##DEPTH_WRITEMASK, abc_prefix##DITHER \
47 ,abc_prefix##DOUBLEBUFFER, abc_prefix##DRAW_BUFFER, abc_prefix##EDGE_FLAG \
48 ,abc_prefix##FOG, abc_prefix##FOG_COLOR, abc_prefix##FOG_DENSITY \
49 ,abc_prefix##FOG_END, abc_prefix##FOG_HINT, abc_prefix##FOG_INDEX \
50 ,abc_prefix##FOG_MODE, abc_prefix##FOG_START, abc_prefix##FRONT_FACE \
51 ,abc_prefix##GREEN_BIAS, abc_prefix##GREEN_BITS, abc_prefix##GREEN_SCALE \
52 ,abc_prefix##INDEX_BITS, abc_prefix##INDEX_CLEAR_VALUE \
53 ,abc_prefix##INDEX_MODE, abc_prefix##INDEX_OFFSET, abc_prefix##INDEX_SHIFT \
54 ,abc_prefix##INDEX_WRITEMASK, abc_prefix##LIGHTING, abc_prefix##LIGHT_MODEL_AMBIENT \
55 ,abc_prefix##LIGHT_MODEL_LOCAL_VIEWER, abc_prefix##LIGHT_MODEL_TWO_SIDE
56
57#define GLConstants3(abc_prefix) \
58 ,abc_prefix##LINE_SMOOTH, abc_prefix##LINE_SMOOTH_HINT,abc_prefix##LINE_STIPPLE \
59 ,abc_prefix##LINE_STIPPLE_PATTERN, abc_prefix##LINE_STIPPLE_REPEAT \
60 ,abc_prefix##LINE_WIDTH, abc_prefix##LINE_WIDTH_GRANULARITY \
61 ,abc_prefix##LINE_WIDTH_RANGE, abc_prefix##LIST_BASE, abc_prefix##LIST_INDEX \
62 ,abc_prefix##LIST_MODE, abc_prefix##LOGIC_OP, abc_prefix##LOGIC_OP_MODE \
63 ,abc_prefix##MAP1_COLOR_4, abc_prefix##MAP1_GRID_DOMAIN,abc_prefix##MAP1_GRID_SEGMENTS \
64 ,abc_prefix##MAP1_INDEX, abc_prefix##MAP1_NORMAL, abc_prefix##MAP1_TEXTURE_COORD_1 \
65 ,abc_prefix##MAP1_TEXTURE_COORD_2, abc_prefix##MAP1_TEXTURE_COORD_3 \
66 ,abc_prefix##MAP1_TEXTURE_COORD_4, abc_prefix##MAP1_VERTEX_3 \
67 ,abc_prefix##MAP1_VERTEX_4, abc_prefix##MAP2_COLOR_4, abc_prefix##MAP2_GRID_DOMAIN \
68 ,abc_prefix##MAP2_GRID_SEGMENTS, abc_prefix##MAP2_INDEX \
69 ,abc_prefix##MAP2_NORMAL, abc_prefix##MAP2_TEXTURE_COORD_1 \
70 ,abc_prefix##MAP2_TEXTURE_COORD_2, abc_prefix##MAP2_TEXTURE_COORD_3 \
71 ,abc_prefix##MAP2_TEXTURE_COORD_4, abc_prefix##MAP2_VERTEX_3 \
72 ,abc_prefix##MAP2_VERTEX_4, abc_prefix##MAP_COLOR, abc_prefix##MAP_STENCIL \
73 ,abc_prefix##MATRIX_MODE, abc_prefix##MAX_ATTRIB_STACK_DEPTH \
74 ,abc_prefix##MAX_CLIP_PLANES, abc_prefix##MAX_EVAL_ORDER, abc_prefix##MAX_LIGHTS \
75 ,abc_prefix##MAX_LIST_NESTING, abc_prefix##MAX_MODELVIEW_STACK_DEPTH \
76 ,abc_prefix##MAX_NAME_STACK_DEPTH, abc_prefix##MAX_PIXEL_MAP_TABLE \
77 ,abc_prefix##MAX_PROJECTION_STACK_DEPTH, abc_prefix##MAX_TEXTURE_SIZE \
78 ,abc_prefix##MAX_TEXTURE_STACK_DEPTH, abc_prefix##MAX_VIEWPORT_DIMS
79
80#define GLConstants4(abc_prefix) \
81 ,abc_prefix##MODELVIEW_MATRIX, abc_prefix##MODELVIEW_STACK_DEPTH \
82 ,abc_prefix##NAME_STACK_DEPTH, abc_prefix##NORMALIZE, abc_prefix##PACK_ALIGNMENT \
83 ,abc_prefix##PACK_LSB_FIRST, abc_prefix##PACK_ROW_LENGTH, abc_prefix##PACK_SKIP_PIXELS \
84 ,abc_prefix##PACK_SKIP_ROWS, abc_prefix##PACK_SWAP_BYTES, abc_prefix##PERSPECTIVE_CORRECTION_HINT \
85 ,abc_prefix##PIXEL_MAP_A_TO_A_SIZE, abc_prefix##PIXEL_MAP_B_TO_B_SIZE \
86 ,abc_prefix##PIXEL_MAP_G_TO_G_SIZE, abc_prefix##PIXEL_MAP_I_TO_A_SIZE \
87 ,abc_prefix##PIXEL_MAP_I_TO_B_SIZE, abc_prefix##PIXEL_MAP_I_TO_G_SIZE \
88 ,abc_prefix##PIXEL_MAP_I_TO_I_SIZE, abc_prefix##PIXEL_MAP_I_TO_R_SIZE \
89 ,abc_prefix##PIXEL_MAP_R_TO_R_SIZE, abc_prefix##PIXEL_MAP_S_TO_S_SIZE \
90 ,abc_prefix##POINT_SIZE, abc_prefix##POINT_SIZE_GRANULARITY \
91 ,abc_prefix##POINT_SIZE_RANGE, abc_prefix##POINT_SMOOTH, abc_prefix##POINT_SMOOTH_HINT \
92 ,abc_prefix##POLYGON_MODE, abc_prefix##POLYGON_SMOOTH, abc_prefix##POLYGON_SMOOTH_HINT \
93 ,abc_prefix##POLYGON_STIPPLE, abc_prefix##PROJECTION_MATRIX, abc_prefix##PROJECTION_STACK_DEPTH \
94 ,abc_prefix##READ_BUFFER, abc_prefix##RED_BIAS, abc_prefix##RED_BITS \
95 ,abc_prefix##RED_SCALE, abc_prefix##RENDER_MODE, abc_prefix##RGBA_MODE \
96 ,abc_prefix##SCISSOR_BOX, abc_prefix##SCISSOR_TEST, abc_prefix##SHADE_MODEL \
97 ,abc_prefix##STENCIL_BITS, abc_prefix##STENCIL_CLEAR_VALUE \
98 ,abc_prefix##STENCIL_FAIL, abc_prefix##STENCIL_FUNC, abc_prefix##STENCIL_PASS_DEPTH_FAIL \
99 ,abc_prefix##STENCIL_PASS_DEPTH_PASS, abc_prefix##STENCIL_REF \
100 ,abc_prefix##STENCIL_TEST, abc_prefix##STENCIL_VALUE_MASK,abc_prefix##STENCIL_WRITEMASK \
101 ,abc_prefix##STEREO, abc_prefix##SUBPIXEL_BITS, abc_prefix##TEXTURE_1D \
102 ,abc_prefix##TEXTURE_2D, abc_prefix##TEXTURE_ENV_COLOR,abc_prefix##TEXTURE_ENV_MODE \
103 ,abc_prefix##TEXTURE_GEN_S, abc_prefix##TEXTURE_GEN_T, abc_prefix##TEXTURE_GEN_R \
104 ,abc_prefix##TEXTURE_GEN_Q, abc_prefix##TEXTURE_MATRIX, abc_prefix##TEXTURE_STACK_DEPTH \
105 ,abc_prefix##UNPACK_ALIGNMENT, abc_prefix##UNPACK_LSB_FIRST,abc_prefix##UNPACK_ROW_LENGTH \
106 ,abc_prefix##UNPACK_SKIP_PIXELS,abc_prefix##UNPACK_SKIP_ROWS,abc_prefix##UNPACK_SWAP_BYTES \
107 ,abc_prefix##VIEWPORT, abc_prefix##ZOOM_X, abc_prefix##ZOOM_Y \
108 ,abc_prefix##SMOOTH, abc_prefix##FLAT
109
110#define GLConstants5(abc_prefix) \
111 ,abc_prefix##POINTS, abc_prefix##LINES, abc_prefix##LINE_STRIP, abc_prefix##LINE_LOOP \
112 ,abc_prefix##TRIANGLES, abc_prefix##TRIANGLE_STRIP, abc_prefix##TRIANGLE_FAN \
113 ,abc_prefix##POLYGON
114
115#define GLConstants6(abc_prefix) \
116 ,abc_prefix##DIFFUSE, abc_prefix##POSITION, abc_prefix##CLIP_PLANE0
117
118#define GLConstants(abc_prefix) \
119 GLConstants1(abc_prefix) \
120 GLConstants2(abc_prefix) \
121 GLConstants3(abc_prefix) \
122 GLConstants4(abc_prefix) \
123 GLConstants5(abc_prefix) \
124 GLConstants6(abc_prefix)
125#endif
126
127
129
130#else
131enum EG3D2GLmode {
135 ,kCW , kCCW
137 ,kPOINT , kLINE , kFILL ,
212 ,kSMOOTH, kFLAT
213 };
214#endif
215
216#endif
#define GLConstants(abc_prefix)
EG3D2GLmode
@ kLINE_SMOOTH_HINT
@ kPOINT
@ kLINE_SMOOTH
@ kSTENCIL_PASS_DEPTH_FAIL
@ kCULL_FACE
@ kALPHA_SCALE
@ kSTENCIL_FUNC
@ kCURRENT_RASTER_COLOR
@ kPOLYGON_STIPPLE
@ kPACK_SKIP_ROWS
@ kCOLOR_CLEAR_VALUE
@ kDEPTH_CLEAR_VALUE
@ kPROJECTION_STACK_DEPTH
@ kCOMPILE_AND_EXECUTE
@ kACCUM_BLUE_BITS
@ kLIGHT6
@ kALPHA_BITS
@ kMAP2_TEXTURE_COORD_4
@ kLOGIC_OP
@ kLIGHT2
@ kCURRENT_NORMAL
@ kLIST_MODE
@ kSTENCIL_WRITEMASK
@ kLIGHT_MODEL_LOCAL_VIEWER
@ kSMOOTH
@ kBLEND_DST
@ kMAX_LIST_NESTING
@ kGREEN_BIAS
@ kCW
@ kLINE_STIPPLE_PATTERN
@ kPIXEL_MAP_A_TO_A_SIZE
@ kINDEX_BITS
@ kMAX_CLIP_PLANES
@ kCOLOR_MATERIAL_FACE
@ kMAX_EVAL_ORDER
@ kACCUM_CLEAR_VALUE
@ kTEXTURE_MATRIX
@ kRED_SCALE
@ kEDGE_FLAG
@ kTEXTURE_GEN_S
@ kTEXTURE_ENV_MODE
@ kSUBPIXEL_BITS
@ kCULL_FACE_MODE
@ kMAP1_VERTEX_3
@ kUNPACK_SKIP_ROWS
@ kINDEX_MODE
@ kFOG_DENSITY
@ kPIXEL_MAP_I_TO_R_SIZE
@ kLIGHT_MODEL_AMBIENT
@ kMODELVIEW_MATRIX
@ kREAD_BUFFER
@ kMAP1_TEXTURE_COORD_4
@ kLIST_BASE
@ kTEXTURE_GEN_Q
@ kSTENCIL_REF
@ kMAP1_INDEX
@ kLINE_STIPPLE_REPEAT
@ kLINE_WIDTH_RANGE
@ kFOG_COLOR
@ kSTENCIL_TEST
@ kPIXEL_MAP_G_TO_G_SIZE
@ kMAP_COLOR
@ kPOLYGON_SMOOTH_HINT
@ kATTRIB_STACK_DEPTH
@ kMAX_MODELVIEW_STACK_DEPTH
@ kMAP2_TEXTURE_COORD_1
@ kSTEREO
@ kLINE_WIDTH
@ kMAP1_TEXTURE_COORD_3
@ kMATRIX_MODE
@ kNORMALIZE
@ kQUADS
@ kLINE
@ kGREEN_BITS
@ kBACK
@ kTEXTURE_1D
@ kBLUE_BITS
@ kMAP1_GRID_SEGMENTS
@ kDEPTH_FUNC
@ kLINE_WIDTH_GRANULARITY
@ kCURRENT_RASTER_TEXTURE_COORDS
@ kMAP2_GRID_SEGMENTS
@ kUNPACK_SWAP_BYTES
@ kCURRENT_INDEX
@ kFRONT_AND_BACK
@ kSTENCIL_FAIL
@ kMAP1_COLOR_4
@ kDRAW_BUFFER
@ kDITHER
@ kPACK_SKIP_PIXELS
@ kMAP1_VERTEX_4
@ kMAP2_NORMAL
@ kRED_BIAS
@ kLIGHT7
@ kCOLOR_WRITEMASK
@ kTEXTURE_STACK_DEPTH
@ kZOOM_X
@ kPIXEL_MAP_I_TO_I_SIZE
@ kMAX_LIGHTS
@ kMAP2_VERTEX_3
@ kPOLYGON_MODE
@ kLIGHT_MODEL_TWO_SIDE
@ kMAP2_GRID_DOMAIN
@ kACCUM_ALPHA_BITS
@ kFOG_MODE
@ kFRONT
@ kSCISSOR_TEST
@ kPOINT_SIZE
@ kINDEX_SHIFT
@ kUNPACK_LSB_FIRST
@ kDEPTH_SCALE
@ kCURRENT_RASTER_POSITION
@ kPROJECTION_MATRIX
@ kDEPTH_WRITEMASK
@ kDEPTH_RANGE
@ kSTENCIL_VALUE_MASK
@ kQUAD_STRIP
@ kFOG_INDEX
@ kMAP2_TEXTURE_COORD_3
@ kPACK_SWAP_BYTES
@ kPOLYGON_SMOOTH
@ kFLAT
@ kVIEWPORT
@ kCCW
@ kLIGHTING
@ kCURRENT_COLOR
@ kLINE_STIPPLE
@ kPERSPECTIVE_CORRECTION_HINT
@ kCURRENT_RASTER_INDEX
@ kAUX_BUFFERS
@ kMAP2_TEXTURE_COORD_2
@ kINDEX_WRITEMASK
@ kLIGHT4
@ kBLUE_BIAS
@ kALPHA_TEST_FUNC
@ kFOG
@ kBLUE_SCALE
@ kALPHA_BIAS
@ kTEXTURE_2D
@ kSHADE_MODEL
@ kPIXEL_MAP_B_TO_B_SIZE
@ kSCISSOR_BOX
@ kSTENCIL_PASS_DEPTH_PASS
@ kPOINT_SIZE_RANGE
@ kRENDER_MODE
@ kPOINT_SIZE_GRANULARITY
@ kPIXEL_MAP_I_TO_A_SIZE
@ kMAP1_TEXTURE_COORD_1
@ kLIGHT0
@ kSTENCIL_CLEAR_VALUE
@ kLIST_INDEX
@ kFRONT_FACE
@ kMODELVIEW_STACK_DEPTH
@ kMAX_TEXTURE_STACK_DEPTH
@ kPOINT_SMOOTH_HINT
@ kLIGHT3
@ kDEPTH_BITS
@ kLIGHT5
@ kUNPACK_ROW_LENGTH
@ kFOG_END
@ kACCUM_RED_BITS
@ kMAP1_NORMAL
@ kAUTO_NORMAL
@ kINDEX_CLEAR_VALUE
@ kPIXEL_MAP_R_TO_R_SIZE
@ kMAX_ATTRIB_STACK_DEPTH
@ kZOOM_Y
@ kBLEND
@ kMAP2_COLOR_4
@ kPIXEL_MAP_I_TO_G_SIZE
@ kLOGIC_OP_MODE
@ kUNPACK_ALIGNMENT
@ kCURRENT_RASTER_DISTANCE
@ kSTENCIL_BITS
@ kDOUBLEBUFFER
@ kMAP2_VERTEX_4
@ kRED_BITS
@ kRGBA_MODE
@ kCURRENT_TEXTURE_COORDS
@ kPACK_LSB_FIRST
@ kALPHA_TEST
@ kPACK_ALIGNMENT
@ kBLEND_SRC
@ kDEPTH_BIAS
@ kDEPTH_TEST
@ kPOINT_SMOOTH
@ kALPHA_TEST_REF
@ kPACK_ROW_LENGTH
@ kMAX_PIXEL_MAP_TABLE
@ kUNPACK_SKIP_PIXELS
@ kCOMPILE
@ kNAME_STACK_DEPTH
@ kTEXTURE_ENV_COLOR
@ kFOG_START
@ kACCUM_GREEN_BITS
@ kPIXEL_MAP_S_TO_S_SIZE
@ kMAX_VIEWPORT_DIMS
@ kPIXEL_MAP_I_TO_B_SIZE
@ kCURRENT_RASTER_POSITION_VALID
@ kGREEN_SCALE
@ kLIGHT1
@ kFILL
@ kCOLOR_MATERIAL
@ kMAP1_TEXTURE_COORD_2
@ kMAP_STENCIL
@ kMAX_TEXTURE_SIZE
@ kMAX_PROJECTION_STACK_DEPTH
@ kTEXTURE_GEN_R
@ kTEXTURE_GEN_T
@ kINDEX_OFFSET
@ kMAP1_GRID_DOMAIN
@ kMAP2_INDEX
@ kCOLOR_MATERIAL_PARAMETER
@ kFOG_HINT
@ kMAX_NAME_STACK_DEPTH