- Timestamp:
- 05/05/08 06:58:23 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Depreciated/State/OSGTextureChunkBase.cpp
r1193 r1197 141 141 \***************************************************************************/ 142 142 143 /*! \var Image PtrTextureChunkBase::_sfImage143 /*! \var Image * TextureChunkBase::_sfImage 144 144 The texture image. 145 145 */ … … 3527 3527 TextureChunkTransitPtr fc; 3528 3528 3529 if(getClassType().getPrototype() != N ullFC)3529 if(getClassType().getPrototype() != NULL) 3530 3530 { 3531 3531 FieldContainerTransitPtr tmpPtr = … … 3543 3543 TextureChunkTransitPtr fc; 3544 3544 3545 if(getClassType().getPrototype() != N ullFC)3545 if(getClassType().getPrototype() != NULL) 3546 3546 { 3547 3547 FieldContainerTransitPtr tmpPtr = … … 3555 3555 3556 3556 //! create an empty new instance of the class, do not copy the prototype 3557 TextureChunk PtrTextureChunkBase::createEmpty(void)3558 { 3559 TextureChunk PtrreturnValue;3557 TextureChunk *TextureChunkBase::createEmpty(void) 3558 { 3559 TextureChunk *returnValue; 3560 3560 3561 3561 newPtr<TextureChunk>(returnValue, Thread::getCurrentLocalFlags()); … … 3567 3567 } 3568 3568 3569 TextureChunk PtrTextureChunkBase::createEmptyLocal(BitVector bFlags)3570 { 3571 TextureChunk PtrreturnValue;3569 TextureChunk *TextureChunkBase::createEmptyLocal(BitVector bFlags) 3570 { 3571 TextureChunk *returnValue; 3572 3572 3573 3573 newPtr<TextureChunk>(returnValue, bFlags); … … 3580 3580 FieldContainerTransitPtr TextureChunkBase::shallowCopy(void) const 3581 3581 { 3582 TextureChunk PtrtmpPtr;3582 TextureChunk *tmpPtr; 3583 3583 3584 3584 newPtr(tmpPtr, … … 3596 3596 BitVector bFlags) const 3597 3597 { 3598 TextureChunk PtrtmpPtr;3598 TextureChunk *tmpPtr; 3599 3599 3600 3600 newPtr(tmpPtr, dynamic_cast<const TextureChunk *>(this), bFlags); … … 3613 3613 TextureChunkBase::TextureChunkBase(void) : 3614 3614 Inherited(), 3615 _sfImage (N ullFC),3615 _sfImage (NULL), 3616 3616 _sfInternalFormat (GLenum(GL_NONE)), 3617 3617 _sfExternalFormat (GLenum(GL_NONE)), … … 3673 3673 TextureChunkBase::TextureChunkBase(const TextureChunkBase &source) : 3674 3674 Inherited(source), 3675 _sfImage (N ullFC),3675 _sfImage (NULL), 3676 3676 _sfInternalFormat (source._sfInternalFormat ), 3677 3677 _sfExternalFormat (source._sfExternalFormat ), … … 4981 4981 4982 4982 #ifdef OSG_MT_CPTR_ASPECT 4983 FieldContainer PtrTextureChunkBase::createAspectCopy(void) const4984 { 4985 TextureChunk PtrreturnValue;4983 FieldContainer *TextureChunkBase::createAspectCopy(void) const 4984 { 4985 TextureChunk *returnValue; 4986 4986 4987 4987 newAspectCopy(returnValue, … … 4996 4996 Inherited::resolveLinks(); 4997 4997 4998 static_cast<TextureChunk *>(this)->setImage(N ullFC);4998 static_cast<TextureChunk *>(this)->setImage(NULL); 4999 4999 5000 5000 #ifdef OSG_MT_CPTR_ASPECT … … 5012 5012 5013 5013 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 5014 DataType FieldTraits<TextureChunk Ptr>::_type("TextureChunkPtr", "TextureBaseChunkPtr");5015 #endif 5016 5017 OSG_FIELDTRAITS_GETTYPE(TextureChunk Ptr)5014 DataType FieldTraits<TextureChunk *>::_type("TextureChunkPtr", "TextureBaseChunkPtr"); 5015 #endif 5016 5017 OSG_FIELDTRAITS_GETTYPE(TextureChunk *) 5018 5018 5019 5019 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 5020 TextureChunk Ptr,5020 TextureChunk *, 5021 5021 0); 5022 5022 5023 5023 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 5024 TextureChunk Ptr,5024 TextureChunk *, 5025 5025 0); 5026 5026
