I hope this has a technical (rather than a religious) answer, but I wonder if I should use Objective-C or C++ to create an OpenGL ES Application on the iPad?
As the ultimate goal would be to compile it on Windows and OS X as well, I’m inclined to use C++ (and only use ObjC for the stuff that I have to: App Delegate etc.), but I have zero experience with Objective-C Development.
Can I interact with C++ Classes from Objective-C? Is there any compelling reason to use ObjC over C++?
Or should I just use plain old C?
You can, it’s called Objective-C++ and all you need to do is ensure your source files have a
.mmextension for them to be treated as mixed Objective-C/C++ source files.That said, generally speaking if you’re aim is cross platform GLES support, try and write it in C++ for the common things, and anything else, Objective-C (where you need to do things like set up your EAGLLayer etc.). This is likely to work out the best for your purposes, as I presume you’re already familiar with C++.