Nice example of C++ adding entirely new and interesting footguns on top of what it inherited from C ;)
(apparently a missing return statement has become Undefined Behaviour in C++)
Fixed a lingering bug in the sokol_app.h Linux backend:
sapp_get_clipboard_string() could return a nullptr on Linux in case of error or an empty clipboard (it's supposed to return an empty string instead):
github.com/floooh/sokol...
This is seriously awesome :)
The experimental sokol_app.h Vulkan backend now properly handles the case that the swapchain cannot be created because the reported surface width and height are 0 (the Intel Vulkan Windows driver refuses to create a swapchain object in that case).
github.com/floooh/sokol...
was going to QA a new release today but got sidetracked into shader live reloading. work in progress, available in next release.
Tinkered a bit in the 'visual cpu remix' tools so that the mouse wheel zoom is centered on the mouse pointer (also fixed a Dear ImGui debug assert that slipped through when updating to some recent Dear ImGui version)
z80: floooh.github.io/visualz80rem...
6502: floooh.github.io/visual6502re...
Ok, new sokol-sample for Slug text rendering is out! This has been ported from this Odin sample with some quick'n'dirty improvements (most notably: batching for glyphs)
tangled.org/dosha.dev/so...
WebGL2 sample: floooh.github.io/sokol-html5/...
...and WebGPU: floooh.github.io/sokol-webgpu...
I also ported two new sokol-samples back to C written by other people in other languages (credits are in the source file).
Amiga-inspired Boing sample (via sokol_gl.h): floooh.github.io/sokol-html5/...
A simple Mandelbrot zoom in a pixel shader: floooh.github.io/sokol-html5/...
Video
github.com
github.com
Andre Weissflog
Andre Weissflog
Andre Weissflog
Andre Weissflog
Andre Weissflog
Andre Weissflog
Andre Weissflog
Mattias Ljungström
Holy crap, clang in C++ mode is *evil*!
godbolt.org/z/hM7W1WPsE
gcc at least puts a `ud2` in there...
I'm soft-launching my compiler project minc today. It compiles directly to minimal native executables for x64 Windows (PE), x64/ARM64 Linux (ELF), ARM64 macOS (Mach-O), ARM64 iOS, ARM64 Android (.so), and WASM. See minc.dev
A minimal C replacement that compiles directly to native executables for Windows, Linux, macOS, iOS, and WebAssembly. No assembler, no linker, no runtime.