Cross-platform game development with developers on multiple platforms

I'm going to start a cross-platform game using OpenGL, and I'm looking for some tips. I have a partner who codes on Windows, but I code on Mac. Is it possible to intelligently design ON both at the same time?

This is our planned installation. Any feedback would be appreciated since it seems he still has a headache. Does this seem like a good way to do things?

Scheduled (for now) tools / libraries:

  • Eclipse as an IDE (so we can use the same project files, right?)
  • OpenGL to display graphics
  • SDL for data input, timers, windows, etc., but now I am also considering GLFW
  • CMake to create a project
  • Git for version control (this is already pretty convenient for me)
+7
source share
3 answers

In my opinion, the problem in creating a cross-platform project is mainly in the choice of libraries. I would suggest that OpenGL and SDL would be sufficient. I would also like to consider enabling Boost for those parts that are not provided by SDL.

As for CMake: it is a good build tool for both Windows and Mac. If you are new to CMake, check out this question , but also look at a well-known engine like Ogre and how they set up their project.

I would advise you to create good CMakeLists files, and then it really doesn't matter which IDE you use. You can use Xcode or simple Make files on your Mac using Visual Studio or Make files (or Eclipse) on Windows. Perhaps you can even set up a small Linux PC (for example, with Virtual Box and Ubuntu), and you can also test your cross-platform on Linux.

As for Git: the biggest advantage is that you have your own local repository where you can fork and merge everything you need without having to access some central repository. Make sure you keep track of some central branch.

+6
source

You have chosen your tools well. This is reasonably doable, although I'm not sure if you can use the same eclipse workspace / project or not. As for the rest of the API / tools, OpenGL and SDL will take care of the internal details of each platform (as long as you compile it on that platform). I used CMake before and found it to be a little tricky to configure, but it should work as expected. As for Git, I canโ€™t say what benefits there are, maybe someone else.

+1
source

See the OpenGL Framework cross platform. As AlgeSDK see twitter.com/algesdk

0
source

All Articles