Rebel Fork Framework
Urho3D::BakedLightMemoryCache Class Reference

Memory lightmap cache. More...

#include <Urho3D/Glow/BakedLightCache.h>

Inheritance diagram for Urho3D::BakedLightMemoryCache:
Urho3D::BakedLightCache

Public Member Functions

void StoreBakedChunk (const IntVector3 &chunk, BakedSceneChunk bakedChunk) override
 Store baked scene chunk in the cache.
ea::shared_ptr< const BakedSceneChunk > LoadBakedChunk (const IntVector3 &chunk) override
 Load baked scene chunk.
void StoreDirectLight (unsigned lightmapIndex, LightmapChartBakedDirect bakedDirect) override
 Store direct light for the lightmap chart.
ea::shared_ptr< const LightmapChartBakedDirect > LoadDirectLight (unsigned lightmapIndex) override
 Load direct light for the lightmap chart.
void StoreLightmap (unsigned lightmapIndex, BakedLightmap bakedLightmap) override
 Store baked lightmap.
ea::shared_ptr< const BakedLightmap > LoadLightmap (unsigned lightmapIndex) override
 Load baked lightmap.
Public Member Functions inherited from Urho3D::BakedLightCache
virtual ~BakedLightCache ()
 Destruct.

Private Attributes

ea::unordered_map< IntVector3, ea::shared_ptr< const BakedSceneChunk > > bakedChunkCache_
 Baking contexts cache.
ea::unordered_map< unsigned, ea::shared_ptr< const LightmapChartBakedDirect > > directLightCache_
 Direct light cache.
ea::unordered_map< unsigned, ea::shared_ptr< const BakedLightmap > > lightmapCache_
 Baked lightmaps.

Detailed Description

Memory lightmap cache.

Member Function Documentation

◆ LoadBakedChunk()

ea::shared_ptr< const BakedSceneChunk > Urho3D::BakedLightMemoryCache::LoadBakedChunk ( const IntVector3 & chunk)
overridevirtual

Load baked scene chunk.

Implements Urho3D::BakedLightCache.

◆ LoadDirectLight()

ea::shared_ptr< const LightmapChartBakedDirect > Urho3D::BakedLightMemoryCache::LoadDirectLight ( unsigned lightmapIndex)
overridevirtual

Load direct light for the lightmap chart.

Implements Urho3D::BakedLightCache.

◆ LoadLightmap()

ea::shared_ptr< const BakedLightmap > Urho3D::BakedLightMemoryCache::LoadLightmap ( unsigned lightmapIndex)
overridevirtual

Load baked lightmap.

Implements Urho3D::BakedLightCache.

◆ StoreBakedChunk()

void Urho3D::BakedLightMemoryCache::StoreBakedChunk ( const IntVector3 & chunk,
BakedSceneChunk bakedChunk )
overridevirtual

Store baked scene chunk in the cache.

Implements Urho3D::BakedLightCache.

◆ StoreDirectLight()

void Urho3D::BakedLightMemoryCache::StoreDirectLight ( unsigned lightmapIndex,
LightmapChartBakedDirect bakedDirect )
overridevirtual

Store direct light for the lightmap chart.

Implements Urho3D::BakedLightCache.

◆ StoreLightmap()

void Urho3D::BakedLightMemoryCache::StoreLightmap ( unsigned lightmapIndex,
BakedLightmap bakedLightmap )
overridevirtual

Store baked lightmap.

Implements Urho3D::BakedLightCache.


The documentation for this class was generated from the following files:
  • Urho3D/Glow/BakedLightCache.h
  • Urho3D/Glow/BakedLightCache.cpp