在Objective-C和Linux上进行游戏编程 [英] Game programming on Objective-C and linux

查看:49
本文介绍了在Objective-C和Linux上进行游戏编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试一下Objective-C进行游戏编程.问题是我需要一些工具和库.

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

首先需要想到的是GUI和图形库.

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

我有什么选择?

推荐答案

OpenStep/Cocoa类型的Objective C平台有四种非Mac实现:

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

  1. OpenStep/NextStep:仅Openstep/NeXT支持机器-停产.
  2. p .....可以记住名字或在网上找到它-它在某个地方! -Linux
  3. Cocotron-仅Windows
  4. GNUStep Linux/Windows

GNUSTep是适用于Linux的方式...我在这里提到其他原因,因为源代码中有2和3,它们可用于修补GNUStep没有的代码,而且可能会修补它们.

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.

在图形库方面-您可能会遇到问题,因为Apple不再使用旧的OpenStep API,并且其API的发展速度远远超过了人们可以追赶的GNUStep.不支持最新的图形库,例如Core Animation.

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.

由于Objective C是C和C ++友好的,因此您可以按原样使用这些库中的任何一个,也可以通过包装来使Objective C友好.

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.

您可能想要或不希望与Mac兼容,并为此进行版本设计,因此它可能并不重要.

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

如果这样做的话,如果缺少OpenGL,我可能想为像OpenGL之类的东西做一个Linux Wrapper,我认为是的,但是请您自己检查一下....

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....

有Linux开发工具,包括用于Linux上GNUStep的项目IDE和GUI生成器.

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

托尼

这篇关于在Objective-C和Linux上进行游戏编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆