|
|
|
@ -7,11 +7,11 @@
|
|
|
|
******************************************************************************/
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
#include "core.h"
|
|
|
|
#include "Version.h"
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Sub Systems
|
|
|
|
// Sub Systems
|
|
|
|
#include <graphics/window.h>
|
|
|
|
#include <graphics/window.h>
|
|
|
|
#include <graphics/OGLGraphics.h>
|
|
|
|
#include <graphics/glGraphics.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace lunarium
|
|
|
|
namespace lunarium
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -37,7 +37,6 @@ namespace lunarium
|
|
|
|
if (!mpInstance)
|
|
|
|
if (!mpInstance)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger::Log(LogCategory::CORE, LogLevel::INFO, "Lunarium is shutting down!");
|
|
|
|
Logger::Log(LogCategory::CORE, LogLevel::INFO, "Lunarium is shutting down!");
|
|
|
|
|
|
|
|
|
|
|
|
// Shutdown subsystems
|
|
|
|
// Shutdown subsystems
|
|
|
|
@ -50,10 +49,10 @@ namespace lunarium
|
|
|
|
delete mpInstance->mpArgs;
|
|
|
|
delete mpInstance->mpArgs;
|
|
|
|
mpInstance->mpArgs = nullptr;
|
|
|
|
mpInstance->mpArgs = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpInstance->mbIsInit = false;
|
|
|
|
delete mpInstance;
|
|
|
|
delete mpInstance;
|
|
|
|
mpInstance = nullptr;
|
|
|
|
mpInstance = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
mpInstance->mbIsInit = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Core::Initialize(int argc, char** argv)
|
|
|
|
void Core::Initialize(int argc, char** argv)
|
|
|
|
@ -133,6 +132,9 @@ namespace lunarium
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DEBUG
|
|
|
|
|
|
|
|
mpGraphics->SetClearColor(Color(0.0f, 0.0f, 0.0f, 1.0f));
|
|
|
|
|
|
|
|
|
|
|
|
mbIsInit = true;
|
|
|
|
mbIsInit = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|