aboutsummaryrefslogtreecommitdiff
path: root/sdl2/timer.ha
diff options
context:
space:
mode:
authorVlad-Stefan Harbuz <vlad@vladh.net>2022-02-07 13:08:52 +0100
committerDrew DeVault <sir@cmpwn.com>2022-02-07 18:56:08 +0100
commit2276dc7ad067f7af7504783239103c1abd7b4433 (patch)
tree20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/timer.ha
parentcorrect indentation (diff)
downloadhare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'sdl2/timer.ha')
-rw-r--r--sdl2/timer.ha10
1 files changed, 5 insertions, 5 deletions
diff --git a/sdl2/timer.ha b/sdl2/timer.ha
index 1b315ec..d90511a 100644
--- a/sdl2/timer.ha
+++ b/sdl2/timer.ha
@@ -4,7 +4,7 @@
//
// Returns an unsigned 32-bit value representing the number of milliseconds
// since the SDL library initialized.
-export @symbol("SDL_GetTicks") fn get_ticks() u32;
+export @symbol("SDL_GetTicks") fn SDL_GetTicks() u32;
// Get the current value of the high resolution counter.
//
@@ -12,21 +12,21 @@ export @symbol("SDL_GetTicks") fn get_ticks() u32;
//
// The counter values are only meaningful relative to each other. Differences
// between values can be converted to times by using
-// [[getperformancefrequency]].
+// [[SDL_GetPerformanceFrequency]].
//
// Returns the current counter value.
-export @symbol("SDL_GetPerformanceCounter") fn get_performance_counter() u64;
+export @symbol("SDL_GetPerformanceCounter") fn SDL_GetPerformanceCounter() u64;
// Get the count per second of the high resolution counter.
//
// Returns a platform-specific count per second.
-export @symbol("SDL_GetPerformanceFrequency") fn get_performance_frequency() u64;
+export @symbol("SDL_GetPerformanceFrequency") fn SDL_GetPerformanceFrequency() u64;
// Wait a specified number of milliseconds before returning.
//
// This function waits a specified number of milliseconds before returning. It
// waits at least the specified time, but possibly longer due to OS
// scheduling.
-export @symbol("SDL_Delay") fn delay(ms: u32) void;
+export @symbol("SDL_Delay") fn SDL_Delay(ms: u32) void;
// TODO: Timers