This commit is contained in:
agra
2026-03-03 16:18:58 +02:00
parent 23f444033a
commit 0336f361c7
7 changed files with 181 additions and 33 deletions

View File

@@ -333,6 +333,8 @@ SDL_GL_SetSwapInterval :: (interval: s32) -> bool #foreign sdl3;
SDL_GL_GetProcAddress :: (proc: [:0]u8) -> *void #foreign sdl3;
SDL_PollEvent :: (event: *SDL_Event) -> bool #foreign sdl3;
SDL_GetTicks :: () -> u64 #foreign sdl3;
SDL_GetPerformanceCounter :: () -> u64 #foreign sdl3;
SDL_GetPerformanceFrequency :: () -> u64 #foreign sdl3;
SDL_Delay :: (ms: u32) -> void #foreign sdl3;
SDL_GetWindowDisplayScale :: (window: *void) -> f32 #foreign sdl3;
SDL_GetWindowSize :: (window: *void, w: *s32, h: *s32) -> bool #foreign sdl3;

5
examples/modules/test.sx Normal file
View File

@@ -0,0 +1,5 @@
assert :: (condition: bool) {
if !condition {
out("assertion failed\n");
}
}