blob: 7c4a8ab754cd30001cc1e59e1785ed9383998f5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env amalgam
extern const glfwInit: fn() i32;
extern const glfwTerminate: fn() i32; // should return void....
extern const glfwCreateWindow: fn(x: i32, y: i32, title: str, monitor: u64, share: u64) u64;
extern const glfwWindowShouldClose: fn(window: u64) i32;
const main = fn {
glfwInit();
const window = glfwCreateWindow(50i32, 50i32, "hello, world", 0u64, 0u64);
while glfwWindowShouldClose(window) == 0 {
}
glfwTerminate();
}
|