This is a work-in-progress PR, but I opened it for the purpose of feedback and comments on how some things should be implemented. I can compile the library and run one of the sample application using Ogre 2.1, on my machine (Mac OSX 10.12).
What I did:
Added v1 namespace to ManualObject and MeshPtr
Used BaseApplication from Ogre's Samples framework
Ported the 'Primitives' sample application
What's missing/need to be done:
Cleanup/destroy ManualObject once converted to mesh
Figure out what framework the sample should use. Since OgreBites is not available in Ogre 2.1 I decided to base the samples on Ogre's Samples framework. Is this a good idea?
Should we use HLMS/PBS materials in the sample app, like I have done it now?
Organize the media files, atm. I have copied the PBS media from Ogre
Fix/Update CMake files. I have 0 experience with CMake and I'm not really sure how to organize the build configuration "the Ogre way". I've used another build system to run it on my machine.
I have created the ManualObject using (in Path::realizeMesh())
This is a work-in-progress PR, but I opened it for the purpose of feedback and comments on how some things should be implemented. I can compile the library and run one of the sample application using Ogre 2.1, on my machine (Mac OSX 10.12).
What I did:
What's missing/need to be done:
I have created the ManualObject using (in Path::realizeMesh())
Where
mObjectMemoryMgr
lives in the current class. Is that the way to do it or am I doing it wrong?Hope this PR will be useful. Cheers!
P.S The coding style is dirty (missing indentation etc.) but I'll clean that up once I get feedback on whether this PR makes sense or not.