init particles, still not working

This commit is contained in:
Henrique Santiago
2011-12-07 17:58:09 -02:00
parent d4a6308705
commit 262f54ce3b
7 changed files with 204 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
#include <framework/ui/uimanager.h>
#include <framework/ui/uiwidget.h>
#include <framework/graphics/graphics.h>
#include <framework/graphics/particlesmanager.h>
#include <framework/luascript/luainterface.h>
Application *g_app = nullptr;
@@ -207,12 +208,16 @@ void Application::poll()
// poll application genareted events
g_dispatcher.poll();
g_particlesManager.update();
}
void Application::render()
{
// everything is rendered by UI components
g_ui.render();
g_particlesManager.render();
}
void Application::resize(const Size& size)