Forum Discussion
Anonymous
6 years agoWhy it seems it's not possible to use CPP in the NDK sources ?
Hi, I am still messing up with code and trying to get my things work. My stuff is entirely done in CPP however I noticed all sources in the NDK samples are plain C-99 .. If I take the VrCu...
Anonymous
6 years agoWell .. in some way I managed to get it working ..
Basically I ended up with a "C wrapper" and quite a few " extern "C" { } " and #ifdef _csplus and stuff like that, I still don't know why the sources are not "natively in CPP" but I wonder if I has to do with the JNI interface ?
So yeah seems to be fine as long as you keep the native_glue and such in pure C calling just pure C functions from there leaving the CPP stuff "outside".
Today 15:57 GMT first time I manage to actually run some Vulkan code on the Quest.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years agoAnonymous
- 9 months ago