aboutsummaryrefslogtreecommitdiff
path: root/platform.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 12:53:46 +1000
committerquou <quou@disroot.org>2023-05-07 12:54:06 +1000
commit5f341eacdf0d75a4b334969a2d8a4701d61e4d9e (patch)
treeee3a4c44b92e975530e1e6fed18c8852a6f70a93 /platform.c
parent5ef6a71e935e2c3d1e5f9828e8cdbd78403a06a0 (diff)
Add waves and stuff.
Diffstat (limited to 'platform.c')
-rw-r--r--platform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform.c b/platform.c
index 940e57f..9bd5300 100644
--- a/platform.c
+++ b/platform.c
@@ -187,6 +187,10 @@ static int ww, wh, bb_pitch, ntw, nth;
static int to_sleep, begin_time, end_time;
static SDL_Joystick* joysticks[max_joysticks];
+int platform_get_time() {
+ return SDL_GetTicks();
+}
+
static void fit_texture(int w, int h) {
ntw = renderer_w;
nth = renderer_h;