Old 05-26-2006, 02:03 PM   #1 (permalink)
Orc's Breathmint
 
Join Date: May 2006
Location: In the annex of creation...
Posts: 113
Reputation: 10
Send a message via MSN to MisterPoppet Send a message via Yahoo to MisterPoppet
Default A Question about Cross-Platform Programming

Okay, before I finishing choosing some tools and API's and Such, I want to know a little bit from the programmers here about cross-platform games. Is it possible to write a game source that has cross-platform capabilities so that all you need to do is compile it on the OS you want, or is there a considerable amount of extra work involved?

Really, this is a bit of a bugger. I've never been a fan of a game that was just for this OS or that OS. And, a lot of enigines (especially graphics engines) tout their ability to be cross platform. I just would like to know how easy that would be to implement. Thanks.

-Bryan-
MisterPoppet is offline  
Old 05-26-2006, 03:29 PM   #2 (permalink)
Luigi’s Pizza
 
HopeDagger's Avatar
 
Join Date: May 2006
Location: Ontario, Canada
Posts: 119
Reputation: 10
Send a message via MSN to HopeDagger
Default

Quote:
Originally Posted by MisterPoppet
Okay, before I finishing choosing some tools and API's and Such, I want to know a little bit from the programmers here about cross-platform games. Is it possible to write a game source that has cross-platform capabilities so that all you need to do is compile it on the OS you want, or is there a considerable amount of extra work involved?
Well, there's two ways that one can go about doing it. The first being easier than the latter. :P

1) Use purely cross-platform libraries. There are quite a few of them for just about any task (graphics, I/O, sound, etc), so using these will enable you do merely perform a recompile on the new platform -- possibly with a few fairly minor changes -- and you're good to go.

2) Use platform-specific implementations per-OS. Many commercial games have done this: write the game with DirectX, then port it using SDL/OpenGL to other platforms. This is a pain and requires you to rewrite huge portions of your code in two (or more!) different libraries. Look up #if and #endif preprocessor directives (if you're using C/C++) if you want to go this route, so you don't need to comment out large chunks of code.

Good luck!
__________________
Gauntlets of Recursion (+5) - My game development journal.
HopeDagger is offline  
Old 05-26-2006, 07:08 PM   #3 (permalink)
Orc's Breathmint
 
Join Date: May 2006
Location: In the annex of creation...
Posts: 113
Reputation: 10
Send a message via MSN to MisterPoppet Send a message via Yahoo to MisterPoppet
Default

Thanks, HopeDagger. I was planning on using only things that are cross-platform. I feel a bit more confident in my decisions now.

-Bryan-
MisterPoppet is offline  
Old 06-06-2008, 11:18 PM   #4 (permalink)
Marios's Mustache Wax
 
Join Date: Jun 2008
Posts: 1
Reputation: 10
Post Tell me please...

Aloha, guys!

I'm newbie on onrpg.com . And I do not know your rules about writing articles.
Tell me please if category this available to talk about sports?
Is it possible to download somewhere on this forum any video files?

Sincerely, me! :-)
JoustinaJerard is offline  
Old 06-06-2008, 11:45 PM   #5 (permalink)
Cloud's Hair Spray
 
Join Date: Aug 2006
Location: Away from you.
Posts: 70
Reputation: 10
Send a message via AIM to Gauge Send a message via MSN to Gauge Send a message via Yahoo to Gauge
Default

do #1, it is by far the easiest way.

openGL and SDL is all you'll ever need :P
__________________
Gauge is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0
OnRPG, Copyright ©2003-2011, Game Entertainment Enterprises