| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /********************************************************************** 00002 VRS - The Virtual Rendering System 00003 Copyright (C) 2001 Computer Graphics Systems Group at the 00004 Hasso-Plattner-Institute, Potsdam, Germany. 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 This library is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 See the GNU Lesser General Public License for more details. 00013 You should have received a copy of the GNU Lesser+ General Public 00014 License along with this library; if not, write to the FreeSoftware 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA. 00016 **********************************************************************/ 00017 // $Id: techniquegl.h 6014 2007-08-09 07:51:16Z Konstantin_Baumann $ 00018 // $Date: 2007-08-09 09:51:16 +0200 (Thu, 09 Aug 2007) $ 00019 // $Revision: 6014 $ 00020 // $State$ 00021 // $Author: Konstantin_Baumann $ 00022 // 00023 // $Log$ 00024 // Revision 1.27 2005/01/03 01:43:09 klimetschek 00025 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00026 // - removed vrs.vcproj 00027 // minor things: 00028 // - added all glutexamples to vrs4glut.sln 00029 // - fixed some problems in glutexamples 00030 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00031 // 00032 // Revision 1.26 2004/12/10 16:59:29 kirsch 00033 // removed halo-pass 00034 // 00035 // Revision 1.25 2004/11/03 14:45:07 saar 00036 // Class comment changed (Doxygen style) 00037 // 00038 // Revision 1.24 2004/03/12 16:28:40 baumann 00039 // macros VRS_NAMESPACE_BEGIN/_END expanded and removed 00040 // 00041 // Revision 1.23 2004/01/19 11:43:58 baumann 00042 // serialization mechanism improved 00043 // 00044 // Revision 1.22 2004/01/19 07:28:03 baumann 00045 // serialization mechanism improved 00046 // 00047 // Revision 1.21 2002/12/12 13:04:07 kirsch 00048 // Technique constructor does not get a number denoting the number of rendering 00049 // passes anymore, only an empty array of passes is created by default. 00050 // 00051 // Revision 1.20 2002/12/11 16:22:25 kirsch 00052 // merged with more advanced private version of shadow technique 00053 // - ShadowTechniqueGL is now a factory that choses between the "best" shadow technique 00054 // You best use this technique in the scene graph. 00055 // - ShadowTechniqueTemplateGL is a template pattern which should be used for concrete shadow techniques 00056 // - DepthmapShadowTechniqueGL is abstract base class for 00057 // - DepthTextureShadowTechniqueGL (shadows with depth-textures) 00058 // - AlphaTextureShadowTechniqueGL (shadows with alpha-textures) 00059 // 00060 // Revision 1.19 2002/10/29 10:32:53 baumann 00061 // macros VRS_CLASSNAME_* and VRS_IMPL_TYPEINFO_* removed 00062 // 00063 // Revision 1.18 2002/03/03 21:44:26 kosta 00064 // VRS_TYPEINFO-macro rewritten 00065 // 00066 // Revision 1.17 2002/02/19 10:34:19 kosta 00067 // undone all changes since 2002-02-15 00068 // 00069 // Revision 1.14 2002/01/15 16:25:55 kosta 00070 // macros rewritten for a better namespace support 00071 // 00072 // Revision 1.13 2001/11/13 16:36:31 kirsch 00073 // changed line feed to unix style (removed control-M) 00074 // 00075 // Revision 1.12 2001/09/13 11:10:36 kirsch 00076 // Modified identifier constants for rendering passes 00077 // 00078 // Revision 1.11 2001/09/10 21:01:00 kirsch 00079 // Shapes with SurfaceStyleGL now are also mirrored with this SurfaceStyleGL 00080 // 00081 // Revision 1.10 2001/09/05 10:56:11 kirsch 00082 // Documentation updates 00083 // 00084 // Revision 1.9 2001/09/04 15:17:25 kirsch 00085 // documentation updates, code cleanup 00086 // 00087 // Revision 1.8 2001/08/28 14:24:39 kirsch 00088 // separated SurfaceStyleGL into SilhouetteStyleGL and SurfaceStyleGL 00089 // 00090 // Revision 1.7 2001/08/27 20:36:53 kirsch 00091 // Added BackgroundGL 00092 // 00093 // Revision 1.6 2001/08/27 13:02:17 kirsch 00094 // TransparencyTechniqueGL, initial revision 00095 // 00096 // Revision 1.5 2001/08/26 11:24:06 kirsch 00097 // changed: extra pass for clearing the framebuffer 00098 // 00099 // Revision 1.4 2001/08/20 13:47:37 kirsch 00100 // Stencilbuffer was cleared unnecessarily in TechniqueGL 00101 // 00102 // Revision 1.3 2001/08/09 15:37:10 kirsch 00103 // Added shadows in OpenGL, created with alpha depthmaps. 00104 // Still experimental, some flaws 00105 // 00106 // Revision 1.2 2001/07/26 15:23:22 kirsch 00107 // enhanced engine to support rendering techniques 00108 // 00109 // Revision 1.1.2.1 2001/06/15 12:56:05 kirsch 00110 // pretraversal integrated, synthesizer replaced, polyattributes don't get 00111 // properly rendered 00112 // 00113 00114 #ifndef VRS_OPENGL_TECHNIQUEGL_H 00115 #define VRS_OPENGL_TECHNIQUEGL_H 00116 00117 #include <vrs/technique.h> 00118 00119 namespace VRS { 00120 00122 class VRS_CORE_API TechniqueGL : public Technique { 00123 public: 00124 00125 virtual ID target() const; 00127 00128 VRS_TYPEINFO(TechniqueGL, Technique); 00129 00130 protected: 00131 enum PassNumbers { 00132 BOUNDINGBOX = 5, // DepthmapShadows (new) 00133 GATHERLIGHTS = 5, // Shadows (new) 00134 BUILDDEPTHMAP = 30, // DepthmapShadows (new) 00135 CLEARBUFFER = 50, // Main 00136 BACKGROUND = 55, // Background 00137 MIRRORPASSESBEGIN = 75, // Mirror 00138 SURFACE1 = 90, // SurfaceStyle 00139 SURFACE2 = 91, // SurfaceStyle 00140 MIRROR = 99, // Mirror 00141 MAIN = 100, // All 00142 MIRRORPASSESEND = 125, // Mirror 00143 MIRRORTRIGGER = 130, // Mirror 00144 MIRRORFACETREDRAW = 135, // Mirror, Shadows 00145 STENCILSILH1 = 140, // SilhouetteStyle 00146 STENCILSILH2 = 141, // SilhouetteStyle 00147 STENCILSILH3 = 142, // SilhouetteStyle 00148 STENCILSILH4 = 143, // SilhouetteStyle 00149 STENCILSILH5 = 144, // SilhouetteStyle 00150 BACKVOL = 170, // Shadow volumes (planed) 00151 FRONTVOL = 171, // Shadow volumes (planed) 00152 APPLYDEPTHMAP = 180, // DepthmapShadows (new) 00153 SIMPLESHADOWADDLIGHT = 181, // Shadows (new) 00154 APPLYSILH = 300, // SilhouetteStyle 00155 TRANSPARENCY = 500 // Transparency 00156 }; 00157 VRS_SERIALIZABLE_CLASS_ENUM(PassNumbers); 00160 }; 00161 00162 } // namespace VRS 00163 00164 #endif // VRS_OPENGL_TECHNIQUEGL_H