Trying to port an OpenGL Windows game

Member
Posts: 61
Joined: 2007.01
Post: #1
Hey,

I'm a newbie when it comes to Mac development so I was hoping that a few members here can help me out.

The code I am looking to convert is from Brian Schwab's "AI Game Engine Programming" and it's a straight forward Asteroids (or to use the correct name AIsteroids) game using the GLUT wrapper.

I want to improve my C/C++ (I've had my fill of Java for now) so I presume that Carbon is the correct API to study up on right?

Is porting simply a case of changing the code that performs function X in Windows to it's equivalent in OS X or is there a lot more to it?

I'm not looking to create a fancy game, I just want to make a Mac compatible version of the code so that I can implement various AI systems - it's my goal to become an AI programmer so I'm not that concerned with creating visually fantastic games.

And this could be the dumbest question ever but I have to ask, is there anyway to create and run and OpenGL / GLUT application without have to get either Cocoa/Carbon involved?

Any help/advice is greatly appreciated

anthony
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #2
It's quite simple: leave it as an OpenGL/GLUT application. Rasp Mac has an implementation of GLUT available, and it's even bundled with the system, which means that you don't even have to distribute the library. You will only need to replace Win32 functions you use.
Quote this message in a reply
Member
Posts: 61
Joined: 2007.01
Post: #3
Quote:You will only need to replace Win32 functions you use.

Excellent! Thanks for that wonderful bit of information! Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  My port of the HGE game engine for Mac OS X / iOS A_Pepper 2 5,308 Feb 11, 2012 07:36 AM
Last Post: A_Pepper
  Tibia Game - Port to Mac whardypace 1 9,238 Sep 20, 2008 09:12 AM
Last Post: francis james
  Port of an open source game engine iarwain 4 4,367 Aug 28, 2008 02:16 PM
Last Post: iarwain
  Best Porting Options - Mac (Cocoa/OpenGL) to Windows Jake 30 13,630 Dec 18, 2006 08:05 PM
Last Post: dajtxx
  Looking for a coder to port an OpenGL game karx11erx 7 5,265 Dec 1, 2005 05:43 AM
Last Post: karx11erx