summaryrefslogtreecommitdiff
path: root/sdl2
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-15 17:39:01 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-15 17:39:01 -0500
commit5b965d180a1f536affd51ffc2b51d5e90fbc362d (patch)
treea29771be30da5e6d7dd84be58bbcbffe49d4b98b /sdl2
parent80dd0c8e510f57774e4ec4c2246108259bb26b4d (diff)
Add SDL_GetPerformanceCounter and SDL_GetPerformanceFrequency bindings.
Diffstat (limited to 'sdl2')
-rw-r--r--sdl2/bindings.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm
index 373f3aa..a9fa17c 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -1007,6 +1007,12 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign sdl-get-ticks
uint32 "SDL_GetTicks" '())
+(define-foreign sdl-get-performance-counter
+ uint64 "SDL_GetPerformanceCounter" '())
+
+(define-foreign sdl-get-performance-frequency
+ uint64 "SDL_GetPerformanceFrequency" '())
+
;;;
;;; File I/O