ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

Revision:
9:3a7776a29a11
Parent:
8:5066ce13a430
Child:
11:fba7d54fd36b
--- a/Engine/Engine.cpp	Fri Mar 15 16:39:06 2019 +0000
+++ b/Engine/Engine.cpp	Fri Mar 15 20:30:01 2019 +0000
@@ -2,15 +2,15 @@
 #include "mbed.h"
 
 Engine::Engine() {
-    
+    Graphics::init();
 }
 
 Engine::~Engine() {
-    
+    Graphics::deinit();
 }
 
 void Engine::loop() {
-    while (1) {
+    while (true) {
         Input::update();
         Graphics::clear();
         
@@ -28,4 +28,4 @@
         
         wait_ms(1000 / Engine::FPS);
     }
-}
\ No newline at end of file
+}