sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gztest_dlopen/config.cpp raw
extern "C" {
struct Color {
float r, g, b, a;
};
// this is what we will reload dynamically
Color get_background_color()
{
// change this while program runs, rebuild .so, it will update
return {0.7f, 0.1f, 0.2f, 1.0f};
}
}