From a00c0aab1eb5a7a55bef8ca08115bdd722ab5699 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sun, 16 May 2021 19:50:15 -0400 Subject: Moved the frontend directory up so that it no longer exists --- frontend/shared_cpp/MainLoop.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 frontend/shared_cpp/MainLoop.h (limited to 'frontend/shared_cpp/MainLoop.h') diff --git a/frontend/shared_cpp/MainLoop.h b/frontend/shared_cpp/MainLoop.h deleted file mode 100644 index 2573bb8..0000000 --- a/frontend/shared_cpp/MainLoop.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -EM_BOOL loop(double time, void* loop); - -struct MainLoop { - bool isRunning = false; - double lastTime = 0, elapsedTime = 0; - int numFrames = 0; - void (*updateFunc)(float dtSeconds, void *userData); - - void run(void (*cb)(float dtSeconds, void *userData)) { - isRunning = true; - lastTime = 0; - elapsedTime = 0; - numFrames = 0; - updateFunc = cb; - - emscripten_request_animation_frame_loop(loop, this); - } - - void stop() { - isRunning = false; - } -}; \ No newline at end of file -- cgit v1.2.1