Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
SceneDescription.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace ph
8{
9
14{
15public:
17
18 std::shared_ptr<ISdlResource> get(std::string_view resourceName) const override;
19 bool has(std::string_view resourceName) const override;
20
23
26
27 const Path& getWorkingDirectory() const;
28 void setWorkingDirectory(Path directory);
29
30private:
31 // Working directory is only set when it can be determined (e.g., during loading).
32 // Not saved as working directory can be different on each load.
33 Path m_workingDirectory;
34
35 RawResourceCollection m_resources;
36 RawResourceCollection m_phantomResources;
37};
38
40{
41 return m_resources;
42}
43
45{
46 return m_resources;
47}
48
50{
51 return m_phantomResources;
52}
53
55{
56 return m_phantomResources;
57}
58
60{
61 return m_workingDirectory;
62}
63
64}// end namespace ph
View for a group of SDL references.
Definition ISdlReferenceGroup.h:18
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
Definition RawResourceCollection.h:21
Data that describe a scene. Represents the result of running SDL commands.
Definition SceneDescription.h:14
const Path & getWorkingDirectory() const
Definition SceneDescription.h:59
bool has(std::string_view resourceName) const override
Check the existence of a resource reference.
Definition SceneDescription.cpp:30
RawResourceCollection & getResources()
Definition SceneDescription.h:39
std::shared_ptr< ISdlResource > get(std::string_view resourceName) const override
Get a resource reference.
Definition SceneDescription.cpp:19
void setWorkingDirectory(Path directory)
Definition SceneDescription.cpp:45
SceneDescription()
Definition SceneDescription.cpp:12
RawResourceCollection & getPhantoms()
Definition SceneDescription.h:49
The root for all renderer implementations.
Definition EEngineProject.h:6