SiputBiru/sbgl ? reverse-engineered prompt

Reverse engineered prompt

Build me a small C99 graphics library called SBgl that gives me a clean way to open a window, start a frame, draw, and present it with Vulkan 1.3.

I want it to feel simple from the outside, with a context based API, no hidden global state, and handle based resources so it’s easy to manage buffers, shaders, and pipelines. Please make the basic flow work first, initialize with a window size and title, run a main loop, clear the screen, and shut down cleanly. If you can, include support for Linux windowing through Wayland and X11, and keep Win32 support in mind too.

Set it up as a CMake project, make the examples build, and include a tiny hello window sample plus enough tests or docs so I can see how to use it. If you need to check current Vulkan or platform docs online while wiring it up, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab