Skip to content

Conversation

zeozeozeo
Copy link

@zeozeozeo zeozeozeo commented Jul 16, 2025

Wrap the API of ogt_vox and ogt_voxel_meshify into an extern "C" block.

This is to prevent the C++ compiler from mangling the function names in the library, making it trivial to make bindings for opengametools in other languages (for example, Odin bindings by me: https://github.com/zeozeozeo/odin-opengametools).

@mgerhardy
Copy link
Collaborator

#ifndef OGT_VOX_API
#define OGT_VOX_API
#endif

and then adding OGT_VOX_API to each function that is exposed would be the better way imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants