1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38 *****************************************************************************
40 ** This file is automatically generated. **
42 ** Any changes made to this file WILL be lost when it is **
43 ** regenerated, which can become necessary at any time. **
45 ** Do not change this file, changes should be done in the derived **
46 ** class ShaderProgramChunk!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &ShaderProgramChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 ShaderProgramChunkBase::getClassTypeId(void)
70 OSG::UInt16 ShaderProgramChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ShaderProgramChunk::_sfGeometryVerticesOut field.
80 UInt32 &ShaderProgramChunkBase::editGeometryVerticesOut(void)
82 editSField(GeometryVerticesOutFieldMask);
84 return _sfGeometryVerticesOut.getValue();
87 //! Get the value of the ShaderProgramChunk::_sfGeometryVerticesOut field.
89 UInt32 ShaderProgramChunkBase::getGeometryVerticesOut(void) const
91 return _sfGeometryVerticesOut.getValue();
94 //! Set the value of the ShaderProgramChunk::_sfGeometryVerticesOut field.
96 void ShaderProgramChunkBase::setGeometryVerticesOut(const UInt32 value)
98 editSField(GeometryVerticesOutFieldMask);
100 _sfGeometryVerticesOut.setValue(value);
102 //! Get the value of the ShaderProgramChunk::_sfGeometryInputType field.
105 GLenum &ShaderProgramChunkBase::editGeometryInputType(void)
107 editSField(GeometryInputTypeFieldMask);
109 return _sfGeometryInputType.getValue();
112 //! Get the value of the ShaderProgramChunk::_sfGeometryInputType field.
114 const GLenum &ShaderProgramChunkBase::getGeometryInputType(void) const
116 return _sfGeometryInputType.getValue();
119 //! Set the value of the ShaderProgramChunk::_sfGeometryInputType field.
121 void ShaderProgramChunkBase::setGeometryInputType(const GLenum &value)
123 editSField(GeometryInputTypeFieldMask);
125 _sfGeometryInputType.setValue(value);
127 //! Get the value of the ShaderProgramChunk::_sfGeometryOutputType field.
130 GLenum &ShaderProgramChunkBase::editGeometryOutputType(void)
132 editSField(GeometryOutputTypeFieldMask);
134 return _sfGeometryOutputType.getValue();
137 //! Get the value of the ShaderProgramChunk::_sfGeometryOutputType field.
139 const GLenum &ShaderProgramChunkBase::getGeometryOutputType(void) const
141 return _sfGeometryOutputType.getValue();
144 //! Set the value of the ShaderProgramChunk::_sfGeometryOutputType field.
146 void ShaderProgramChunkBase::setGeometryOutputType(const GLenum &value)
148 editSField(GeometryOutputTypeFieldMask);
150 _sfGeometryOutputType.setValue(value);
159 #ifdef OSG_MT_CPTR_ASPECT
161 void ShaderProgramChunkBase::execSync ( ShaderProgramChunkBase *pFrom,
162 ConstFieldMaskArg whichField,
163 AspectOffsetStore &oOffsets,
164 ConstFieldMaskArg syncMode,
165 const UInt32 uiSyncInfo)
167 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
169 if(FieldBits::NoField != (VertexShaderFieldMask & whichField))
170 _mfVertexShader.syncWith(pFrom->_mfVertexShader,
175 if(FieldBits::NoField != (TessControlShaderFieldMask & whichField))
176 _mfTessControlShader.syncWith(pFrom->_mfTessControlShader,
181 if(FieldBits::NoField != (TessEvaluationShaderFieldMask & whichField))
182 _mfTessEvaluationShader.syncWith(pFrom->_mfTessEvaluationShader,
187 if(FieldBits::NoField != (GeometryShaderFieldMask & whichField))
188 _mfGeometryShader.syncWith(pFrom->_mfGeometryShader,
193 if(FieldBits::NoField != (FragmentShaderFieldMask & whichField))
194 _mfFragmentShader.syncWith(pFrom->_mfFragmentShader,
199 if(FieldBits::NoField != (GeometryVerticesOutFieldMask & whichField))
200 _sfGeometryVerticesOut.syncWith(pFrom->_sfGeometryVerticesOut);
202 if(FieldBits::NoField != (GeometryInputTypeFieldMask & whichField))
203 _sfGeometryInputType.syncWith(pFrom->_sfGeometryInputType);
205 if(FieldBits::NoField != (GeometryOutputTypeFieldMask & whichField))
206 _sfGeometryOutputType.syncWith(pFrom->_sfGeometryOutputType);
212 const Char8 *ShaderProgramChunkBase::getClassname(void)
214 return "ShaderProgramChunk";
216 OSG_GEN_CONTAINERPTR(ShaderProgramChunk);