Andre Weissflog
Andre Weissflog
Yeah, kinda known issue, don't know yet how to solve this best, even when going back to aligning the window position to the top-left, the default window size would still...
Oh - good to know :) Need to check what version of sokol_app.h those are using, might make sense to roll the fancy default-window sizing and positioning back to how...
I just rewrote the window positioning to let X11 pick the position again (however: I'm using a 'centering hint', so I'm not sure what X11 will do in a multi-monitor...
sokol_app.h basically depends on the backend API swapchain implementation (e.g. DXGI for D3D11 or WGL for GL on Windows) to throttle rendering by vsync (e.g. there is no sleep code...
Closing this as 'not planned' since there's nothing we can do on our side.
The important stuff is here: https://github.com/floooh/sokol/tree/master/bindgen (I just notice that the readme is incomplete, you'll also need to clone the new D bindings into the bindgen directory: `git clone https://github.com/floooh/sokol-d`...
Basically: - add a new line here, similar to the sokol_imgui.h entry: https://github.com/floooh/sokol/blob/7b20c1936229370277d1c61bde950bce194de584/bindgen/gen_all.py#L31 - add a new line here: https://github.com/floooh/sokol/blob/7b20c1936229370277d1c61bde950bce194de584/bindgen/gen_zig.py#L25 - ...and here: https://github.com/floooh/sokol/blob/7b20c1936229370277d1c61bde950bce194de584/bindgen/gen_zig.py#L39 - ...in the cloned sokol-zig subdirectory,...
Hmm, I get a different problem which I didn't anticipate: ``` In file included from sokol-zig/src/sokol/c/sokol_nuklear.c:6: sokol-zig/src/sokol/c/sokol_nuklear.h:322:2: error: "Please include nuklear.h before sokol_nuklear.h" #error "Please include nuklear.h before sokol_nuklear.h" ^...
Yep, cleanest solution would be to add a define in the clang call here: https://github.com/floooh/sokol/blob/7b20c1936229370277d1c61bde950bce194de584/bindgen/gen_ir.py#L102 ...maybe this works: `cmd = ['clang', '-Xclang', '-ast-dump=json', '-D', 'SOKOL_BINDGEN', '-c' ]` ...and then in...
Nice! I have a couple of requests: - the changes under src/sokol would be overwritten by the automatic bindings generation next time a commit happens to the sokol repository, can...