-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
denis
authored and
denis
committed
Nov 10, 2024
1 parent
6bdeb55
commit 6d405fc
Showing
34 changed files
with
338 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,81 @@ | ||
#include "../../include/GlobalData/GlobalData.h" | ||
|
||
std::shared_ptr<Prisma::Scene> Prisma::GlobalData::currentGlobalScene() const | ||
{ | ||
return m_currentGlobalScene; | ||
} | ||
|
||
void Prisma::GlobalData::currentGlobalScene(const std::shared_ptr<Scene>& currentGlobalScene) | ||
{ | ||
m_currentGlobalScene = currentGlobalScene; | ||
} | ||
|
||
std::shared_ptr<Prisma::FBO> Prisma::GlobalData::fboTarget() const | ||
{ | ||
return m_fboTarget; | ||
} | ||
|
||
void Prisma::GlobalData::fboTarget(const std::shared_ptr<FBO>& fboTarget) | ||
{ | ||
m_fboTarget = fboTarget; | ||
} | ||
|
||
std::unordered_map<uint64_t, Prisma::Component*>& Prisma::GlobalData::sceneComponents() | ||
{ | ||
return m_sceneComponents; | ||
} | ||
|
||
void Prisma::GlobalData::sceneComponents(const std::unordered_map<uint64_t, Component*>& sceneComponents) | ||
{ | ||
m_sceneComponents = sceneComponents; | ||
} | ||
|
||
std::unordered_map<uint64_t, std::shared_ptr<Prisma::Node>>& Prisma::GlobalData::sceneNodes() | ||
{ | ||
return m_sceneNodes; | ||
} | ||
|
||
void Prisma::GlobalData::sceneNodes(const std::unordered_map<uint64_t, std::shared_ptr<Node>>& sceneNodes) | ||
{ | ||
m_sceneNodes = sceneNodes; | ||
} | ||
|
||
glm::mat4 Prisma::GlobalData::currentProjection() | ||
{ | ||
return m_currentProjection; | ||
} | ||
|
||
void Prisma::GlobalData::currentProjection(const glm::mat4& currentProjection) | ||
{ | ||
m_currentProjection = currentProjection; | ||
} | ||
|
||
Prisma::Texture& Prisma::GlobalData::defaultBlack() | ||
{ | ||
return m_defaultBlack; | ||
} | ||
|
||
void Prisma::GlobalData::defaultBlack(const Texture& defaultBlack) | ||
{ | ||
m_defaultBlack = defaultBlack; | ||
} | ||
|
||
Prisma::Texture& Prisma::GlobalData::defaultWhite() | ||
{ | ||
return m_defaultWhite; | ||
} | ||
|
||
void Prisma::GlobalData::defaultWhite(const Texture& defaultWhite) | ||
{ | ||
m_defaultWhite = defaultWhite; | ||
} | ||
|
||
Prisma::Texture& Prisma::GlobalData::defaultNormal() | ||
{ | ||
return m_defaultNormal; | ||
} | ||
|
||
namespace Prisma | ||
void Prisma::GlobalData::defaultNormal(const Texture& defaultNormal) | ||
{ | ||
std::shared_ptr<Scene> currentGlobalScene = nullptr; | ||
glm::mat4 currentProjection = glm::mat4(1.0f); | ||
std::unordered_map<uint64_t, std::shared_ptr<Node>> sceneNodes; | ||
Texture defaultBlack; | ||
Texture defaultWhite; | ||
Texture defaultNormal; | ||
std::shared_ptr<FBO> fboTarget = nullptr; | ||
std::unordered_map<uint64_t, Component*> sceneComponents; | ||
m_defaultNormal = defaultNormal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.