Lines Matching refs:resFog
109 ResFogData* resFog = in CreateResFog() local
114 resFog->typeInfo = ResFog::TYPE_INFO; in CreateResFog()
115 resFog->m_Header.revision = ResFog::BINARY_REVISION; in CreateResFog()
116 resFog->m_Header.signature = ResFog::SIGNATURE; in CreateResFog()
118 resFog->m_UserDataDicCount = 0; in CreateResFog()
119 resFog->toUserDataDic.set_ptr( NULL ); in CreateResFog()
121 resFog->toName.set_ptr(AllocateAndCopyString(name, allocator, MAX_NAME_LENGTH)); in CreateResFog()
125 resFog->m_ChildrenTableCount = 0; in CreateResFog()
126 resFog->toChildrenTable.set_ptr( NULL ); in CreateResFog()
127 resFog->m_AnimGroupsDicCount = NULL; in CreateResFog()
128 resFog->toAnimGroupsDic.set_ptr( NULL ); in CreateResFog()
135 resFog->m_Transform = math::Transform3(scale, rotate, translate); in CreateResFog()
136 resFog->m_WorldMatrix = math::MTX34::Identity(); in CreateResFog()
146 resFog->toFogUpdater.set_ptr( fogUpdater ); in CreateResFog()
147 resFog->toFogSampler.set_ptr( fogSampler ); in CreateResFog()
157 return resFog; in CreateResFog()
162 Fog::DestroyResFog(os::IAllocator* allocator, ResFogData* resFog) in DestroyResFog() argument
165 NW_NULL_ASSERT( resFog ); in DestroyResFog()
167 if ( resFog->toName.to_ptr() != NULL ) in DestroyResFog()
169 allocator->Free( const_cast<char*>( resFog->toName.to_ptr() ) ); in DestroyResFog()
172 if (resFog->toFogUpdater.to_ptr() != NULL) in DestroyResFog()
174 allocator->Free( resFog->toFogUpdater.to_ptr() ); in DestroyResFog()
177 if (resFog->toFogSampler.to_ptr() != NULL) in DestroyResFog()
179 ResImageLookupTable fogSampler = ResImageLookupTable(resFog->toFogSampler.to_ptr()); in DestroyResFog()
185 allocator->Free( resFog->toFogSampler.to_ptr() ); in DestroyResFog()
188 allocator->Free( resFog ); in DestroyResFog()