Tramway SDK v0.1.1
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tram::Render::LightGraph Class Reference

LightGraph resource. More...

#include <render/light.h>

Inheritance diagram for tram::Render::LightGraph:
tram::Resource

Classes

struct  Node
 

Public Member Functions

 LightGraph (name_t name)
 
void LoadFromDisk ()
 
void LoadFromMemory ()
 
void Unload ()
 
std::vector< std::pair< uint32_t, vec3 > > GetEnvironmentProbes ()
 
- Public Member Functions inherited from tram::Resource
 Resource (name_t name)
 
Resource::Status GetStatus () const
 
name_t GetName () const
 
size_t GetReferences () const
 
bool IsLoadFailed () const
 
void AddReference ()
 
void RemoveReference ()
 
void Load ()
 

Static Public Member Functions

static bool ContainsEntity (id_t entity)
 
static SphericalHarmonic LookupHarmonic (vec3 position, uint32_t layers)
 
static MaterialLookupEnvironmentMap (vec3 position)
 
static LightGraphFind (name_t name)
 

Protected Attributes

std::vector< id_tentities
 
std::vector< Nodenodes
 
std::vector< std::pair< uint32_t, uint32_t > > edges
 
- Protected Attributes inherited from tram::Resource
Status status = UNLOADED
 
name_t name
 
bool load_fail = false
 
size_t references = 0
 

Additional Inherited Members

- Public Types inherited from tram::Resource
enum  Status { UNLOADED , LOADED , READY }
 

Detailed Description

LightGraph resource.

Constructor & Destructor Documentation

◆ LightGraph()

tram::Render::LightGraph::LightGraph ( name_t  name)
inline

Member Function Documentation

◆ ContainsEntity()

bool LightGraph::ContainsEntity ( id_t  entity)
static

◆ Find()

LightGraph * LightGraph::Find ( name_t  name)
static

◆ GetEnvironmentProbes()

std::vector< std::pair< uint32_t, vec3 > > LightGraph::GetEnvironmentProbes ( )

◆ LoadFromDisk()

void LightGraph::LoadFromDisk ( )
virtual

Implements tram::Resource.

◆ LoadFromMemory()

void tram::Render::LightGraph::LoadFromMemory ( )
inlinevirtual

Implements tram::Resource.

◆ LookupEnvironmentMap()

Material * LightGraph::LookupEnvironmentMap ( vec3  position)
static

◆ LookupHarmonic()

SphericalHarmonic LightGraph::LookupHarmonic ( vec3  position,
uint32_t  layers 
)
static

◆ Unload()

void tram::Render::LightGraph::Unload ( )
inlinevirtual

Implements tram::Resource.

Member Data Documentation

◆ edges

std::vector<std::pair<uint32_t, uint32_t> > tram::Render::LightGraph::edges
protected

◆ entities

std::vector<id_t> tram::Render::LightGraph::entities
protected

◆ nodes

std::vector<Node> tram::Render::LightGraph::nodes
protected

The documentation for this class was generated from the following files: