Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Diff: Engine/Engine.cpp
- 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
+}
