Re:Developer tools to create spatial experiences for Apple V...
by drawkbox on Thursday June 22, 2023 @04:35AM
(#36429458)
Apple merely added these libraries to an already existing system. Objective-C/C++ and C/C++ work well together and always have, it is pretty much required as nearly all game engines (even Unity/Unreal) are C++ underneath just like all apps.
Objective-C++ has been used since iOS inception to link C++ game engines to Objective-C. All you have to do is compile with g++ or other and typically files with .m are Objective-C only and files with .mm are Objective-C++. Objective-C/C++ and interop with C/C++ actually works really well and every single game engine on the store (pretty much ever game) uses Objective-C++ to link them at a minimum.
We used lots of C++, Objective-C and even Objective C++ (g++ mixing Objective-C + C++, connecting to C++ engine) in a custom game engine that worked on mobile for lots of shipped titles. It is powerful and fun. People have been mixing assembly, C/C++, Objective-C/C++ since the 80s. These technologies so close to the metal and machine code actually work better together than most "modern" frameworks/systems.
A sample of early game engines using this link is Oolong from 2008ish, that was used on an early Quake port and many game studios had something like this for custom engines to get them to the iPhone/iPad/etc. [1]
Fun fact: Objective-C was created before C++. Objective-C all they way back to 1981 but officially 1984. [2] C++ all the way back to 1982 but officially 1985. [3]
Objective-C++ has been used since iOS inception to link C++ game engines to Objective-C. All you have to do is compile with g++ or other and typically files with .m are Objective-C only and files with .mm are Objective-C++. Objective-C/C++ and interop with C/C++ actually works really well and every single game engine on the store (pretty much ever game) uses Objective-C++ to link them at a minimum.
We used lots of C++, Objective-C and even Objective C++ (g++ mixing Objective-C + C++, connecting to C++ engine) in a custom game engine that worked on mobile for lots of shipped titles. It is powerful and fun. People have been mixing assembly, C/C++, Objective-C/C++ since the 80s. These technologies so close to the metal and machine code actually work better together than most "modern" frameworks/systems.
A sample of early game engines using this link is Oolong from 2008ish, that was used on an early Quake port and many game studios had something like this for custom engines to get them to the iPhone/iPad/etc. [1]
Fun fact: Objective-C was created before C++. Objective-C all they way back to 1981 but officially 1984. [2] C++ all the way back to 1982 but officially 1985. [3]
[1] https://code.google.com/archive/p/oolongengine/
[2] https://en.wikipedia.org/wiki/Objective-C#History
[3] https://en.wikipedia.org/wiki/C++#History