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 TextureEnvChunk!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &TextureEnvChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 TextureEnvChunkBase::getClassTypeId(void)
70 OSG::UInt16 TextureEnvChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TextureEnvChunk::_sfEnvMode field.
80 GLenum &TextureEnvChunkBase::editEnvMode(void)
82 editSField(EnvModeFieldMask);
84 return _sfEnvMode.getValue();
87 //! Get the value of the TextureEnvChunk::_sfEnvMode field.
89 const GLenum &TextureEnvChunkBase::getEnvMode(void) const
91 return _sfEnvMode.getValue();
94 //! Set the value of the TextureEnvChunk::_sfEnvMode field.
96 void TextureEnvChunkBase::setEnvMode(const GLenum &value)
98 editSField(EnvModeFieldMask);
100 _sfEnvMode.setValue(value);
102 //! Get the value of the TextureEnvChunk::_sfEnvColor field.
105 Color4f &TextureEnvChunkBase::editEnvColor(void)
107 editSField(EnvColorFieldMask);
109 return _sfEnvColor.getValue();
112 //! Get the value of the TextureEnvChunk::_sfEnvColor field.
114 const Color4f &TextureEnvChunkBase::getEnvColor(void) const
116 return _sfEnvColor.getValue();
119 //! Set the value of the TextureEnvChunk::_sfEnvColor field.
121 void TextureEnvChunkBase::setEnvColor(const Color4f &value)
123 editSField(EnvColorFieldMask);
125 _sfEnvColor.setValue(value);
127 //! Get the value of the TextureEnvChunk::_sfEnvCombineRGB field.
130 GLenum &TextureEnvChunkBase::editEnvCombineRGB(void)
132 editSField(EnvCombineRGBFieldMask);
134 return _sfEnvCombineRGB.getValue();
137 //! Get the value of the TextureEnvChunk::_sfEnvCombineRGB field.
139 const GLenum &TextureEnvChunkBase::getEnvCombineRGB(void) const
141 return _sfEnvCombineRGB.getValue();
144 //! Set the value of the TextureEnvChunk::_sfEnvCombineRGB field.
146 void TextureEnvChunkBase::setEnvCombineRGB(const GLenum &value)
148 editSField(EnvCombineRGBFieldMask);
150 _sfEnvCombineRGB.setValue(value);
152 //! Get the value of the TextureEnvChunk::_sfEnvCombineAlpha field.
155 GLenum &TextureEnvChunkBase::editEnvCombineAlpha(void)
157 editSField(EnvCombineAlphaFieldMask);
159 return _sfEnvCombineAlpha.getValue();
162 //! Get the value of the TextureEnvChunk::_sfEnvCombineAlpha field.
164 const GLenum &TextureEnvChunkBase::getEnvCombineAlpha(void) const
166 return _sfEnvCombineAlpha.getValue();
169 //! Set the value of the TextureEnvChunk::_sfEnvCombineAlpha field.
171 void TextureEnvChunkBase::setEnvCombineAlpha(const GLenum &value)
173 editSField(EnvCombineAlphaFieldMask);
175 _sfEnvCombineAlpha.setValue(value);
177 //! Get the value of the TextureEnvChunk::_sfEnvScaleRGB field.
180 Real32 &TextureEnvChunkBase::editEnvScaleRGB(void)
182 editSField(EnvScaleRGBFieldMask);
184 return _sfEnvScaleRGB.getValue();
187 //! Get the value of the TextureEnvChunk::_sfEnvScaleRGB field.
189 Real32 TextureEnvChunkBase::getEnvScaleRGB(void) const
191 return _sfEnvScaleRGB.getValue();
194 //! Set the value of the TextureEnvChunk::_sfEnvScaleRGB field.
196 void TextureEnvChunkBase::setEnvScaleRGB(const Real32 value)
198 editSField(EnvScaleRGBFieldMask);
200 _sfEnvScaleRGB.setValue(value);
202 //! Get the value of the TextureEnvChunk::_sfEnvScaleAlpha field.
205 Real32 &TextureEnvChunkBase::editEnvScaleAlpha(void)
207 editSField(EnvScaleAlphaFieldMask);
209 return _sfEnvScaleAlpha.getValue();
212 //! Get the value of the TextureEnvChunk::_sfEnvScaleAlpha field.
214 Real32 TextureEnvChunkBase::getEnvScaleAlpha(void) const
216 return _sfEnvScaleAlpha.getValue();
219 //! Set the value of the TextureEnvChunk::_sfEnvScaleAlpha field.
221 void TextureEnvChunkBase::setEnvScaleAlpha(const Real32 value)
223 editSField(EnvScaleAlphaFieldMask);
225 _sfEnvScaleAlpha.setValue(value);
227 //! Get the value of the TextureEnvChunk::_sfEnvSource0RGB field.
230 GLenum &TextureEnvChunkBase::editEnvSource0RGB(void)
232 editSField(EnvSource0RGBFieldMask);
234 return _sfEnvSource0RGB.getValue();
237 //! Get the value of the TextureEnvChunk::_sfEnvSource0RGB field.
239 const GLenum &TextureEnvChunkBase::getEnvSource0RGB(void) const
241 return _sfEnvSource0RGB.getValue();
244 //! Set the value of the TextureEnvChunk::_sfEnvSource0RGB field.
246 void TextureEnvChunkBase::setEnvSource0RGB(const GLenum &value)
248 editSField(EnvSource0RGBFieldMask);
250 _sfEnvSource0RGB.setValue(value);
252 //! Get the value of the TextureEnvChunk::_sfEnvSource1RGB field.
255 GLenum &TextureEnvChunkBase::editEnvSource1RGB(void)
257 editSField(EnvSource1RGBFieldMask);
259 return _sfEnvSource1RGB.getValue();
262 //! Get the value of the TextureEnvChunk::_sfEnvSource1RGB field.
264 const GLenum &TextureEnvChunkBase::getEnvSource1RGB(void) const
266 return _sfEnvSource1RGB.getValue();
269 //! Set the value of the TextureEnvChunk::_sfEnvSource1RGB field.
271 void TextureEnvChunkBase::setEnvSource1RGB(const GLenum &value)
273 editSField(EnvSource1RGBFieldMask);
275 _sfEnvSource1RGB.setValue(value);
277 //! Get the value of the TextureEnvChunk::_sfEnvSource2RGB field.
280 GLenum &TextureEnvChunkBase::editEnvSource2RGB(void)
282 editSField(EnvSource2RGBFieldMask);
284 return _sfEnvSource2RGB.getValue();
287 //! Get the value of the TextureEnvChunk::_sfEnvSource2RGB field.
289 const GLenum &TextureEnvChunkBase::getEnvSource2RGB(void) const
291 return _sfEnvSource2RGB.getValue();
294 //! Set the value of the TextureEnvChunk::_sfEnvSource2RGB field.
296 void TextureEnvChunkBase::setEnvSource2RGB(const GLenum &value)
298 editSField(EnvSource2RGBFieldMask);
300 _sfEnvSource2RGB.setValue(value);
302 //! Get the value of the TextureEnvChunk::_sfEnvSource0Alpha field.
305 GLenum &TextureEnvChunkBase::editEnvSource0Alpha(void)
307 editSField(EnvSource0AlphaFieldMask);
309 return _sfEnvSource0Alpha.getValue();
312 //! Get the value of the TextureEnvChunk::_sfEnvSource0Alpha field.
314 const GLenum &TextureEnvChunkBase::getEnvSource0Alpha(void) const
316 return _sfEnvSource0Alpha.getValue();
319 //! Set the value of the TextureEnvChunk::_sfEnvSource0Alpha field.
321 void TextureEnvChunkBase::setEnvSource0Alpha(const GLenum &value)
323 editSField(EnvSource0AlphaFieldMask);
325 _sfEnvSource0Alpha.setValue(value);
327 //! Get the value of the TextureEnvChunk::_sfEnvSource1Alpha field.
330 GLenum &TextureEnvChunkBase::editEnvSource1Alpha(void)
332 editSField(EnvSource1AlphaFieldMask);
334 return _sfEnvSource1Alpha.getValue();
337 //! Get the value of the TextureEnvChunk::_sfEnvSource1Alpha field.
339 const GLenum &TextureEnvChunkBase::getEnvSource1Alpha(void) const
341 return _sfEnvSource1Alpha.getValue();
344 //! Set the value of the TextureEnvChunk::_sfEnvSource1Alpha field.
346 void TextureEnvChunkBase::setEnvSource1Alpha(const GLenum &value)
348 editSField(EnvSource1AlphaFieldMask);
350 _sfEnvSource1Alpha.setValue(value);
352 //! Get the value of the TextureEnvChunk::_sfEnvSource2Alpha field.
355 GLenum &TextureEnvChunkBase::editEnvSource2Alpha(void)
357 editSField(EnvSource2AlphaFieldMask);
359 return _sfEnvSource2Alpha.getValue();
362 //! Get the value of the TextureEnvChunk::_sfEnvSource2Alpha field.
364 const GLenum &TextureEnvChunkBase::getEnvSource2Alpha(void) const
366 return _sfEnvSource2Alpha.getValue();
369 //! Set the value of the TextureEnvChunk::_sfEnvSource2Alpha field.
371 void TextureEnvChunkBase::setEnvSource2Alpha(const GLenum &value)
373 editSField(EnvSource2AlphaFieldMask);
375 _sfEnvSource2Alpha.setValue(value);
377 //! Get the value of the TextureEnvChunk::_sfEnvOperand0RGB field.
380 GLenum &TextureEnvChunkBase::editEnvOperand0RGB(void)
382 editSField(EnvOperand0RGBFieldMask);
384 return _sfEnvOperand0RGB.getValue();
387 //! Get the value of the TextureEnvChunk::_sfEnvOperand0RGB field.
389 const GLenum &TextureEnvChunkBase::getEnvOperand0RGB(void) const
391 return _sfEnvOperand0RGB.getValue();
394 //! Set the value of the TextureEnvChunk::_sfEnvOperand0RGB field.
396 void TextureEnvChunkBase::setEnvOperand0RGB(const GLenum &value)
398 editSField(EnvOperand0RGBFieldMask);
400 _sfEnvOperand0RGB.setValue(value);
402 //! Get the value of the TextureEnvChunk::_sfEnvOperand1RGB field.
405 GLenum &TextureEnvChunkBase::editEnvOperand1RGB(void)
407 editSField(EnvOperand1RGBFieldMask);
409 return _sfEnvOperand1RGB.getValue();
412 //! Get the value of the TextureEnvChunk::_sfEnvOperand1RGB field.
414 const GLenum &TextureEnvChunkBase::getEnvOperand1RGB(void) const
416 return _sfEnvOperand1RGB.getValue();
419 //! Set the value of the TextureEnvChunk::_sfEnvOperand1RGB field.
421 void TextureEnvChunkBase::setEnvOperand1RGB(const GLenum &value)
423 editSField(EnvOperand1RGBFieldMask);
425 _sfEnvOperand1RGB.setValue(value);
427 //! Get the value of the TextureEnvChunk::_sfEnvOperand2RGB field.
430 GLenum &TextureEnvChunkBase::editEnvOperand2RGB(void)
432 editSField(EnvOperand2RGBFieldMask);
434 return _sfEnvOperand2RGB.getValue();
437 //! Get the value of the TextureEnvChunk::_sfEnvOperand2RGB field.
439 const GLenum &TextureEnvChunkBase::getEnvOperand2RGB(void) const
441 return _sfEnvOperand2RGB.getValue();
444 //! Set the value of the TextureEnvChunk::_sfEnvOperand2RGB field.
446 void TextureEnvChunkBase::setEnvOperand2RGB(const GLenum &value)
448 editSField(EnvOperand2RGBFieldMask);
450 _sfEnvOperand2RGB.setValue(value);
452 //! Get the value of the TextureEnvChunk::_sfEnvOperand0Alpha field.
455 GLenum &TextureEnvChunkBase::editEnvOperand0Alpha(void)
457 editSField(EnvOperand0AlphaFieldMask);
459 return _sfEnvOperand0Alpha.getValue();
462 //! Get the value of the TextureEnvChunk::_sfEnvOperand0Alpha field.
464 const GLenum &TextureEnvChunkBase::getEnvOperand0Alpha(void) const
466 return _sfEnvOperand0Alpha.getValue();
469 //! Set the value of the TextureEnvChunk::_sfEnvOperand0Alpha field.
471 void TextureEnvChunkBase::setEnvOperand0Alpha(const GLenum &value)
473 editSField(EnvOperand0AlphaFieldMask);
475 _sfEnvOperand0Alpha.setValue(value);
477 //! Get the value of the TextureEnvChunk::_sfEnvOperand1Alpha field.
480 GLenum &TextureEnvChunkBase::editEnvOperand1Alpha(void)
482 editSField(EnvOperand1AlphaFieldMask);
484 return _sfEnvOperand1Alpha.getValue();
487 //! Get the value of the TextureEnvChunk::_sfEnvOperand1Alpha field.
489 const GLenum &TextureEnvChunkBase::getEnvOperand1Alpha(void) const
491 return _sfEnvOperand1Alpha.getValue();
494 //! Set the value of the TextureEnvChunk::_sfEnvOperand1Alpha field.
496 void TextureEnvChunkBase::setEnvOperand1Alpha(const GLenum &value)
498 editSField(EnvOperand1AlphaFieldMask);
500 _sfEnvOperand1Alpha.setValue(value);
502 //! Get the value of the TextureEnvChunk::_sfEnvOperand2Alpha field.
505 GLenum &TextureEnvChunkBase::editEnvOperand2Alpha(void)
507 editSField(EnvOperand2AlphaFieldMask);
509 return _sfEnvOperand2Alpha.getValue();
512 //! Get the value of the TextureEnvChunk::_sfEnvOperand2Alpha field.
514 const GLenum &TextureEnvChunkBase::getEnvOperand2Alpha(void) const
516 return _sfEnvOperand2Alpha.getValue();
519 //! Set the value of the TextureEnvChunk::_sfEnvOperand2Alpha field.
521 void TextureEnvChunkBase::setEnvOperand2Alpha(const GLenum &value)
523 editSField(EnvOperand2AlphaFieldMask);
525 _sfEnvOperand2Alpha.setValue(value);
527 //! Get the value of the TextureEnvChunk::_sfPointSprite field.
530 bool &TextureEnvChunkBase::editPointSprite(void)
532 editSField(PointSpriteFieldMask);
534 return _sfPointSprite.getValue();
537 //! Get the value of the TextureEnvChunk::_sfPointSprite field.
539 bool TextureEnvChunkBase::getPointSprite(void) const
541 return _sfPointSprite.getValue();
544 //! Set the value of the TextureEnvChunk::_sfPointSprite field.
546 void TextureEnvChunkBase::setPointSprite(const bool value)
548 editSField(PointSpriteFieldMask);
550 _sfPointSprite.setValue(value);
552 //! Get the value of the TextureEnvChunk::_sfShaderOperation field.
555 GLenum &TextureEnvChunkBase::editShaderOperation(void)
557 editSField(ShaderOperationFieldMask);
559 return _sfShaderOperation.getValue();
562 //! Get the value of the TextureEnvChunk::_sfShaderOperation field.
564 const GLenum &TextureEnvChunkBase::getShaderOperation(void) const
566 return _sfShaderOperation.getValue();
569 //! Set the value of the TextureEnvChunk::_sfShaderOperation field.
571 void TextureEnvChunkBase::setShaderOperation(const GLenum &value)
573 editSField(ShaderOperationFieldMask);
575 _sfShaderOperation.setValue(value);
577 //! Get the value of the TextureEnvChunk::_sfShaderInput field.
580 GLenum &TextureEnvChunkBase::editShaderInput(void)
582 editSField(ShaderInputFieldMask);
584 return _sfShaderInput.getValue();
587 //! Get the value of the TextureEnvChunk::_sfShaderInput field.
589 const GLenum &TextureEnvChunkBase::getShaderInput(void) const
591 return _sfShaderInput.getValue();
594 //! Set the value of the TextureEnvChunk::_sfShaderInput field.
596 void TextureEnvChunkBase::setShaderInput(const GLenum &value)
598 editSField(ShaderInputFieldMask);
600 _sfShaderInput.setValue(value);
602 //! Get the value of the TextureEnvChunk::_sfShaderOffsetScale field.
605 Real32 &TextureEnvChunkBase::editShaderOffsetScale(void)
607 editSField(ShaderOffsetScaleFieldMask);
609 return _sfShaderOffsetScale.getValue();
612 //! Get the value of the TextureEnvChunk::_sfShaderOffsetScale field.
614 Real32 TextureEnvChunkBase::getShaderOffsetScale(void) const
616 return _sfShaderOffsetScale.getValue();
619 //! Set the value of the TextureEnvChunk::_sfShaderOffsetScale field.
621 void TextureEnvChunkBase::setShaderOffsetScale(const Real32 value)
623 editSField(ShaderOffsetScaleFieldMask);
625 _sfShaderOffsetScale.setValue(value);
627 //! Get the value of the TextureEnvChunk::_sfShaderOffsetBias field.
630 Real32 &TextureEnvChunkBase::editShaderOffsetBias(void)
632 editSField(ShaderOffsetBiasFieldMask);
634 return _sfShaderOffsetBias.getValue();
637 //! Get the value of the TextureEnvChunk::_sfShaderOffsetBias field.
639 Real32 TextureEnvChunkBase::getShaderOffsetBias(void) const
641 return _sfShaderOffsetBias.getValue();
644 //! Set the value of the TextureEnvChunk::_sfShaderOffsetBias field.
646 void TextureEnvChunkBase::setShaderOffsetBias(const Real32 value)
648 editSField(ShaderOffsetBiasFieldMask);
650 _sfShaderOffsetBias.setValue(value);
652 //! Get the value of the TextureEnvChunk::_sfShaderRGBADotProduct field.
655 GLenum &TextureEnvChunkBase::editShaderRGBADotProduct(void)
657 editSField(ShaderRGBADotProductFieldMask);
659 return _sfShaderRGBADotProduct.getValue();
662 //! Get the value of the TextureEnvChunk::_sfShaderRGBADotProduct field.
664 const GLenum &TextureEnvChunkBase::getShaderRGBADotProduct(void) const
666 return _sfShaderRGBADotProduct.getValue();
669 //! Set the value of the TextureEnvChunk::_sfShaderRGBADotProduct field.
671 void TextureEnvChunkBase::setShaderRGBADotProduct(const GLenum &value)
673 editSField(ShaderRGBADotProductFieldMask);
675 _sfShaderRGBADotProduct.setValue(value);
677 //! Get the value of the TextureEnvChunk::_sfShaderCullModes field.
680 UInt8 &TextureEnvChunkBase::editShaderCullModes(void)
682 editSField(ShaderCullModesFieldMask);
684 return _sfShaderCullModes.getValue();
687 //! Get the value of the TextureEnvChunk::_sfShaderCullModes field.
689 UInt8 TextureEnvChunkBase::getShaderCullModes(void) const
691 return _sfShaderCullModes.getValue();
694 //! Set the value of the TextureEnvChunk::_sfShaderCullModes field.
696 void TextureEnvChunkBase::setShaderCullModes(const UInt8 value)
698 editSField(ShaderCullModesFieldMask);
700 _sfShaderCullModes.setValue(value);
702 //! Get the value of the TextureEnvChunk::_sfShaderConstEye field.
705 Vec3f &TextureEnvChunkBase::editShaderConstEye(void)
707 editSField(ShaderConstEyeFieldMask);
709 return _sfShaderConstEye.getValue();
712 //! Get the value of the TextureEnvChunk::_sfShaderConstEye field.
714 const Vec3f &TextureEnvChunkBase::getShaderConstEye(void) const
716 return _sfShaderConstEye.getValue();
719 //! Set the value of the TextureEnvChunk::_sfShaderConstEye field.
721 void TextureEnvChunkBase::setShaderConstEye(const Vec3f &value)
723 editSField(ShaderConstEyeFieldMask);
725 _sfShaderConstEye.setValue(value);
727 //! Get the value of the TextureEnvChunk::_sfLodBias field.
730 Real32 &TextureEnvChunkBase::editLodBias(void)
732 editSField(LodBiasFieldMask);
734 return _sfLodBias.getValue();
737 //! Get the value of the TextureEnvChunk::_sfLodBias field.
739 Real32 TextureEnvChunkBase::getLodBias(void) const
741 return _sfLodBias.getValue();
744 //! Set the value of the TextureEnvChunk::_sfLodBias field.
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.
755 Real32 TextureEnvChunkBase::getShaderOffsetMatrix(const UInt32 index) const
757 return _mfShaderOffsetMatrix[index];
761 MFReal32 ::reference TextureEnvChunkBase::editShaderOffsetMatrix(const UInt32 index)
763 editMField(ShaderOffsetMatrixFieldMask, _mfShaderOffsetMatrix);
765 return _mfShaderOffsetMatrix[index];
769 #ifdef OSG_MT_CPTR_ASPECT
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,
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);
870 const Char8 *TextureEnvChunkBase::getClassname(void)
872 return "TextureEnvChunk";
874 OSG_GEN_CONTAINERPTR(TextureEnvChunk);