Added Demmy Layer for testing
This commit is contained in:
parent
f6e80b5ad0
commit
6074fdc492
5
main.cpp
5
main.cpp
@ -11,13 +11,12 @@ int main()
|
||||
|
||||
constexpr const char* VERSION = "0.1.0"; // Format: 0.<release><commit_count>
|
||||
|
||||
|
||||
OX::Core core(std::string(OX_ENGINE_VERSION) + " (" + VERSION + ")");
|
||||
|
||||
core.AddLayer(std::make_unique<OX::DummyLayer>("Dummy Layer"));
|
||||
|
||||
core.AddLayer(std::make_unique<OX::Editor>("Obsidian Editor"));
|
||||
|
||||
//core.AddLayer(std::make_unique<OX::DummyLayer>("Dummy Layer"));
|
||||
|
||||
core.Init();
|
||||
core.Run();
|
||||
core.Shutdown();
|
||||
|
@ -62,7 +62,7 @@ namespace OX
|
||||
|
||||
void Init(Core &core) override
|
||||
{
|
||||
Logger::LogInfo("DummyLayer '%s' initialized.", m_name.c_str());
|
||||
Logger::LogDebug("%s Init", m_name.c_str());
|
||||
}
|
||||
|
||||
void Update(Core &core) override
|
||||
@ -75,8 +75,11 @@ namespace OX
|
||||
|
||||
void Shutdown(Core &core) override
|
||||
{
|
||||
Logger::LogInfo("DummyLayer '%s' shutting down.", m_name.c_str());
|
||||
Logger::LogDebug("%s Shutdown", m_name.c_str());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
#endif // CORE_H
|
||||
|
Loading…
Reference in New Issue
Block a user