Cleaning up

This commit is contained in:
vladislav.khorev committed 2013-02-06 20:45:00 +00:00
1 parent 5cb87b3303
commit d412a88f20
8 files changed
+81 -90

No files matched your search

-38
View File
@@ -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
-1
View File
@@ -8,7 +8,6 @@ namespace SE
void CreateEngine()
{
DestroyEngine();
Console = new TJavaConsole;
+35
View File
@@ -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()
{