MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getPersistInfo

Method getPersistInfo

Engine/source/lighting/basic/blTerrainSystem.cpp:618–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618bool blTerrainProxy::getPersistInfo(PersistInfo::PersistChunk * info)
619{
620 if(!Parent::getPersistInfo(info))
621 return(false);
622
623 blTerrainChunk * chunk = dynamic_cast<blTerrainChunk*>(info);
624 AssertFatal(chunk, "blTerrainProxy::getPersistInfo: invalid info chunk!");
625
626 TerrainBlock * terrain = getObject();
627 if(!terrain || !terrain->getLightMap())
628 return(false);
629
630 if(chunk->mLightmap) delete chunk->mLightmap;
631
632 chunk->mLightmap = new GBitmap(*terrain->getLightMap());
633
634 return(true);
635}
636
637bool blTerrainProxy::supportsShadowVolume()
638{

Callers

nothing calls this directly

Calls 1

getLightMapMethod · 0.80

Tested by

no test coverage detected