LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-20-2005, 04:59 AM   #1
Geronimo
Member
 
Registered: Aug 2004
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
Question Porting a Carbon (OS X) programm to OpenGL (Linux)


Hi Everyone,

The case is the following: A friends of mine is writing a game in Carbon (OS X), and want to/have to port this game to OpenGL (Linux). Carbon is a Apple OpenGL derivate optimised for their OS.

My problem starts by having very little programming experience and not having done some programming for some time to first time working with OpenGL and understanding what he wrote... So I am in need of about anything

My Wishlist:
  • OpenGL tutorial
  • Carbon tutorial
  • Or Programm/Tools whatsoever to do the conversion automatically
  • IDE for C++ (no nescessary, but would be nice)

Or at least I hint of where I should search... the Net is big, and Google only your friend, IF you know the right keywords

As I am runnig under Gentoo, I guess it is not that much of a hassle to get the libaries, or any other packages I need.

Greets
G
 
Old 04-20-2005, 08:30 AM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
For OpenGL info, look for the OpenGL Programming Guide. Often referred to as the Redbook. A google search on OpenGL Redbook will probably bring up many links to it. There is an old version of it available for download various places across the net. It's like the Bible of OpenGL...

It's companion is the OpenGL Reference Manual. Also known as "The Blue Book"

Last edited by deiussum; 04-20-2005 at 08:32 AM.
 
Old 04-20-2005, 09:47 AM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
I don't think you're going to find an automated way to convert Carbon code to GNU/Linux.

You probably need to decide whether you want to use GLUT (the OpenGL Utility Toolkit) or sdl ( http://www.libsdl.org ). GLUT is easier, SDL is more useful for games. There's a Free version of GLUT available called FreeGLUT.

If you can afford it, a good book to buy (which uses GLUT) is "OpenGL SuperBible". There's also the redbook, but the SuperBible has more hand-holding.

As far as programming tools, for now, just use an editor like NEdit, a simple makefile, and build and run from the command line.

You can get lots of help with Carbon in the forums at http://www.idevgames.com
 
Old 04-20-2005, 10:49 AM   #4
Geronimo
Member
 
Registered: Aug 2004
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
I don't think you're going to find an automated way to convert Carbon code to GNU/Linux.
What a surprise...

Thanks for the replies so far... They have already proven useful. But currently I am fighting with more basic problems
How do I compile this stuff?
OR Is there a program that can read a Xcode project file....
What Window handler should I use? QT, GTK? or is there somethong native, like a general purpose window handler (PS I hope I used the right term; As I said I am pretty much of a newb in this area)

The More I start reading the Code, the less it seams achievable... or the more workaround I need. I just bumped into Quicktime, CoreVideo and some other nice things. I guess I have to rewrite half of the code, to get i working on Penguin; damn Fruits

I could still use some help... but it'll take some time..

Greets
G

Plundging back into the Sources....

Last edited by Geronimo; 04-20-2005 at 10:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting Linux OpenGL apps to Windows kornerr Programming 2 11-16-2005 09:21 AM
how to store a pixmap image created by gdk programm into a new file in linux m.harshavardhan Linux - General 0 05-06-2005 12:57 AM
Rio Carbon mplanchant Linux - Hardware 0 02-03-2005 06:24 AM
installing a programm on linux Fresha Linux - Software 5 02-19-2004 10:36 AM
Porting to Linux?? 00-00-00 Linux - General 1 05-27-2002 09:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration