changed: gcc8 base update
[opensg.git] / Source / System / State / OpenGL / OSGTextureEnvChunkBase.inl
blob49a2dc1b09c1348b319ecfdfcba2b1454a8caf8f
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2013 by the OpenSG Forum                 *
6  *                                                                           *
7  * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net  *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
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.                               *
16  *                                                                           *
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.                          *
21  *                                                                           *
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.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38  *****************************************************************************
39  **                                                                         **
40  **                  This file is automatically generated.                  **
41  **                                                                         **
42  **          Any changes made to this file WILL be lost when it is          **
43  **           regenerated, which can become necessary at any time.          **
44  **                                                                         **
45  **     Do not change this file, changes should be done in the derived      **
46  **     class TextureEnvChunk!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &TextureEnvChunkBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 TextureEnvChunkBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 TextureEnvChunkBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TextureEnvChunk::_sfEnvMode field.
79 inline
80 GLenum &TextureEnvChunkBase::editEnvMode(void)
82     editSField(EnvModeFieldMask);
84     return _sfEnvMode.getValue();
87 //! Get the value of the TextureEnvChunk::_sfEnvMode field.
88 inline
89 const GLenum &TextureEnvChunkBase::getEnvMode(void) const
91     return _sfEnvMode.getValue();
94 //! Set the value of the TextureEnvChunk::_sfEnvMode field.
95 inline
96 void TextureEnvChunkBase::setEnvMode(const GLenum &value)
98     editSField(EnvModeFieldMask);
100     _sfEnvMode.setValue(value);
102 //! Get the value of the TextureEnvChunk::_sfEnvColor field.
104 inline
105 Color4f &TextureEnvChunkBase::editEnvColor(void)
107     editSField(EnvColorFieldMask);
109     return _sfEnvColor.getValue();
112 //! Get the value of the TextureEnvChunk::_sfEnvColor field.
113 inline
114 const Color4f &TextureEnvChunkBase::getEnvColor(void) const
116     return _sfEnvColor.getValue();
119 //! Set the value of the TextureEnvChunk::_sfEnvColor field.
120 inline
121 void TextureEnvChunkBase::setEnvColor(const Color4f &value)
123     editSField(EnvColorFieldMask);
125     _sfEnvColor.setValue(value);
127 //! Get the value of the TextureEnvChunk::_sfEnvCombineRGB field.
129 inline
130 GLenum &TextureEnvChunkBase::editEnvCombineRGB(void)
132     editSField(EnvCombineRGBFieldMask);
134     return _sfEnvCombineRGB.getValue();
137 //! Get the value of the TextureEnvChunk::_sfEnvCombineRGB field.
138 inline
139 const GLenum &TextureEnvChunkBase::getEnvCombineRGB(void) const
141     return _sfEnvCombineRGB.getValue();
144 //! Set the value of the TextureEnvChunk::_sfEnvCombineRGB field.
145 inline
146 void TextureEnvChunkBase::setEnvCombineRGB(const GLenum &value)
148     editSField(EnvCombineRGBFieldMask);
150     _sfEnvCombineRGB.setValue(value);
152 //! Get the value of the TextureEnvChunk::_sfEnvCombineAlpha field.
154 inline
155 GLenum &TextureEnvChunkBase::editEnvCombineAlpha(void)
157     editSField(EnvCombineAlphaFieldMask);
159     return _sfEnvCombineAlpha.getValue();
162 //! Get the value of the TextureEnvChunk::_sfEnvCombineAlpha field.
163 inline
164 const GLenum &TextureEnvChunkBase::getEnvCombineAlpha(void) const
166     return _sfEnvCombineAlpha.getValue();
169 //! Set the value of the TextureEnvChunk::_sfEnvCombineAlpha field.
170 inline
171 void TextureEnvChunkBase::setEnvCombineAlpha(const GLenum &value)
173     editSField(EnvCombineAlphaFieldMask);
175     _sfEnvCombineAlpha.setValue(value);
177 //! Get the value of the TextureEnvChunk::_sfEnvScaleRGB field.
179 inline
180 Real32 &TextureEnvChunkBase::editEnvScaleRGB(void)
182     editSField(EnvScaleRGBFieldMask);
184     return _sfEnvScaleRGB.getValue();
187 //! Get the value of the TextureEnvChunk::_sfEnvScaleRGB field.
188 inline
189       Real32  TextureEnvChunkBase::getEnvScaleRGB(void) const
191     return _sfEnvScaleRGB.getValue();
194 //! Set the value of the TextureEnvChunk::_sfEnvScaleRGB field.
195 inline
196 void TextureEnvChunkBase::setEnvScaleRGB(const Real32 value)
198     editSField(EnvScaleRGBFieldMask);
200     _sfEnvScaleRGB.setValue(value);
202 //! Get the value of the TextureEnvChunk::_sfEnvScaleAlpha field.
204 inline
205 Real32 &TextureEnvChunkBase::editEnvScaleAlpha(void)
207     editSField(EnvScaleAlphaFieldMask);
209     return _sfEnvScaleAlpha.getValue();
212 //! Get the value of the TextureEnvChunk::_sfEnvScaleAlpha field.
213 inline
214       Real32  TextureEnvChunkBase::getEnvScaleAlpha(void) const
216     return _sfEnvScaleAlpha.getValue();
219 //! Set the value of the TextureEnvChunk::_sfEnvScaleAlpha field.
220 inline
221 void TextureEnvChunkBase::setEnvScaleAlpha(const Real32 value)
223     editSField(EnvScaleAlphaFieldMask);
225     _sfEnvScaleAlpha.setValue(value);
227 //! Get the value of the TextureEnvChunk::_sfEnvSource0RGB field.
229 inline
230 GLenum &TextureEnvChunkBase::editEnvSource0RGB(void)
232     editSField(EnvSource0RGBFieldMask);
234     return _sfEnvSource0RGB.getValue();
237 //! Get the value of the TextureEnvChunk::_sfEnvSource0RGB field.
238 inline
239 const GLenum &TextureEnvChunkBase::getEnvSource0RGB(void) const
241     return _sfEnvSource0RGB.getValue();
244 //! Set the value of the TextureEnvChunk::_sfEnvSource0RGB field.
245 inline
246 void TextureEnvChunkBase::setEnvSource0RGB(const GLenum &value)
248     editSField(EnvSource0RGBFieldMask);
250     _sfEnvSource0RGB.setValue(value);
252 //! Get the value of the TextureEnvChunk::_sfEnvSource1RGB field.
254 inline
255 GLenum &TextureEnvChunkBase::editEnvSource1RGB(void)
257     editSField(EnvSource1RGBFieldMask);
259     return _sfEnvSource1RGB.getValue();
262 //! Get the value of the TextureEnvChunk::_sfEnvSource1RGB field.
263 inline
264 const GLenum &TextureEnvChunkBase::getEnvSource1RGB(void) const
266     return _sfEnvSource1RGB.getValue();
269 //! Set the value of the TextureEnvChunk::_sfEnvSource1RGB field.
270 inline
271 void TextureEnvChunkBase::setEnvSource1RGB(const GLenum &value)
273     editSField(EnvSource1RGBFieldMask);
275     _sfEnvSource1RGB.setValue(value);
277 //! Get the value of the TextureEnvChunk::_sfEnvSource2RGB field.
279 inline
280 GLenum &TextureEnvChunkBase::editEnvSource2RGB(void)
282     editSField(EnvSource2RGBFieldMask);
284     return _sfEnvSource2RGB.getValue();
287 //! Get the value of the TextureEnvChunk::_sfEnvSource2RGB field.
288 inline
289 const GLenum &TextureEnvChunkBase::getEnvSource2RGB(void) const
291     return _sfEnvSource2RGB.getValue();
294 //! Set the value of the TextureEnvChunk::_sfEnvSource2RGB field.
295 inline
296 void TextureEnvChunkBase::setEnvSource2RGB(const GLenum &value)
298     editSField(EnvSource2RGBFieldMask);
300     _sfEnvSource2RGB.setValue(value);
302 //! Get the value of the TextureEnvChunk::_sfEnvSource0Alpha field.
304 inline
305 GLenum &TextureEnvChunkBase::editEnvSource0Alpha(void)
307     editSField(EnvSource0AlphaFieldMask);
309     return _sfEnvSource0Alpha.getValue();
312 //! Get the value of the TextureEnvChunk::_sfEnvSource0Alpha field.
313 inline
314 const GLenum &TextureEnvChunkBase::getEnvSource0Alpha(void) const
316     return _sfEnvSource0Alpha.getValue();
319 //! Set the value of the TextureEnvChunk::_sfEnvSource0Alpha field.
320 inline
321 void TextureEnvChunkBase::setEnvSource0Alpha(const GLenum &value)
323     editSField(EnvSource0AlphaFieldMask);
325     _sfEnvSource0Alpha.setValue(value);
327 //! Get the value of the TextureEnvChunk::_sfEnvSource1Alpha field.
329 inline
330 GLenum &TextureEnvChunkBase::editEnvSource1Alpha(void)
332     editSField(EnvSource1AlphaFieldMask);
334     return _sfEnvSource1Alpha.getValue();
337 //! Get the value of the TextureEnvChunk::_sfEnvSource1Alpha field.
338 inline
339 const GLenum &TextureEnvChunkBase::getEnvSource1Alpha(void) const
341     return _sfEnvSource1Alpha.getValue();
344 //! Set the value of the TextureEnvChunk::_sfEnvSource1Alpha field.
345 inline
346 void TextureEnvChunkBase::setEnvSource1Alpha(const GLenum &value)
348     editSField(EnvSource1AlphaFieldMask);
350     _sfEnvSource1Alpha.setValue(value);
352 //! Get the value of the TextureEnvChunk::_sfEnvSource2Alpha field.
354 inline
355 GLenum &TextureEnvChunkBase::editEnvSource2Alpha(void)
357     editSField(EnvSource2AlphaFieldMask);
359     return _sfEnvSource2Alpha.getValue();
362 //! Get the value of the TextureEnvChunk::_sfEnvSource2Alpha field.
363 inline
364 const GLenum &TextureEnvChunkBase::getEnvSource2Alpha(void) const
366     return _sfEnvSource2Alpha.getValue();
369 //! Set the value of the TextureEnvChunk::_sfEnvSource2Alpha field.
370 inline
371 void TextureEnvChunkBase::setEnvSource2Alpha(const GLenum &value)
373     editSField(EnvSource2AlphaFieldMask);
375     _sfEnvSource2Alpha.setValue(value);
377 //! Get the value of the TextureEnvChunk::_sfEnvOperand0RGB field.
379 inline
380 GLenum &TextureEnvChunkBase::editEnvOperand0RGB(void)
382     editSField(EnvOperand0RGBFieldMask);
384     return _sfEnvOperand0RGB.getValue();
387 //! Get the value of the TextureEnvChunk::_sfEnvOperand0RGB field.
388 inline
389 const GLenum &TextureEnvChunkBase::getEnvOperand0RGB(void) const
391     return _sfEnvOperand0RGB.getValue();
394 //! Set the value of the TextureEnvChunk::_sfEnvOperand0RGB field.
395 inline
396 void TextureEnvChunkBase::setEnvOperand0RGB(const GLenum &value)
398     editSField(EnvOperand0RGBFieldMask);
400     _sfEnvOperand0RGB.setValue(value);
402 //! Get the value of the TextureEnvChunk::_sfEnvOperand1RGB field.
404 inline
405 GLenum &TextureEnvChunkBase::editEnvOperand1RGB(void)
407     editSField(EnvOperand1RGBFieldMask);
409     return _sfEnvOperand1RGB.getValue();
412 //! Get the value of the TextureEnvChunk::_sfEnvOperand1RGB field.
413 inline
414 const GLenum &TextureEnvChunkBase::getEnvOperand1RGB(void) const
416     return _sfEnvOperand1RGB.getValue();
419 //! Set the value of the TextureEnvChunk::_sfEnvOperand1RGB field.
420 inline
421 void TextureEnvChunkBase::setEnvOperand1RGB(const GLenum &value)
423     editSField(EnvOperand1RGBFieldMask);
425     _sfEnvOperand1RGB.setValue(value);
427 //! Get the value of the TextureEnvChunk::_sfEnvOperand2RGB field.
429 inline
430 GLenum &TextureEnvChunkBase::editEnvOperand2RGB(void)
432     editSField(EnvOperand2RGBFieldMask);
434     return _sfEnvOperand2RGB.getValue();
437 //! Get the value of the TextureEnvChunk::_sfEnvOperand2RGB field.
438 inline
439 const GLenum &TextureEnvChunkBase::getEnvOperand2RGB(void) const
441     return _sfEnvOperand2RGB.getValue();
444 //! Set the value of the TextureEnvChunk::_sfEnvOperand2RGB field.
445 inline
446 void TextureEnvChunkBase::setEnvOperand2RGB(const GLenum &value)
448     editSField(EnvOperand2RGBFieldMask);
450     _sfEnvOperand2RGB.setValue(value);
452 //! Get the value of the TextureEnvChunk::_sfEnvOperand0Alpha field.
454 inline
455 GLenum &TextureEnvChunkBase::editEnvOperand0Alpha(void)
457     editSField(EnvOperand0AlphaFieldMask);
459     return _sfEnvOperand0Alpha.getValue();
462 //! Get the value of the TextureEnvChunk::_sfEnvOperand0Alpha field.
463 inline
464 const GLenum &TextureEnvChunkBase::getEnvOperand0Alpha(void) const
466     return _sfEnvOperand0Alpha.getValue();
469 //! Set the value of the TextureEnvChunk::_sfEnvOperand0Alpha field.
470 inline
471 void TextureEnvChunkBase::setEnvOperand0Alpha(const GLenum &value)
473     editSField(EnvOperand0AlphaFieldMask);
475     _sfEnvOperand0Alpha.setValue(value);
477 //! Get the value of the TextureEnvChunk::_sfEnvOperand1Alpha field.
479 inline
480 GLenum &TextureEnvChunkBase::editEnvOperand1Alpha(void)
482     editSField(EnvOperand1AlphaFieldMask);
484     return _sfEnvOperand1Alpha.getValue();
487 //! Get the value of the TextureEnvChunk::_sfEnvOperand1Alpha field.
488 inline
489 const GLenum &TextureEnvChunkBase::getEnvOperand1Alpha(void) const
491     return _sfEnvOperand1Alpha.getValue();
494 //! Set the value of the TextureEnvChunk::_sfEnvOperand1Alpha field.
495 inline
496 void TextureEnvChunkBase::setEnvOperand1Alpha(const GLenum &value)
498     editSField(EnvOperand1AlphaFieldMask);
500     _sfEnvOperand1Alpha.setValue(value);
502 //! Get the value of the TextureEnvChunk::_sfEnvOperand2Alpha field.
504 inline
505 GLenum &TextureEnvChunkBase::editEnvOperand2Alpha(void)
507     editSField(EnvOperand2AlphaFieldMask);
509     return _sfEnvOperand2Alpha.getValue();
512 //! Get the value of the TextureEnvChunk::_sfEnvOperand2Alpha field.
513 inline
514 const GLenum &TextureEnvChunkBase::getEnvOperand2Alpha(void) const
516     return _sfEnvOperand2Alpha.getValue();
519 //! Set the value of the TextureEnvChunk::_sfEnvOperand2Alpha field.
520 inline
521 void TextureEnvChunkBase::setEnvOperand2Alpha(const GLenum &value)
523     editSField(EnvOperand2AlphaFieldMask);
525     _sfEnvOperand2Alpha.setValue(value);
527 //! Get the value of the TextureEnvChunk::_sfPointSprite field.
529 inline
530 bool &TextureEnvChunkBase::editPointSprite(void)
532     editSField(PointSpriteFieldMask);
534     return _sfPointSprite.getValue();
537 //! Get the value of the TextureEnvChunk::_sfPointSprite field.
538 inline
539       bool  TextureEnvChunkBase::getPointSprite(void) const
541     return _sfPointSprite.getValue();
544 //! Set the value of the TextureEnvChunk::_sfPointSprite field.
545 inline
546 void TextureEnvChunkBase::setPointSprite(const bool value)
548     editSField(PointSpriteFieldMask);
550     _sfPointSprite.setValue(value);
552 //! Get the value of the TextureEnvChunk::_sfShaderOperation field.
554 inline
555 GLenum &TextureEnvChunkBase::editShaderOperation(void)
557     editSField(ShaderOperationFieldMask);
559     return _sfShaderOperation.getValue();
562 //! Get the value of the TextureEnvChunk::_sfShaderOperation field.
563 inline
564 const GLenum &TextureEnvChunkBase::getShaderOperation(void) const
566     return _sfShaderOperation.getValue();
569 //! Set the value of the TextureEnvChunk::_sfShaderOperation field.
570 inline
571 void TextureEnvChunkBase::setShaderOperation(const GLenum &value)
573     editSField(ShaderOperationFieldMask);
575     _sfShaderOperation.setValue(value);
577 //! Get the value of the TextureEnvChunk::_sfShaderInput field.
579 inline
580 GLenum &TextureEnvChunkBase::editShaderInput(void)
582     editSField(ShaderInputFieldMask);
584     return _sfShaderInput.getValue();
587 //! Get the value of the TextureEnvChunk::_sfShaderInput field.
588 inline
589 const GLenum &TextureEnvChunkBase::getShaderInput(void) const
591     return _sfShaderInput.getValue();
594 //! Set the value of the TextureEnvChunk::_sfShaderInput field.
595 inline
596 void TextureEnvChunkBase::setShaderInput(const GLenum &value)
598     editSField(ShaderInputFieldMask);
600     _sfShaderInput.setValue(value);
602 //! Get the value of the TextureEnvChunk::_sfShaderOffsetScale field.
604 inline
605 Real32 &TextureEnvChunkBase::editShaderOffsetScale(void)
607     editSField(ShaderOffsetScaleFieldMask);
609     return _sfShaderOffsetScale.getValue();
612 //! Get the value of the TextureEnvChunk::_sfShaderOffsetScale field.
613 inline
614       Real32  TextureEnvChunkBase::getShaderOffsetScale(void) const
616     return _sfShaderOffsetScale.getValue();
619 //! Set the value of the TextureEnvChunk::_sfShaderOffsetScale field.
620 inline
621 void TextureEnvChunkBase::setShaderOffsetScale(const Real32 value)
623     editSField(ShaderOffsetScaleFieldMask);
625     _sfShaderOffsetScale.setValue(value);
627 //! Get the value of the TextureEnvChunk::_sfShaderOffsetBias field.
629 inline
630 Real32 &TextureEnvChunkBase::editShaderOffsetBias(void)
632     editSField(ShaderOffsetBiasFieldMask);
634     return _sfShaderOffsetBias.getValue();
637 //! Get the value of the TextureEnvChunk::_sfShaderOffsetBias field.
638 inline
639       Real32  TextureEnvChunkBase::getShaderOffsetBias(void) const
641     return _sfShaderOffsetBias.getValue();
644 //! Set the value of the TextureEnvChunk::_sfShaderOffsetBias field.
645 inline
646 void TextureEnvChunkBase::setShaderOffsetBias(const Real32 value)
648     editSField(ShaderOffsetBiasFieldMask);
650     _sfShaderOffsetBias.setValue(value);
652 //! Get the value of the TextureEnvChunk::_sfShaderRGBADotProduct field.
654 inline
655 GLenum &TextureEnvChunkBase::editShaderRGBADotProduct(void)
657     editSField(ShaderRGBADotProductFieldMask);
659     return _sfShaderRGBADotProduct.getValue();
662 //! Get the value of the TextureEnvChunk::_sfShaderRGBADotProduct field.
663 inline
664 const GLenum &TextureEnvChunkBase::getShaderRGBADotProduct(void) const
666     return _sfShaderRGBADotProduct.getValue();
669 //! Set the value of the TextureEnvChunk::_sfShaderRGBADotProduct field.
670 inline
671 void TextureEnvChunkBase::setShaderRGBADotProduct(const GLenum &value)
673     editSField(ShaderRGBADotProductFieldMask);
675     _sfShaderRGBADotProduct.setValue(value);
677 //! Get the value of the TextureEnvChunk::_sfShaderCullModes field.
679 inline
680 UInt8 &TextureEnvChunkBase::editShaderCullModes(void)
682     editSField(ShaderCullModesFieldMask);
684     return _sfShaderCullModes.getValue();
687 //! Get the value of the TextureEnvChunk::_sfShaderCullModes field.
688 inline
689       UInt8  TextureEnvChunkBase::getShaderCullModes(void) const
691     return _sfShaderCullModes.getValue();
694 //! Set the value of the TextureEnvChunk::_sfShaderCullModes field.
695 inline
696 void TextureEnvChunkBase::setShaderCullModes(const UInt8 value)
698     editSField(ShaderCullModesFieldMask);
700     _sfShaderCullModes.setValue(value);
702 //! Get the value of the TextureEnvChunk::_sfShaderConstEye field.
704 inline
705 Vec3f &TextureEnvChunkBase::editShaderConstEye(void)
707     editSField(ShaderConstEyeFieldMask);
709     return _sfShaderConstEye.getValue();
712 //! Get the value of the TextureEnvChunk::_sfShaderConstEye field.
713 inline
714 const Vec3f &TextureEnvChunkBase::getShaderConstEye(void) const
716     return _sfShaderConstEye.getValue();
719 //! Set the value of the TextureEnvChunk::_sfShaderConstEye field.
720 inline
721 void TextureEnvChunkBase::setShaderConstEye(const Vec3f &value)
723     editSField(ShaderConstEyeFieldMask);
725     _sfShaderConstEye.setValue(value);
727 //! Get the value of the TextureEnvChunk::_sfLodBias field.
729 inline
730 Real32 &TextureEnvChunkBase::editLodBias(void)
732     editSField(LodBiasFieldMask);
734     return _sfLodBias.getValue();
737 //! Get the value of the TextureEnvChunk::_sfLodBias field.
738 inline
739       Real32  TextureEnvChunkBase::getLodBias(void) const
741     return _sfLodBias.getValue();
744 //! Set the value of the TextureEnvChunk::_sfLodBias field.
745 inline
746 void TextureEnvChunkBase::setLodBias(const Real32 value)
748     editSField(LodBiasFieldMask);
750     _sfLodBias.setValue(value);
753 //! Get the value of the \a index element the TextureEnvChunk::_mfShaderOffsetMatrix field.
754 inline
755       Real32  TextureEnvChunkBase::getShaderOffsetMatrix(const UInt32 index) const
757     return _mfShaderOffsetMatrix[index];
760 inline
761 MFReal32           ::reference TextureEnvChunkBase::editShaderOffsetMatrix(const UInt32 index)
763     editMField(ShaderOffsetMatrixFieldMask, _mfShaderOffsetMatrix);
765     return _mfShaderOffsetMatrix[index];
769 #ifdef OSG_MT_CPTR_ASPECT
770 inline
771 void TextureEnvChunkBase::execSync (      TextureEnvChunkBase *pFrom,
772                                         ConstFieldMaskArg  whichField,
773                                         AspectOffsetStore &oOffsets,
774                                         ConstFieldMaskArg  syncMode,
775                                   const UInt32             uiSyncInfo)
777     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
779     if(FieldBits::NoField != (EnvModeFieldMask & whichField))
780         _sfEnvMode.syncWith(pFrom->_sfEnvMode);
782     if(FieldBits::NoField != (EnvColorFieldMask & whichField))
783         _sfEnvColor.syncWith(pFrom->_sfEnvColor);
785     if(FieldBits::NoField != (EnvCombineRGBFieldMask & whichField))
786         _sfEnvCombineRGB.syncWith(pFrom->_sfEnvCombineRGB);
788     if(FieldBits::NoField != (EnvCombineAlphaFieldMask & whichField))
789         _sfEnvCombineAlpha.syncWith(pFrom->_sfEnvCombineAlpha);
791     if(FieldBits::NoField != (EnvScaleRGBFieldMask & whichField))
792         _sfEnvScaleRGB.syncWith(pFrom->_sfEnvScaleRGB);
794     if(FieldBits::NoField != (EnvScaleAlphaFieldMask & whichField))
795         _sfEnvScaleAlpha.syncWith(pFrom->_sfEnvScaleAlpha);
797     if(FieldBits::NoField != (EnvSource0RGBFieldMask & whichField))
798         _sfEnvSource0RGB.syncWith(pFrom->_sfEnvSource0RGB);
800     if(FieldBits::NoField != (EnvSource1RGBFieldMask & whichField))
801         _sfEnvSource1RGB.syncWith(pFrom->_sfEnvSource1RGB);
803     if(FieldBits::NoField != (EnvSource2RGBFieldMask & whichField))
804         _sfEnvSource2RGB.syncWith(pFrom->_sfEnvSource2RGB);
806     if(FieldBits::NoField != (EnvSource0AlphaFieldMask & whichField))
807         _sfEnvSource0Alpha.syncWith(pFrom->_sfEnvSource0Alpha);
809     if(FieldBits::NoField != (EnvSource1AlphaFieldMask & whichField))
810         _sfEnvSource1Alpha.syncWith(pFrom->_sfEnvSource1Alpha);
812     if(FieldBits::NoField != (EnvSource2AlphaFieldMask & whichField))
813         _sfEnvSource2Alpha.syncWith(pFrom->_sfEnvSource2Alpha);
815     if(FieldBits::NoField != (EnvOperand0RGBFieldMask & whichField))
816         _sfEnvOperand0RGB.syncWith(pFrom->_sfEnvOperand0RGB);
818     if(FieldBits::NoField != (EnvOperand1RGBFieldMask & whichField))
819         _sfEnvOperand1RGB.syncWith(pFrom->_sfEnvOperand1RGB);
821     if(FieldBits::NoField != (EnvOperand2RGBFieldMask & whichField))
822         _sfEnvOperand2RGB.syncWith(pFrom->_sfEnvOperand2RGB);
824     if(FieldBits::NoField != (EnvOperand0AlphaFieldMask & whichField))
825         _sfEnvOperand0Alpha.syncWith(pFrom->_sfEnvOperand0Alpha);
827     if(FieldBits::NoField != (EnvOperand1AlphaFieldMask & whichField))
828         _sfEnvOperand1Alpha.syncWith(pFrom->_sfEnvOperand1Alpha);
830     if(FieldBits::NoField != (EnvOperand2AlphaFieldMask & whichField))
831         _sfEnvOperand2Alpha.syncWith(pFrom->_sfEnvOperand2Alpha);
833     if(FieldBits::NoField != (PointSpriteFieldMask & whichField))
834         _sfPointSprite.syncWith(pFrom->_sfPointSprite);
836     if(FieldBits::NoField != (ShaderOperationFieldMask & whichField))
837         _sfShaderOperation.syncWith(pFrom->_sfShaderOperation);
839     if(FieldBits::NoField != (ShaderInputFieldMask & whichField))
840         _sfShaderInput.syncWith(pFrom->_sfShaderInput);
842     if(FieldBits::NoField != (ShaderOffsetMatrixFieldMask & whichField))
843         _mfShaderOffsetMatrix.syncWith(pFrom->_mfShaderOffsetMatrix,
844                                 syncMode,
845                                 uiSyncInfo,
846                                 oOffsets);
848     if(FieldBits::NoField != (ShaderOffsetScaleFieldMask & whichField))
849         _sfShaderOffsetScale.syncWith(pFrom->_sfShaderOffsetScale);
851     if(FieldBits::NoField != (ShaderOffsetBiasFieldMask & whichField))
852         _sfShaderOffsetBias.syncWith(pFrom->_sfShaderOffsetBias);
854     if(FieldBits::NoField != (ShaderRGBADotProductFieldMask & whichField))
855         _sfShaderRGBADotProduct.syncWith(pFrom->_sfShaderRGBADotProduct);
857     if(FieldBits::NoField != (ShaderCullModesFieldMask & whichField))
858         _sfShaderCullModes.syncWith(pFrom->_sfShaderCullModes);
860     if(FieldBits::NoField != (ShaderConstEyeFieldMask & whichField))
861         _sfShaderConstEye.syncWith(pFrom->_sfShaderConstEye);
863     if(FieldBits::NoField != (LodBiasFieldMask & whichField))
864         _sfLodBias.syncWith(pFrom->_sfLodBias);
866 #endif
869 inline
870 const Char8 *TextureEnvChunkBase::getClassname(void)
872     return "TextureEnvChunk";
874 OSG_GEN_CONTAINERPTR(TextureEnvChunk);
876 OSG_END_NAMESPACE