Cleaning up
This commit is contained in:
1 parent
5cb87b3303
commit
d412a88f20
8 files changed
+81
-90
No files matched your search
@@ -1,38 +0,0 @@
|
||||
#include "include/Engine.h"
|
||||
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
TApplicationInterface::TApplicationInterface()
|
||||
: IsConsoleOut(false)
|
||||
{
|
||||
}
|
||||
|
||||
TApplicationInterface::~TApplicationInterface()
|
||||
{
|
||||
}
|
||||
|
||||
void TApplicationInterface::OuterInit(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight)
|
||||
{
|
||||
ResourceManager->MainThreadId = boost::this_thread::get_id();
|
||||
|
||||
ResourceManager->ScriptManager.BindBasicFunctions();
|
||||
|
||||
Renderer->InitOpenGL(screenWidth, screenHeight, matrixWidth, matrixHeight);
|
||||
|
||||
InnerInit();
|
||||
|
||||
CheckGlError();
|
||||
|
||||
srand(static_cast<unsigned int>(time(0)));
|
||||
}
|
||||
|
||||
void TApplicationInterface::OuterDeinit()
|
||||
{
|
||||
CheckGlError("OuterDeinit");
|
||||
InnerDeinit();
|
||||
}
|
||||
|
||||
|
||||
} //namespace SE
|
||||
@@ -8,7 +8,6 @@ namespace SE
|
||||
|
||||
void CreateEngine()
|
||||
{
|
||||
DestroyEngine();
|
||||
|
||||
Console = new TJavaConsole;
|
||||
|
||||
|
||||
@@ -60,6 +60,41 @@ TResourceManager::~TResourceManager()
|
||||
|
||||
}
|
||||
|
||||
//==================================================
|
||||
//============ TApplicationAncestor ================
|
||||
//==================================================
|
||||
|
||||
TApplicationAncestor::TApplicationAncestor()
|
||||
: IsConsoleOut(false)
|
||||
{
|
||||
}
|
||||
|
||||
TApplicationAncestor::~TApplicationAncestor()
|
||||
{
|
||||
}
|
||||
|
||||
void TApplicationAncestor::OuterInit(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight)
|
||||
{
|
||||
ResourceManager->MainThreadId = boost::this_thread::get_id();
|
||||
|
||||
ResourceManager->ScriptManager.BindBasicFunctions();
|
||||
|
||||
Renderer->InitOpenGL(screenWidth, screenHeight, matrixWidth, matrixHeight);
|
||||
|
||||
InnerInit();
|
||||
|
||||
CheckGlError();
|
||||
|
||||
srand(static_cast<unsigned int>(time(0)));
|
||||
}
|
||||
|
||||
|
||||
void TApplicationAncestor::OuterDeinit()
|
||||
{
|
||||
CheckGlError("OuterDeinit");
|
||||
InnerDeinit();
|
||||
}
|
||||
|
||||
|
||||
void TApplicationAncestor::OuterDraw()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user