Lines Matching refs:resFog
143 ResFogData* resFog = in CreateResFog() local
148 resFog->typeInfo = ResFog::TYPE_INFO; in CreateResFog()
149 resFog->m_Header.revision = ResFog::BINARY_REVISION; in CreateResFog()
150 resFog->m_Header.signature = ResFog::SIGNATURE; in CreateResFog()
152 resFog->m_UserDataDicCount = 0; in CreateResFog()
153 resFog->toUserDataDic.set_ptr( NULL ); in CreateResFog()
155 resFog->toName.set_ptr(AllocateAndCopyString(name, allocator, MAX_NAME_LENGTH)); in CreateResFog()
159 resFog->m_ChildrenTableCount = 0; in CreateResFog()
160 resFog->toChildrenTable.set_ptr( NULL ); in CreateResFog()
161 resFog->m_AnimGroupsDicCount = NULL; in CreateResFog()
162 resFog->toAnimGroupsDic.set_ptr( NULL ); in CreateResFog()
169 resFog->m_Transform = math::Transform3(scale, rotate, translate); in CreateResFog()
170 resFog->m_WorldMatrix = math::MTX34::Identity(); in CreateResFog()
171 ResTransformNode(resFog).SetBranchVisible(true); in CreateResFog()
181 resFog->toFogUpdater.set_ptr( fogUpdater ); in CreateResFog()
182 resFog->toFogSampler.set_ptr( fogSampler ); in CreateResFog()
192 return resFog; in CreateResFog()
197 Fog::DestroyResFog(os::IAllocator* allocator, ResFogData* resFog) in DestroyResFog() argument
200 NW_NULL_ASSERT( resFog ); in DestroyResFog()
202 if ( resFog->toName.to_ptr() != NULL ) in DestroyResFog()
204 allocator->Free( const_cast<char*>( resFog->toName.to_ptr() ) ); in DestroyResFog()
207 if (resFog->toFogUpdater.to_ptr() != NULL) in DestroyResFog()
209 allocator->Free( resFog->toFogUpdater.to_ptr() ); in DestroyResFog()
212 if (resFog->toFogSampler.to_ptr() != NULL) in DestroyResFog()
214 ResImageLookupTable fogSampler = ResImageLookupTable(resFog->toFogSampler.to_ptr()); in DestroyResFog()
220 allocator->Free( resFog->toFogSampler.to_ptr() ); in DestroyResFog()
223 allocator->Free( resFog ); in DestroyResFog()
425 ResFog resFog = GetResFog(); in CreateAnimGroup() local
426 NW_ASSERT(resFog.IsValid()); in CreateAnimGroup()
428 NW_ASSERT(resFog.GetAnimGroupsCount() == 1); in CreateAnimGroup()
429 anim::ResAnimGroup resAnimGroup = resFog.GetAnimGroups(0); in CreateAnimGroup()
513 ResFog resFog, in GetMemorySizeInternal() argument
526 resFog, in GetMemorySizeInternal()
533 resFog.GetAnimGroupsCount() > 0) in GetMemorySizeInternal()
536 .ResAnimGroup(resFog.GetAnimGroups(0)) in GetMemorySizeInternal()