Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:58:09

0001 // Created on: 2014-10-08
0002 // Created by: Kirill Gavrilov
0003 // Copyright (c) 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 _Graphic3d_ShaderFlags_HeaderFile
0017 #define _Graphic3d_ShaderFlags_HeaderFile
0018 
0019 //! Standard GLSL program combination bits.
0020 enum Graphic3d_ShaderFlags
0021 {
0022   Graphic3d_ShaderFlags_VertColor  = 0x0001, //!< per-vertex color
0023   Graphic3d_ShaderFlags_TextureRGB = 0x0002, //!< handle RGB texturing
0024   Graphic3d_ShaderFlags_TextureEnv = 0x0004, //!< handle environment map (obsolete, to be removed)
0025   Graphic3d_ShaderFlags_TextureNormal =
0026     Graphic3d_ShaderFlags_TextureRGB
0027     | Graphic3d_ShaderFlags_TextureEnv,       //!< extended texture set (with normal map)
0028   Graphic3d_ShaderFlags_PointSimple = 0x0008, //!< point marker without sprite
0029   Graphic3d_ShaderFlags_PointSprite = 0x0010, //!< point sprite with RGB image
0030   Graphic3d_ShaderFlags_PointSpriteA =
0031     Graphic3d_ShaderFlags_PointSimple
0032     | Graphic3d_ShaderFlags_PointSprite,      //!< point sprite with Alpha image
0033   Graphic3d_ShaderFlags_StippleLine = 0x0020, //!< stipple line
0034   Graphic3d_ShaderFlags_ClipPlanes1 = 0x0040, //!< handle 1 clipping plane
0035   Graphic3d_ShaderFlags_ClipPlanes2 = 0x0080, //!< handle 2 clipping planes
0036   Graphic3d_ShaderFlags_ClipPlanesN =
0037     Graphic3d_ShaderFlags_ClipPlanes1
0038     | Graphic3d_ShaderFlags_ClipPlanes2,     //!< handle N clipping planes
0039   Graphic3d_ShaderFlags_ClipChains = 0x0100, //!< handle chains of clipping planes
0040   Graphic3d_ShaderFlags_MeshEdges  = 0x0200, //!< draw mesh edges (wireframe)
0041   Graphic3d_ShaderFlags_AlphaTest =
0042     0x0400, //!< discard fragment by alpha test (defined by cutoff value)
0043   Graphic3d_ShaderFlags_WriteOit =
0044     0x0800, //!< write coverage buffer for Blended Order-Independent Transparency
0045   Graphic3d_ShaderFlags_OitDepthPeeling = 0x1000, //!< handle Depth Peeling OIT
0046   Graphic3d_ShaderFlags_VertColorFrontOnly =
0047     0x2000, //!< apply per-vertex color only to front-facing fragments
0048   //
0049   Graphic3d_ShaderFlags_NB      = 0x4000, //!< overall number of combinations
0050   Graphic3d_ShaderFlags_IsPoint = Graphic3d_ShaderFlags_PointSimple
0051                                   | Graphic3d_ShaderFlags_PointSprite
0052                                   | Graphic3d_ShaderFlags_PointSpriteA,
0053   Graphic3d_ShaderFlags_HasTextures =
0054     Graphic3d_ShaderFlags_TextureRGB | Graphic3d_ShaderFlags_TextureEnv,
0055   Graphic3d_ShaderFlags_NeedsGeomShader = Graphic3d_ShaderFlags_MeshEdges,
0056 };
0057 
0058 #endif // _Graphic3d_ShaderFlags_HeaderFile