- Timestamp:
- 05/05/08 06:58:23 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Material/Simple/OSGSimpleTexturedMaterialBase.cpp
r1193 r1197 100 100 \***************************************************************************/ 101 101 102 /*! \var Image PtrSimpleTexturedMaterialBase::_sfImage102 /*! \var Image * SimpleTexturedMaterialBase::_sfImage 103 103 Defines the texture image. 104 104 */ … … 510 510 SimpleTexturedMaterialTransitPtr fc; 511 511 512 if(getClassType().getPrototype() != N ullFC)512 if(getClassType().getPrototype() != NULL) 513 513 { 514 514 FieldContainerTransitPtr tmpPtr = … … 526 526 SimpleTexturedMaterialTransitPtr fc; 527 527 528 if(getClassType().getPrototype() != N ullFC)528 if(getClassType().getPrototype() != NULL) 529 529 { 530 530 FieldContainerTransitPtr tmpPtr = … … 538 538 539 539 //! create an empty new instance of the class, do not copy the prototype 540 SimpleTexturedMaterial PtrSimpleTexturedMaterialBase::createEmpty(void)541 { 542 SimpleTexturedMaterial PtrreturnValue;540 SimpleTexturedMaterial *SimpleTexturedMaterialBase::createEmpty(void) 541 { 542 SimpleTexturedMaterial *returnValue; 543 543 544 544 newPtr<SimpleTexturedMaterial>(returnValue, Thread::getCurrentLocalFlags()); … … 550 550 } 551 551 552 SimpleTexturedMaterial PtrSimpleTexturedMaterialBase::createEmptyLocal(BitVector bFlags)553 { 554 SimpleTexturedMaterial PtrreturnValue;552 SimpleTexturedMaterial *SimpleTexturedMaterialBase::createEmptyLocal(BitVector bFlags) 553 { 554 SimpleTexturedMaterial *returnValue; 555 555 556 556 newPtr<SimpleTexturedMaterial>(returnValue, bFlags); … … 563 563 FieldContainerTransitPtr SimpleTexturedMaterialBase::shallowCopy(void) const 564 564 { 565 SimpleTexturedMaterial PtrtmpPtr;565 SimpleTexturedMaterial *tmpPtr; 566 566 567 567 newPtr(tmpPtr, … … 579 579 BitVector bFlags) const 580 580 { 581 SimpleTexturedMaterial PtrtmpPtr;581 SimpleTexturedMaterial *tmpPtr; 582 582 583 583 newPtr(tmpPtr, dynamic_cast<const SimpleTexturedMaterial *>(this), bFlags); … … 596 596 SimpleTexturedMaterialBase::SimpleTexturedMaterialBase(void) : 597 597 Inherited(), 598 _sfImage (N ullFC),598 _sfImage (NULL), 599 599 _sfMinFilter (GLenum(GL_LINEAR_MIPMAP_LINEAR)), 600 600 _sfMagFilter (GLenum(GL_LINEAR)), … … 606 606 SimpleTexturedMaterialBase::SimpleTexturedMaterialBase(const SimpleTexturedMaterialBase &source) : 607 607 Inherited(source), 608 _sfImage (N ullFC),608 _sfImage (NULL), 609 609 _sfMinFilter (source._sfMinFilter ), 610 610 _sfMagFilter (source._sfMagFilter ), … … 764 764 765 765 #ifdef OSG_MT_CPTR_ASPECT 766 FieldContainer PtrSimpleTexturedMaterialBase::createAspectCopy(void) const767 { 768 SimpleTexturedMaterial PtrreturnValue;766 FieldContainer *SimpleTexturedMaterialBase::createAspectCopy(void) const 767 { 768 SimpleTexturedMaterial *returnValue; 769 769 770 770 newAspectCopy(returnValue, … … 779 779 Inherited::resolveLinks(); 780 780 781 static_cast<SimpleTexturedMaterial *>(this)->setImage(N ullFC);781 static_cast<SimpleTexturedMaterial *>(this)->setImage(NULL); 782 782 783 783 … … 786 786 787 787 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 788 DataType FieldTraits<SimpleTexturedMaterial Ptr>::_type("SimpleTexturedMaterialPtr", "SimpleMaterialPtr");788 DataType FieldTraits<SimpleTexturedMaterial *>::_type("SimpleTexturedMaterialPtr", "SimpleMaterialPtr"); 789 789 #endif 790 790 791 OSG_FIELDTRAITS_GETTYPE(SimpleTexturedMaterial Ptr)791 OSG_FIELDTRAITS_GETTYPE(SimpleTexturedMaterial *) 792 792 793 793 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 794 SimpleTexturedMaterial Ptr,794 SimpleTexturedMaterial *, 795 795 0); 796 796 797 797 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 798 SimpleTexturedMaterial Ptr,798 SimpleTexturedMaterial *, 799 799 0); 800 800
