nova clase renderInfo
afegit control de offset a les notificacions
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "core/audio/audio.hpp" // Para Audio
|
||||
#include "core/input/input.hpp" // Para Input, InputAction
|
||||
#include "core/locale/locale.hpp" // Para Locale
|
||||
#include "core/rendering/render_info.hpp" // Para RenderInfo
|
||||
#include "core/rendering/screen.hpp" // Para Screen
|
||||
#include "core/resources/resource_cache.hpp" // Para Resource
|
||||
#include "core/resources/resource_helper.hpp" // Para ResourceHelper
|
||||
@@ -142,6 +143,9 @@ Director::Director(std::vector<std::string> const& args) {
|
||||
// Initialize resources (works for both release and development)
|
||||
Resource::Cache::init();
|
||||
Notifier::init("", "8bithud");
|
||||
#ifdef _DEBUG
|
||||
RenderInfo::init(); // En DEBUG, se activa y notifica a Notifier del offset inicial
|
||||
#endif
|
||||
Console::init("8bithud");
|
||||
Screen::get()->setNotificationsEnabled(true);
|
||||
|
||||
@@ -194,6 +198,9 @@ Director::~Director() {
|
||||
#endif
|
||||
Input::destroy();
|
||||
Console::destroy();
|
||||
#ifdef _DEBUG
|
||||
RenderInfo::destroy();
|
||||
#endif
|
||||
Notifier::destroy();
|
||||
Resource::Cache::destroy();
|
||||
Resource::Helper::shutdownResourceSystem(); // Shutdown resource pack system
|
||||
|
||||
Reference in New Issue
Block a user