Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-25 09:20:44

0001 // Created on: 2012-03-06
0002 // Created by: Kirill GAVRILOV
0003 // Copyright (c) 2012-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef OpenGl_GlCore11_HeaderFile
0017 #define OpenGl_GlCore11_HeaderFile
0018 
0019 #include <OpenGl_GlCore11Fwd.hxx>
0020 
0021 #ifndef GL_COMPILE
0022   #define GL_COMPILE 0x1300
0023   #define GL_COMPILE_AND_EXECUTE 0x1301
0024 
0025   #define GL_RENDER_MODE 0x0C40
0026   #define GL_RENDER 0x1C00
0027   #define GL_FEEDBACK 0x1C01
0028   #define GL_SELECT 0x1C02
0029 
0030   #define GL_SHADE_MODEL 0x0B54
0031   #define GL_FLAT 0x1D00
0032   #define GL_SMOOTH 0x1D01
0033   #define GL_POINT 0x1B00
0034   #define GL_LINE 0x1B01
0035   #define GL_FILL 0x1B02
0036 
0037   #define GL_LINE_STIPPLE 0x0B24
0038   #define GL_LINE_STIPPLE_PATTERN 0x0B25
0039   #define GL_LINE_STIPPLE_REPEAT 0x0B26
0040 
0041   #define GL_POLYGON_MODE 0x0B40
0042   #define GL_POLYGON_SMOOTH 0x0B41
0043   #define GL_POLYGON_STIPPLE 0x0B42
0044 
0045   #define GL_MATRIX_MODE 0x0BA0
0046   #define GL_NORMALIZE 0x0BA1
0047 
0048   #define GL_TEXTURE_1D 0x0DE0
0049 
0050   #define GL_MAX_CLIP_PLANES 0x0D32
0051   #define GL_CLIP_PLANE0 0x3000
0052   #define GL_CLIP_PLANE1 0x3001
0053   #define GL_CLIP_PLANE2 0x3002
0054   #define GL_CLIP_PLANE3 0x3003
0055   #define GL_CLIP_PLANE4 0x3004
0056   #define GL_CLIP_PLANE5 0x3005
0057 
0058   #define GL_QUADS 0x0007
0059   #define GL_QUAD_STRIP 0x0008
0060   #define GL_POLYGON 0x0009
0061 
0062   #define GL_LIGHTING 0x0B50
0063   #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
0064   #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
0065   #define GL_LIGHT_MODEL_AMBIENT 0x0B53
0066   #define GL_COLOR_MATERIAL 0x0B57
0067   #define GL_LIGHT0 0x4000
0068   #define GL_LIGHT1 0x4001
0069   #define GL_LIGHT2 0x4002
0070   #define GL_LIGHT3 0x4003
0071   #define GL_LIGHT4 0x4004
0072   #define GL_LIGHT5 0x4005
0073   #define GL_LIGHT6 0x4006
0074   #define GL_LIGHT7 0x4007
0075 
0076   // LightParameter
0077   #define GL_AMBIENT 0x1200
0078   #define GL_DIFFUSE 0x1201
0079   #define GL_SPECULAR 0x1202
0080   #define GL_POSITION 0x1203
0081   #define GL_SPOT_DIRECTION 0x1204
0082   #define GL_SPOT_EXPONENT 0x1205
0083   #define GL_SPOT_CUTOFF 0x1206
0084   #define GL_CONSTANT_ATTENUATION 0x1207
0085   #define GL_LINEAR_ATTENUATION 0x1208
0086   #define GL_QUADRATIC_ATTENUATION 0x1209
0087 
0088   #define GL_EMISSION 0x1600
0089   #define GL_SHININESS 0x1601
0090   #define GL_AMBIENT_AND_DIFFUSE 0x1602
0091   #define GL_COLOR_INDEXES 0x1603
0092 
0093   // MatrixMode
0094   #define GL_MODELVIEW 0x1700
0095   #define GL_PROJECTION 0x1701
0096   #define GL_TEXTURE 0x1702
0097 
0098   #define GL_POINT_SMOOTH_HINT 0x0C51
0099   #define GL_LINE_SMOOTH_HINT 0x0C52
0100   #define GL_POLYGON_SMOOTH_HINT 0x0C53
0101   #define GL_FOG_HINT 0x0C54
0102   #define GL_FOG 0x0B60
0103 
0104   #define GL_LOGIC_OP_MODE 0x0BF0
0105   #define GL_INDEX_LOGIC_OP 0x0BF1
0106   #define GL_LOGIC_OP GL_INDEX_LOGIC_OP
0107   #define GL_COLOR_LOGIC_OP 0x0BF2
0108   #define GL_CLEAR 0x1500
0109   #define GL_AND 0x1501
0110   #define GL_AND_REVERSE 0x1502
0111   #define GL_COPY 0x1503
0112   #define GL_AND_INVERTED 0x1504
0113   #define GL_NOOP 0x1505
0114   #define GL_XOR 0x1506
0115   #define GL_OR 0x1507
0116   #define GL_NOR 0x1508
0117   #define GL_EQUIV 0x1509
0118   #define GL_INVERT 0x150A
0119   #define GL_OR_REVERSE 0x150B
0120   #define GL_COPY_INVERTED 0x150C
0121   #define GL_OR_INVERTED 0x150D
0122   #define GL_NAND 0x150E
0123   #define GL_SET 0x150F
0124 
0125   #define GL_VERTEX_ARRAY 0x8074
0126   #define GL_NORMAL_ARRAY 0x8075
0127   #define GL_COLOR_ARRAY 0x8076
0128   #define GL_INDEX_ARRAY 0x8077
0129   #define GL_TEXTURE_COORD_ARRAY 0x8078
0130 
0131   #define GL_PROXY_TEXTURE_1D 0x8063
0132 
0133   #define GL_ALPHA_TEST 0x0BC0
0134   #define GL_ALPHA_TEST_FUNC 0x0BC1
0135   #define GL_ALPHA_TEST_REF 0x0BC2
0136 
0137   // TextureCoordName
0138   #define GL_S 0x2000
0139   #define GL_T 0x2001
0140   #define GL_R 0x2002
0141   #define GL_Q 0x2003
0142 
0143   // TextureEnvMode
0144   #define GL_MODULATE 0x2100
0145   #define GL_DECAL 0x2101
0146 
0147   // TextureEnvParameter
0148   #define GL_TEXTURE_ENV_MODE 0x2200
0149   #define GL_TEXTURE_ENV_COLOR 0x2201
0150 
0151   // TextureEnvTarget
0152   #define GL_TEXTURE_ENV 0x2300
0153 
0154   // TextureGenMode
0155   #define GL_EYE_LINEAR 0x2400
0156   #define GL_OBJECT_LINEAR 0x2401
0157   #define GL_SPHERE_MAP 0x2402
0158 
0159   // TextureGenParameter
0160   #define GL_TEXTURE_GEN_MODE 0x2500
0161   #define GL_OBJECT_PLANE 0x2501
0162   #define GL_EYE_PLANE 0x2502
0163 
0164   #define GL_TEXTURE_GEN_S 0x0C60
0165   #define GL_TEXTURE_GEN_T 0x0C61
0166   #define GL_TEXTURE_GEN_R 0x0C62
0167   #define GL_TEXTURE_GEN_Q 0x0C63
0168 
0169   #define GL_MAP_COLOR 0x0D10
0170   #define GL_MAP_STENCIL 0x0D11
0171   #define GL_RED_SCALE 0x0D14
0172   #define GL_RED_BIAS 0x0D15
0173   #define GL_GREEN_SCALE 0x0D18
0174   #define GL_GREEN_BIAS 0x0D19
0175   #define GL_BLUE_SCALE 0x0D1A
0176   #define GL_BLUE_BIAS 0x0D1B
0177   #define GL_ALPHA_SCALE 0x0D1C
0178   #define GL_ALPHA_BIAS 0x0D1D
0179   #define GL_DEPTH_SCALE 0x0D1E
0180   #define GL_DEPTH_BIAS 0x0D1F
0181 
0182   #define GL_STACK_OVERFLOW 0x0503
0183   #define GL_STACK_UNDERFLOW 0x0504
0184 #endif
0185 
0186 //! OpenGL 1.1 core.
0187 //! Notice that all functions within this structure are actually exported by system GL library.
0188 //! The main purpose for these hint - to control visibility of functions per GL version
0189 //! (global functions should not be used directly to achieve this effect!).
0190 struct OpenGl_GlCore11 : protected OpenGl_GlFunctions
0191 {
0192 
0193 public:
0194   using OpenGl_GlFunctions::glGetTexEnviv;
0195   using OpenGl_GlFunctions::glTexEnvi;
0196 
0197 public: //! @name Begin/End primitive specification (removed since 3.1)
0198   using OpenGl_GlFunctions::glColor4fv;
0199 
0200 public: //! @name Matrix operations (removed since 3.1)
0201   using OpenGl_GlFunctions::glLoadIdentity;
0202   using OpenGl_GlFunctions::glLoadMatrixf;
0203   using OpenGl_GlFunctions::glMatrixMode;
0204 
0205 public: //! @name Line and Polygon stipple (removed since 3.1)
0206   using OpenGl_GlFunctions::glLineStipple;
0207   using OpenGl_GlFunctions::glPolygonStipple;
0208 
0209 public: //! @name Fixed pipeline lighting (removed since 3.1)
0210   using OpenGl_GlFunctions::glColorMaterial;
0211   using OpenGl_GlFunctions::glLightf;
0212   using OpenGl_GlFunctions::glLightfv;
0213   using OpenGl_GlFunctions::glLightModelfv;
0214   using OpenGl_GlFunctions::glLightModeli;
0215   using OpenGl_GlFunctions::glMaterialf;
0216   using OpenGl_GlFunctions::glMaterialfv;
0217   using OpenGl_GlFunctions::glShadeModel;
0218 
0219 public: //! @name clipping plane (removed since 3.1)
0220   using OpenGl_GlFunctions::glClipPlane;
0221 
0222 public: //! @name Display lists (removed since 3.1)
0223   using OpenGl_GlFunctions::glCallList;
0224   using OpenGl_GlFunctions::glCallLists;
0225   using OpenGl_GlFunctions::glDeleteLists;
0226   using OpenGl_GlFunctions::glEndList;
0227   using OpenGl_GlFunctions::glGenLists;
0228   using OpenGl_GlFunctions::glListBase;
0229   using OpenGl_GlFunctions::glNewList;
0230 
0231 public: //! @name Current raster position and Rectangles (removed since 3.1)
0232   using OpenGl_GlFunctions::glRasterPos2i;
0233   using OpenGl_GlFunctions::glRasterPos3fv;
0234 
0235 public: //! @name Texture mapping (removed since 3.1)
0236   using OpenGl_GlFunctions::glTexGenfv;
0237   using OpenGl_GlFunctions::glTexGeni;
0238 
0239 public: //! @name Pixel copying (removed since 3.1)
0240   using OpenGl_GlFunctions::glBitmap;
0241   using OpenGl_GlFunctions::glCopyPixels;
0242   using OpenGl_GlFunctions::glDrawPixels;
0243 
0244 public: //! @name Edge flags and fixed-function vertex processing (removed since 3.1)
0245   using OpenGl_GlFunctions::glColorPointer;
0246   using OpenGl_GlFunctions::glDisableClientState;
0247   using OpenGl_GlFunctions::glEnableClientState;
0248   using OpenGl_GlFunctions::glIndexPointer;
0249   using OpenGl_GlFunctions::glNormalPointer;
0250   using OpenGl_GlFunctions::glPixelTransferi;
0251   using OpenGl_GlFunctions::glTexCoordPointer;
0252   using OpenGl_GlFunctions::glVertexPointer;
0253 };
0254 
0255 #endif // _OpenGl_GlCore11_Header