
Originally Posted by
tw1ggy
Have been playing devilz mu for almost a month, and it's been great. The android client isn't perfect, the controls are odd, using commands (d menu) is a pain but it's very convenient. And sadly this is probably the best true mmorp out for mobile lol. I really wonder how they made the client work on mobile. Classic mu on mobile could extend the game's life expectancy by a bunch more years
The base of the game is OpenGL and that's supported by every platform because the dependency of OpenGL is in the video/graphics Drivers.
The main.exe of Mu for PC uses that technology but to create the window, to manage the inputs, to work with the internet, etc. uses specific functions of the Windows OS. To make it work with other OS like Linux (Android, Ubuntu, etc.) or MAC, you should change those functionalities and use multiplatform libraries or code by yourself for the specific OS you want to support.
You can create different builds in your project according to the OS that you're ponting to using macros to separate those specific functionalities.
For example:
Code:
#ifdef COMPILE_WINDOWS
// Create a window using Windows syscalls
#else ifdef COMPILE_LINUX
// Create a window using Linux syscalls
....
#endif
// USE OPENGL FOR EVERY SO