Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::CookingContext Class Referencefinal

Information about the world being cooked. More...

#include <CookingContext.h>

Public Member Functions

 CookingContext (const VisualWorld *world)
 
const CookingConfiggetConfig () const
 
void setConfig (CookingConfig config)
 
CookedResourceCollectiongetResources () const
 
TransientResourceCachegetCache () const
 
math::AABB3D getRootActorsBound () const
 Bounds actors cooked in the first level. The bound is only available after the first level has done cooking.
 
math::AABB3D getLeafActorsBound () const
 Bounds actors from levels finished cooking. The bound is updated every time a level has done cooking. Generally this bound only grows as it encapsulates all previous levels including the root level.
 
const CookedGeometrygetCooked (const std::shared_ptr< Geometry > &geometry) const
 
const TransientVisualElementgetCached (const std::shared_ptr< Actor > &actor) const
 

Friends

class VisualWorld
 

Detailed Description

Information about the world being cooked.

Constructor & Destructor Documentation

◆ CookingContext()

ph::CookingContext::CookingContext ( const VisualWorld * world)
explicit

Member Function Documentation

◆ getCache()

TransientResourceCache * ph::CookingContext::getCache ( ) const

◆ getCached()

const TransientVisualElement * ph::CookingContext::getCached ( const std::shared_ptr< Actor > & actor) const
Returns
Pointer to the cooked actor. nullptr if not found.

◆ getConfig()

const CookingConfig & ph::CookingContext::getConfig ( ) const

◆ getCooked()

const CookedGeometry * ph::CookingContext::getCooked ( const std::shared_ptr< Geometry > & geometry) const
Returns
Pointer to the cooked geometry. nullptr if not found.

◆ getLeafActorsBound()

math::AABB3D ph::CookingContext::getLeafActorsBound ( ) const

Bounds actors from levels finished cooking. The bound is updated every time a level has done cooking. Generally this bound only grows as it encapsulates all previous levels including the root level.

◆ getResources()

CookedResourceCollection * ph::CookingContext::getResources ( ) const

◆ getRootActorsBound()

math::AABB3D ph::CookingContext::getRootActorsBound ( ) const

Bounds actors cooked in the first level. The bound is only available after the first level has done cooking.

◆ setConfig()

void ph::CookingContext::setConfig ( CookingConfig config)

Friends And Related Symbol Documentation

◆ VisualWorld

friend class VisualWorld
friend

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