mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 07:57:12 +01:00
introduce matrix class and use it
This commit is contained in:
@@ -199,16 +199,13 @@ void Application::exit()
|
||||
void Application::poll()
|
||||
{
|
||||
// poll input events
|
||||
if(m_appFlags & Fw::AppEnableGraphics)
|
||||
if(m_appFlags & Fw::AppEnableGraphics) {
|
||||
g_window.poll();
|
||||
g_particleManager.update();
|
||||
}
|
||||
|
||||
// poll network events
|
||||
Connection::poll();
|
||||
|
||||
// poll application genareted events
|
||||
g_dispatcher.poll();
|
||||
|
||||
g_particleManager.update();
|
||||
}
|
||||
|
||||
void Application::render()
|
||||
@@ -221,8 +218,8 @@ void Application::render()
|
||||
|
||||
void Application::resize(const Size& size)
|
||||
{
|
||||
g_ui.resize(size);
|
||||
g_graphics.resize(size);
|
||||
g_ui.resize(size);
|
||||
}
|
||||
|
||||
void Application::inputEvent(const InputEvent& event)
|
||||
|
||||
Reference in New Issue
Block a user