Hello,
I have used Ogre a lot on PC, but I'm attempting to now use it on a Mac. After some research, it seems like I should only have a few minimal .mm objective C++ files just to launch the application and window. Then I can call into my custom C++ code and Ogre from there. Is this the correct way to go about it?
I'd like to code my game in mostly C++ so it seems that I should make a dylib with my game linking to an Ogre dylib, and having the objective C++ code call into it (and use timer callbacks to call my code, etc) and link to the dylibs and frameworks needed. Thanks for any tips.
Best way to integrate C++ game & Ogre with Objective C++?
-
- Halfling
- Posts: 78
- Joined: Mon Mar 20, 2006 11:09 pm
-
- Kobold
- Posts: 35
- Joined: Sat Jul 28, 2012 7:54 am
- x 1
Re: Best way to integrate C++ game & Ogre with Objective C++
refer to the ogre template for ios. you can download from the ogre sdk page.
it can create a sample app in xcode.
the project has one object c file "appdelegate.h" to handle GUI part. all the other files are in C++.
It is pretty easy to integrate C++ and object c.
it can create a sample app in xcode.
the project has one object c file "appdelegate.h" to handle GUI part. all the other files are in C++.
It is pretty easy to integrate C++ and object c.
-
- Halfling
- Posts: 78
- Joined: Mon Mar 20, 2006 11:09 pm
Re: Best way to integrate C++ game & Ogre with Objective C++
Ah I see it now in the template, thanks!