00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 //--------------------------------------------------------------------------- 00040 // Includes 00041 //--------------------------------------------------------------------------- 00042 00043 00044 #include <stdlib.h> 00045 #include <stdio.h> 00046 00047 #include <OSGConfig.h> 00048 00049 OSG_BEGIN_NAMESPACE 00050 00051 /***************************************************************************\ 00052 * Types * 00053 \***************************************************************************/ 00054 00055 00056 /***************************************************************************\ 00057 * Class variables * 00058 \***************************************************************************/ 00059 00060 00061 /***************************************************************************\ 00062 * Class methods * 00063 \***************************************************************************/ 00064 00065 00066 /*-------------------------------------------------------------------------*\ 00067 - public - 00068 \*-------------------------------------------------------------------------*/ 00069 00070 /*-------------------------------------------------------------------------*\ 00071 - protected - 00072 \*-------------------------------------------------------------------------*/ 00073 00074 00075 /*-------------------------------------------------------------------------*\ 00076 - private - 00077 \*-------------------------------------------------------------------------*/ 00078 00079 00080 /***************************************************************************\ 00081 * Instance methods * 00082 \***************************************************************************/ 00083 00084 /*-------------------------------------------------------------------------*\ 00085 - public - 00086 \*-------------------------------------------------------------------------*/ 00087 00088 /*------------- constructors & destructors --------------------------------*/ 00089 00099 /*------------------------------ access -----------------------------------*/ 00100 00101 /*---------------------------- properties ---------------------------------*/ 00102 00103 00104 inline 00105 UInt32 DrawAction::getLightCount(void) const 00106 { 00107 return _lightCount; 00108 } 00109 00110 inline 00111 void DrawAction::incLightCount(void) 00112 { 00113 ++_lightCount; 00114 } 00115 00116 inline 00117 void DrawAction::decLightCount(void) 00118 { 00119 --_lightCount; 00120 } 00121 00122 /*-------------------------- your_category---------------------------------*/ 00123 00124 /*-------------------------- assignment -----------------------------------*/ 00125 00130 /*-------------------------- comparison -----------------------------------*/ 00131 00145 /*-------------------------------------------------------------------------*\ 00146 - protected - 00147 \*-------------------------------------------------------------------------*/ 00148 00149 00150 00151 /*-------------------------------------------------------------------------*\ 00152 - private - 00153 \*-------------------------------------------------------------------------*/ 00154 00155 OSG_END_NAMESPACE 00156 00160 //: Example for the head comment of a function 00163 //p: Paramaters: 00164 //p: 00166 //g: GlobalVars: 00167 //g: 00169 //r: Return: 00170 //r: 00172 //c: Caution: 00173 //c: 00175 //a: Assumptions: 00176 //a: 00178 //d: Description: 00179 //d: 00181 //s: SeeAlso: 00182 //s: 00184
1.4.3