Reestructurant la classe Options
This commit is contained in:
@@ -13,19 +13,19 @@ Debug *Debug::debug_ = nullptr;
|
||||
// [SINGLETON] Crearemos el objeto con esta función estática
|
||||
void Debug::init()
|
||||
{
|
||||
Debug::debug_ = new Debug();
|
||||
Debug::debug_ = new Debug();
|
||||
}
|
||||
|
||||
// [SINGLETON] Destruiremos el objeto con esta función estática
|
||||
void Debug::destroy()
|
||||
{
|
||||
delete Debug::debug_;
|
||||
delete Debug::debug_;
|
||||
}
|
||||
|
||||
// [SINGLETON] Con este método obtenemos el objeto y podemos trabajar con él
|
||||
Debug *Debug::get()
|
||||
{
|
||||
return Debug::debug_;
|
||||
return Debug::debug_;
|
||||
}
|
||||
|
||||
// Constructor
|
||||
@@ -73,7 +73,7 @@ void Debug::render()
|
||||
y = 0;
|
||||
for (auto l : log_)
|
||||
{
|
||||
text_->writeColored(x_ + 10, y, l, color_t(255, 255, 255));
|
||||
text_->writeColored(x_ + 10, y, l, Color(255, 255, 255));
|
||||
y += text_->getCharacterSize() + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user