00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00008 * * 00009 \*---------------------------------------------------------------------------*/ 00010 /*---------------------------------------------------------------------------*\ 00011 * License * 00012 * * 00013 * This library is free software; you can redistribute it and/or modify it * 00014 * under the terms of the GNU Library General Public License as published * 00015 * by the Free Software Foundation, version 2. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, but * 00018 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00020 * Library General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Library General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00025 * * 00026 \*---------------------------------------------------------------------------*/ 00027 /*---------------------------------------------------------------------------*\ 00028 * Changes * 00029 * * 00030 * * 00031 * * 00032 * * 00033 * * 00034 * * 00035 \*---------------------------------------------------------------------------*/ 00036 00037 //--------------------------------------------------------------------------- 00038 // Includes 00039 //--------------------------------------------------------------------------- 00040 00041 #include <OSGConfig.h> 00042 00043 OSG_BEGIN_NAMESPACE 00044 00045 inline 00046 void ShaderParameter::setTypeId(ShaderParameter::SHPType type) 00047 { 00048 _typeid = type; 00049 } 00050 00051 inline 00052 ShaderParameter::SHPType ShaderParameter::getTypeId(void) 00053 { 00054 return _typeid; 00055 } 00056 00057 inline 00058 void ShaderParameter::setLocation(GLint location) 00059 { 00060 _location = location; 00061 } 00062 00063 inline 00064 GLint ShaderParameter::getLocation(void) 00065 { 00066 return _location; 00067 } 00068 00069 inline 00070 bool ShaderParameter::hasChanged(void) 00071 { 00072 return _changed; 00073 } 00074 00075 inline 00076 void ShaderParameter::resetChanged(void) 00077 { 00078 _changed = false; 00079 } 00080 00081 inline 00082 void ShaderParameter::setChanged(void) 00083 { 00084 _changed = true; 00085 } 00086 00087 inline 00088 UInt32 ShaderParameter::getFlags(void) 00089 { 00090 return _flags; 00091 } 00092 00093 inline 00094 void ShaderParameter::setFlags(UInt32 flags) 00095 { 00096 _flags = flags; 00097 } 00098 00099 OSG_END_NAMESPACE 00100 00101 #define OSGSHADERPARAMETER_INLINE_CVSID "@(#)$Id: OSGShaderParameter.inl,v 1.3 2006/11/18 12:03:55 a-m-z Exp $" 00102
1.5.5