Jump to content
  • Advertisement
Sign in to follow this  
Alex Swinney

OpenGL Making an OpenGL game, need it to work on Mac/PC..

This topic is 5059 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm sorry if this has been posted before, which it probably has, but the search on this site is easily the worst I have ever seen. It refuses to work, and I refuse to work with it. Anywho, I am making a physics edutainment game for high school physics AP classes under the 'guidance' of my University. I NEED it to be cross-platform, hence OpenGL, but I can't seem to find anything telling me how to get it to work on Macs and PCs at the same time, so is this possible? I have used GLUT, but this was for PC only, and I am not sure GLUT works on Mac.. So, if someone could shed some light into my dim mind I would be much appreciative! I would obviously like to make as little changes as necessary to get the program to work on Mac from PC. Thanks! [Edited by - Alex Swinney on November 16, 2004 9:26:16 AM]

Share this post


Link to post
Share on other sites
Advertisement
http://www.libsdl.org/index.php

That's a cross platform library that works on both Windows and Mac (among others). You will still need to compile different executables for each platform though.

Share this post


Link to post
Share on other sites


"Unofficial ports, ports in progress:
o Solaris, IRIX, FreeBSD
o MacOS "

Is there anything 'official'? Or is the documentation out of date?

See, I have no Mac to speak of, and with that said, have no Mac compiler, so if I start developing on this platform, and later find out that it won't work...I'm SOL. I don't want to be SOL.;)

Thanks!

Share this post


Link to post
Share on other sites
Quote:
Original post by Roboguy
GLUT works on Mac, Windows, and most of the UNIX flavors(including MacOSX) and possibly a few other OSes


What do I need to do to get it to work on MacOSX? Also, is there anything that allows me to get it to work with older versions of Mac OS? I mean, do I just need to get drivers and install them on the machine?

Share this post


Link to post
Share on other sites
Quote:
Original post by Alex Swinney
Quote:
Original post by Roboguy
GLUT works on Mac, Windows, and most of the UNIX flavors(including MacOSX) and possibly a few other OSes


What do I need to do to get it to work on MacOSX? Also, is there anything that allows me to get it to work with older versions of Mac OS? I mean, do I just need to get drivers and install them on the machine?


1) Nothing, your code doesn't need to be ported if it just uses OpenGL and GLUT(if it uses other, windows-only libraries, it will need to be ported)
2) Not sure, but I think most people use OSX(myself included)
3) Do you mean on the developers machine, or the users? On the developers machine, it needs to be installed and on the user's machine, it depends on wether it's statically or dynamically linked

good luck on your game

Share this post


Link to post
Share on other sites
FYI, the developers' tools in OSX (including Xcode) are free. Also, GLUT is available in OS9 and OSX, although there may be some issues here and there.

Unless someone insists on it, I wouldn't worry about OS9 and just focus on OSX. Although a lot of people still use OS9 (myself included sometimes), Apple really isn't supporting it any more. So developing in OS9 is kind of a pain.

Also look into SDL, which is cross-platform (maybe that's already been mentioned).

If you use the right libraries, you should be able to make all your code cross-platform without changes. However, you'll still of course have to get set up in a development environment on each platform in question and compile the appropriate binary.

Share this post


Link to post
Share on other sites
Don't listen to anyone here. I have expirience with both GLUT and SDL. GLUT is alright for making test apps' (though I still think SDL is better). But if you are making a game, don't waste time with GLUT, SDL all the way. If it helps your decision, UT2003, UT2004 and many other profeshional games use SDL.

Share this post


Link to post
Share on other sites
They do? I thought the UT's just used OGL, and used OS-specific initialization code and ported it to each other OS they wanted it to run on... SDL is probably a bit too slow for them...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!