aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Game/je_application.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-18 22:32:55 +0800
committerchai <chaifix@163.com>2018-11-18 22:32:55 +0800
commitfc7b4579e49aaeecc81919e247e03f68bd5abfd4 (patch)
tree6547b8c7d3632591358267d06006eddc53216105 /src/libjin/Game/je_application.cpp
parent3905924fc35f92e5092576c3f6e8fc5db7588cde (diff)
*粒子系统
Diffstat (limited to 'src/libjin/Game/je_application.cpp')
-rw-r--r--src/libjin/Game/je_application.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libjin/Game/je_application.cpp b/src/libjin/Game/je_application.cpp
index a5a8812..723a809 100644
--- a/src/libjin/Game/je_application.cpp
+++ b/src/libjin/Game/je_application.cpp
@@ -6,20 +6,21 @@
#include "../time/je_timer.h"
#include "../input/je_event.h"
#include "../graphics/je_window.h"
+#include "../graphics/je_gl.h"
#include "../math/je_math.h"
#include "je_application.h"
+using namespace JinEngine::Graphics;
+using namespace JinEngine::Input;
+using namespace JinEngine::Time;
+using namespace JinEngine::Math;
+
namespace JinEngine
{
namespace Game
{
- using namespace JinEngine::Graphics;
- using namespace JinEngine::Input;
- using namespace JinEngine::Time;
- using namespace JinEngine::Math;
-
Application::Application() :_running(true) {};
/* default game loop */
@@ -49,6 +50,7 @@ namespace JinEngine
dt = current - previous;
if (_onUpdate != nullptr)
_onUpdate(dt);
+ glClear(GL_COLOR_BUFFER_BIT);
if (_onDraw != nullptr)
_onDraw();
wnd->swapBuffers();