aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Game/je_application.cpp
diff options
context:
space:
mode:
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();