zig-sfml-wrapper
zig-sfml-wrapper copied to clipboard
What if some ressources could be on the stack?
It's kind of sad that everything needs allocation and thus a try to create it and a destroy. It would be great if some things could be on the stack rather than this way. It would probably need opening up more of the csfml to us, and probably mean touching the implementation, as opposed to just wrapping things. This issue is more like a reminder to look into this.
I would need to figure out the data layout of those things from the c++ code and then imitate it. It wouldn't be very portable but I could try it.
This doesn't seem to be possible without weird hacks