3 ms·
Since game development often requires interfacing with robust C++ libraries in graphics or physics (i.e. Bullet), I'm curious how you do that... are you either
by hellofunk 11y ago
Since game development often requires interfacing with robust C++ libraries in graphics or physics (i.e. Bullet), I'm curious how you do that... are you either not using physics or writing your own basics physics engine? Or, are you writing parts of your app in c++ just to wrap the interface in a way you can do the rest of the work in C?
- krakensden 11y agoI don't know about game libraries in particular, but in general, it's pretty common for C++ libraries to ship with a C api, and for most non-C++ languages to use that as the basis for their integration. It looks like several (https://code.google.com/p/bullet/issues/detail?id=43 https://code.google.com/p/bullet/issues/detail?id=43) people (https://github.com/bulletphysics/bullet3/issues/130 https://github.com/bulletphysics/bullet3/issues/130) have written C apis for bullet already, for that reason. Vala, .NET, LuaJIT and Rust all get mentioned.
- rhodysurf 11y agoIts trivial to expose a C interface from C++ and I would guess most game libraries have an api
- hellofunk 11y agoIt's not as trivial as you would think. I'm reading through the long discussions from the Bullet developers, and clearly it's not just a short project.