|
Photon Engine 2.0.0-beta
A physically based renderer.
|
Data that describe a scene. Represents the result of running SDL commands. More...
#include <SceneDescription.h>
Public Member Functions | |
| SceneDescription () | |
| std::shared_ptr< ISdlResource > | get (std::string_view resourceName) const override |
| Get a resource reference. | |
| bool | has (std::string_view resourceName) const override |
| Check the existence of a resource reference. | |
| RawResourceCollection & | getResources () |
| const RawResourceCollection & | getResources () const |
| RawResourceCollection & | getPhantoms () |
| const RawResourceCollection & | getPhantoms () const |
| const Path & | getWorkingDirectory () const |
| void | setWorkingDirectory (Path directory) |
Public Member Functions inherited from ph::ISdlReferenceGroup | |
| PH_DEFINE_INLINE_RULE_OF_5_MEMBERS_NO_DTOR (ISdlReferenceGroup) | |
| virtual | ~ISdlReferenceGroup ()=default |
| template<typename T > | |
| std::shared_ptr< T > | getTyped (std::string_view resourceName) const |
Get a resource reference of type T with name resourceName. | |
| template<typename T > | |
| bool | hasTyped (std::string_view resourceName) const |
Check the existence of resource of type T. | |
Data that describe a scene. Represents the result of running SDL commands.
| ph::SceneDescription::SceneDescription | ( | ) |
|
overridevirtual |
Get a resource reference.
| resourceName | The name of the resource. |
nullptr if not found. Implements ph::ISdlReferenceGroup.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Check the existence of a resource reference.
| resourceName | The name of the resource. |
Implements ph::ISdlReferenceGroup.
| void ph::SceneDescription::setWorkingDirectory | ( | Path | directory | ) |