Photon Engine 2.0.0-beta
A physically based renderer.
|
Information about the world being cooked. More...
#include <CookingContext.h>
Public Member Functions | |
CookingContext (const VisualWorld *world) | |
const CookingConfig & | getConfig () const |
void | setConfig (CookingConfig config) |
CookedResourceCollection * | getResources () const |
TransientResourceCache * | getCache () 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 CookedGeometry * | getCooked (const std::shared_ptr< Geometry > &geometry) const |
const TransientVisualElement * | getCached (const std::shared_ptr< Actor > &actor) const |
Friends | |
class | VisualWorld |
Information about the world being cooked.
|
explicit |
TransientResourceCache * ph::CookingContext::getCache | ( | ) | const |
const TransientVisualElement * ph::CookingContext::getCached | ( | const std::shared_ptr< Actor > & | actor | ) | const |
nullptr
if not found. const CookingConfig & ph::CookingContext::getConfig | ( | ) | const |
const CookedGeometry * ph::CookingContext::getCooked | ( | const std::shared_ptr< Geometry > & | geometry | ) | const |
nullptr
if not found. 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.
CookedResourceCollection * ph::CookingContext::getResources | ( | ) | const |
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.
void ph::CookingContext::setConfig | ( | CookingConfig | config | ) |
|
friend |