Commit Graph

10 Commits

Author SHA1 Message Date
Robin Voetter
797ae8af88 Adapt to latest Zig master
See ziglang/zig/pull/10055
2021-12-09 00:28:17 +01:00
Robin Voetter
c6b46172c8 example: Cheap fix to make the window resizable on wl 2021-11-08 14:06:00 +01:00
Stephen Gutekanst
55c2da886b examples: do not call glfwSwapBuffers
I am porting this example to [mach-glfw](github.com/hexops/mach-glfw), and noticed that no GLFW error handling callback is registered because in my port there are a lot of GLFW errors :)

`glfwSwapBuffers` here is emitting `GLFW_NO_WINDOW_CONTEXT` errors constantly, because calling it without a valid OpenGL context is illegal. It's not needed for Vulkan.
2021-10-31 00:57:21 -07:00
Robin Voetter
79d901a3e0 Fix a whole bunch of issues exposed by ziglang/zig#9191
This also includes a workaround for the fact that @"type" refers to the builtin
and not to a variable called "type". See ziglang/zig#2897.
2021-06-24 02:11:36 +02:00
Robin Voetter
511211f038 zig fmt **.zig
This also replaces @byteOffsetOf with @offsetOf.
2021-06-13 15:15:42 +02:00
Robin Voetter
19138aa7a3 Fix missing {s} in triangle.zig 2021-01-08 19:47:56 +01:00
Robin Voetter
646d74ab6a Make graphics_context.zig naming consistent 2020-11-26 15:25:54 +01:00
Robin Voetter
0955d94ac5 Fix some synchronization in the example + remove unused import 2020-07-11 00:42:20 +02:00
Robin Voetter
3f63c476b5 Staging buffer 2020-07-06 02:35:56 +02:00
Robin Voetter
29de177c05 Rename example to triangle 2020-07-05 18:25:50 +02:00