Game Development Community

Steps for switching Platforms

by Gregory Ray · in Technical Issues · 08/30/2008 (8:40 am) · 1 replies

Ok in my engine I have platformMacCarb, platformWin32, platformX86UNIX

Basically all the demos I have found just run off the demo code, which for me is set to platformMacCarb. I would like to know the process of switching out from macCarb to another platform, I know I will need to delete the platformMacCarb folder and replace it with the new platform folder, but then I would imagine there are some hooks I need to change somewhere else in the code. Where are theses hooks, what is the process of doing this?

If anyone can point me to some tutorials on this, or a video. That would be wonderful. Thank you all in advance.

-Greg

#1
08/30/2008 (11:10 am)
Just conditionally compile different files based on the platform you're building on.

If you're building on linux, just build everything you did on your mac, except take out all of platformMacCarb and put in everything in platformX86UNIX. Mostly, platform{MacCarb,Win32,X86UNIX} just implements functions declared in platform.

Gary (-;