Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Core/Application.cpp

Diff revisions: vs.
  @@ -1,17 +1,25 @@
1 1 #include "Headers/Kernel.h"
2 2 #include "Headers/Application.h"
3 3 #include "Core/Headers/ParamHandler.h"
4 + #include "Hardware/Video/Headers/GFXDevice.h"
4 5
5 6 Application::Application() : _kernel(NULL),
6 7 _mainWindowId(-1),
7 8 _requestShutdown(false)
8 9 {
9 10 _threadId = boost::this_thread::get_id();
11 + ParamHandler::createInstance();
12 + Console::createInstance();
13 + Framerate::createInstance();
10 14 }
11 15
12 16 Application::~Application(){
17 + ParamHandler::DestroyInstance();
13 18 PRINT_FN(Locale::get("STOP_KERNEL"));
14 19 SAFE_DELETE(_kernel);
20 + PRINT_FN(Locale::get("STOP_APPLICATION"));
21 + Console::DestroyInstance();
22 + Framerate::DestroyInstance();
15 23 }
16 24
17 25 I8 Application::Initialize(const std::string& entryPoint,I32 argc, char **argv){
  @@ -30,6 +38,10 @@
30 38 return _mainWindowId;
31 39 }
32 40
41 + void Application::setMousePosition(D32 x, D32 y) const {
42 + _kernel->getGFXDevice().setMousePosition(x,y);
43 + }
44 +
33 45 void Application::run(){
34 46 _kernel->beginLogicLoop();
35 47 }