jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
375 stars 36 forks source link

ogt_vox: split fatal errors and warnings #58

Open mgerhardy opened 1 year ago

mgerhardy commented 1 year ago

some ogt_asserts are no hard errors but only a warning. This PR should allow the user code to provide a ogt_warn functionality to prevent triggering an assert in such a scenario.

By default ogt_warn is set to ogt_assert.

Fixes issue #52

mgerhardy commented 1 year ago

I've left it as draft for now - because the locations of ogt_warn are open for discussion.