Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:49

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   = Graphic3d_ShaderFlags_TextureRGB|Graphic3d_ShaderFlags_TextureEnv, //!< extended texture set (with normal map)
0026   Graphic3d_ShaderFlags_PointSimple     = 0x0008, //!< point marker without sprite
0027   Graphic3d_ShaderFlags_PointSprite     = 0x0010, //!< point sprite with RGB image
0028   Graphic3d_ShaderFlags_PointSpriteA    = Graphic3d_ShaderFlags_PointSimple|Graphic3d_ShaderFlags_PointSprite, //!< point sprite with Alpha image
0029   Graphic3d_ShaderFlags_StippleLine     = 0x0020, //!< stipple line
0030   Graphic3d_ShaderFlags_ClipPlanes1     = 0x0040, //!< handle 1 clipping plane
0031   Graphic3d_ShaderFlags_ClipPlanes2     = 0x0080, //!< handle 2 clipping planes
0032   Graphic3d_ShaderFlags_ClipPlanesN     = Graphic3d_ShaderFlags_ClipPlanes1|Graphic3d_ShaderFlags_ClipPlanes2, //!< handle N clipping planes
0033   Graphic3d_ShaderFlags_ClipChains      = 0x0100, //!< handle chains of clipping planes
0034   Graphic3d_ShaderFlags_MeshEdges       = 0x0200, //!< draw mesh edges (wireframe)
0035   Graphic3d_ShaderFlags_AlphaTest       = 0x0400, //!< discard fragment by alpha test (defined by cutoff value)
0036   Graphic3d_ShaderFlags_WriteOit        = 0x0800, //!< write coverage buffer for Blended Order-Independent Transparency
0037   Graphic3d_ShaderFlags_OitDepthPeeling = 0x1000, //!< handle Depth Peeling OIT
0038   //
0039   Graphic3d_ShaderFlags_NB              = 0x2000, //!< overall number of combinations
0040   Graphic3d_ShaderFlags_IsPoint         = Graphic3d_ShaderFlags_PointSimple|Graphic3d_ShaderFlags_PointSprite|Graphic3d_ShaderFlags_PointSpriteA,
0041   Graphic3d_ShaderFlags_HasTextures     = Graphic3d_ShaderFlags_TextureRGB|Graphic3d_ShaderFlags_TextureEnv,
0042   Graphic3d_ShaderFlags_NeedsGeomShader = Graphic3d_ShaderFlags_MeshEdges,
0043 };
0044 
0045 #endif // _Graphic3d_ShaderFlags_HeaderFile