engine/src/ApplicationInterface.cpp

32 lines
604 B
C++
Raw Normal View History

2013-01-19 20:02:34 +00:00
#include "include/Engine.h"
namespace SE
{
TApplicationInterface::TApplicationInterface()
: IsConsoleOut(false)
{
}
void TApplicationInterface::OuterInit(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight)
{
ResourceManager->ScriptManager.BindBasicFunctions();
2013-01-27 21:31:32 +00:00
2013-01-19 20:02:34 +00:00
Renderer->InitOpenGL(screenWidth, screenHeight, matrixWidth, matrixHeight);
2013-01-27 21:31:32 +00:00
InnerInit();
2013-01-19 20:02:34 +00:00
CheckGlError();
srand(static_cast<unsigned int>(time(0)));
}
void TApplicationInterface::OuterDeinit()
{
CheckGlError("OuterDeinit");
InnerDeinit();
}
} //namespace SE