floooh/sokol-zig
View on GitHub ↗ ★ 742 C
Zig bindings for the sokol headers (https://github.com/floooh/sokol)
11 mentions on Hacker News by 2 people: 0 stories, 11 comments · first 2019-10-02 · latest 2026-02-20
20082026
-
…same issues as Rust, but at least the compiler is able to infer the nested struct types via `.{ }`: https://github.com/floooh/sokol-zig/blob/17beeab59a64b12c307... I don't have C++ code around, but compared to C99 it has the following…
comment by flohofwoe · 2026-02-20 · in Defer available in gcc and clang -
…to this C99 code: https://github.com/floooh/sokol-samples/blob/b3bc55c4411fa03... ...is this: https://github.com/floooh/sokol-zig/blob/a4b3c287fadd153a504... ...note how part of the initialization had to be moved out into separate…
comment by flohofwoe · 2024-01-02 · in Zig cookbook: collection of simple Zig programs that demonstrate good practices -
…headers too: https://github.com/floooh/sokol ...there are also auto-generated Zig bindings btw ;) https://github.com/floooh/sokol-zig
comment by flohofwoe · 2023-04-29 · in Learn WebGPU -
…options, I really want to do the build description in a loop instead of a data tree. (for example: https://github.com/floooh/sokol-zig/blob/3f978e58712f9eb029b... ) PS: apparently Meson build scripts can also have variables, conditions and…
comment by flohofwoe · 2023-04-14 · in Zig build system -
…can directly include C headers) or use the header to auto-generate the bindings. For example: - https://github.com/floooh/sokol-zig - https://github.com/floooh/sokol-nim - https://github.com/floooh/sokol-odin These are all auto-generated…
comment by flohofwoe · 2022-10-13 · in Tinyphysicsengine: Minimalist 3D C99 single-header physics engine -
…stuff in Zig :) [0] https://github.com/floooh/pacman.zig [1] https://github.com/floooh/sokol [2] https://github.com/floooh/sokol-zig [3] https://github.com/schellingb/wajic
comment by flohofwoe · 2022-07-13 · in Zig and WASM -
…plug) Here's another cross-platform alternative, auto-generated Zig bindings to the Sokol headers: https://github.com/floooh/sokol-zig This is quite a bit slimmer than using one of the WebGPU libraries like wgpu-rs or Dawn, because…
comment by flohofwoe · 2021-10-18 · in Mach Engine: The Future of Graphics (With Zig) -
…the git repo. Zig and Nim are sort-of "in progress" (for instance, see the sokol-zig bindings here: https://github.com/floooh/sokol-zig/ )
comment by flohofwoe · 2021-03-11 · in A guide to Windows application development using w64devkit -
…...and here's an example of such semi-auto-generated Zig bindings: https://github.com/floooh/sokol-zig/tree/master/src/sokol ...for instance note the "injected" helper functions here: https://github.com/floooh/sokol-zig/blob/
comment by flohofwoe · 2021-01-24 · in Making Win32 APIs More Accessible to More Languages -
…a Zig port of his lightweight Sokol graphics API and b) has a penchant for retro consoles. https://github.com/floooh/sokol-zig
comment by mrec · 2019-10-02 · in Making a RISC-V Operating System Using Rust