![Smile :)](./images/smilies/icon_smile.gif)
Decide (if not done yet) witch plaforms to support
Moderator: Transport Empire Moderators
-
- Traffic Manager
- Posts: 213
- Joined: 05 Apr 2004 08:38
- Location: Ede, The Netherlands
- Contact:
Aren we going to use an excisting 3D environment? SDL is just a set of libraries and you have to program a lot to make a good 3D environment and there are a lot of good environments which are multiplatform.Hellfire wrote:Well, if we're going to use SDL (and there's a 95% chance that we willChrisCF wrote:If anything, the main problem I see is going to be endian-ness), that should not be a really big problem. SDL provides macro's to ensure the correct endian-ness of pieces of memory.
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
Why is windows so different?ChrisCF wrote:Still, IMO our target platforms should be "anything it'll build on". With the exception of Windows, and ancient versions of Mac OS, we should require a minimum of porting between different systems. If anything, the main problem I see is going to be endian-ness - making sure that the code does not depend too heavily on byte order (lots of defines and alternate functions ...). More often than not, if it will build on one Linux distribution, it'll probably build on another. If it builds and works on lots of different distributions with different software configurations, it'll likely work on other *nix flavours too. Windows is likely to pose a major problem, due to the fact that it's comlpetely different to almost everything else.
If you don't make to many hacks and rely on os dependend functions, (then it wouldn't work on mac too) you should be able to cross compile.
I made two wrapper function for zugspiel, and I can compile it under window. However the Zugspiel GUI System use the fact that on linux the gl window is behind fltk, thats not true on windows.
If you don't build to clever workarounds most stuff should work.
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
![Image](https://grfcrawler.tt-forums.net/artwork/stillsearchingtrygrfcrawler.png)
![Image](https://grfcrawler.tt-forums.net/artwork/stillsearchingtrygrfcrawler.png)
if there are no endian problems, it can be ported to macOSX pretty fast
if #include SDL.h is not used in the file with main, it needs
this is needed to allow macs to open a window with SDL. I have yet to find a good reason for that. I just know it's like that
This port will only work from CLI. I can make it work from GUI by adding some lines to makefile
NOTE: it's not just copy phase of what I wrote in the OpenTTD makefile. It have to be lightly modified to suit the app it's made for
if #include SDL.h is not used in the file with main, it needs
Code: Select all
#if defined(__APPLE__)
#include SDL.h
#endif
This port will only work from CLI. I can make it work from GUI by adding some lines to makefile
NOTE: it's not just copy phase of what I wrote in the OpenTTD makefile. It have to be lightly modified to suit the app it's made for
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
-
- Traffic Manager
- Posts: 213
- Joined: 05 Apr 2004 08:38
- Location: Ede, The Netherlands
- Contact:
That is why I posted the following message:
This is from what I read in the few usefull posts. The question that is still open is:mispunt wrote:So there is support for at least:
Windows
*nix
I think this is crusial to know. Or are we just planning to support Mac in the future? We need to know this for the game engine. some game engines are only for win/*nix and other for mac to.mispunt wrote:Are there people who could program on the mac, or other platforms? if so, they could be included to.
Who is online
Users browsing this forum: No registered users and 0 guests