Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
372 views
in Technique[技术] by (71.8m points)

Game programming on Objective-C and linux

I'd like to give Objective-C a try in game programming. The problem is I'd need some tools and libraries for this.

First thing that comes into mind I need is the GUI and graphics library.

What choices do I have?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There are Four non Mac implementations of OpenStep/Cocoa type Objective C platforms:

  1. OpenStep/NextStep : Openstep/NeXT support machines only - Discontinued.
  2. p..... can remember name or find it on web - it's out there somewhere ! - Linux
  3. Cocotron - Windows only
  4. GNUStep Linux/Windows

GNUSTep is the way to go for Linux... I mention there others because 2 and 3 are available in source and they can be used to patch holes in code the GNUStep doesn't have and they might.

When it comes to Graphics library - you may have problems because Apple moved away from the old OpenStep APIs and has kept evolving their APIs far faster than the GNUStep people can play catch up. There is no support for the latest graphics libraries such as Core Animation.

As Objective C is C and C++ friendly you can use any of these libraries as is, or by making the Objective C friendly by making a wrapper.

You may or may not want to be Mac compatible and do versions for that so it may not be important.

If you do you might want to do a Linux Wrapper for something like OpenGL if it is missing, which I think it is but have a check yourself....

There are Linux development tools including a project IDE and GUI builder for GNUStep on Linux.

Tony


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...