SDL for iPhone有多成熟? [英] How mature is SDL for iPhone?

查看:129
本文介绍了SDL for iPhone有多成熟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一段时间我一直在考虑尝试一个我最喜欢的经典PC游戏的端口, The Ur- Quan Masters (又名 Star Control 2 )到iPhone。 UQM将SDL用于其所有图形,声音,输入和其他游戏内容,似乎有一个SDL到iPhone的端口,但此时它看起来不太成熟。

For a while I've been thinking of trying to do a port of one of my favorite classic PC games, The Ur-Quan Masters (aka Star Control 2) to the iPhone. UQM uses SDL for all its graphics, sound, input and other gamey stuff and there does seem to be a port of SDL to iPhone but it doesn't look very mature at this point.

是否有人将iPhone SDL端口放入其中?它的效果如何?我可以期待这个项目有什么样的问题,这已经是跨平台代码到iPhone?

Has anyone put the iPhone SDL port through its paces? How well does it work? What kinds of issues can I expect taking this project, which is already cross platform code to iPhone?

如果SDL不是一个选项,任何人都可以推荐一个替代框架来看那将弥合SDL与OpenGL ES和Core Audio等本机库之间的差距?或者编码这些框架是最佳选择?

If SDL isn't an option can anyone reccomend an alternative framework to look at that will bridge the gap between SDL and the native libraries like OpenGL ES and Core Audio? Or is coding to those frameworks the best option?

编辑添加:这是指向论坛帖子

推荐答案

更新


这个答案已经过时了,所以你可以停止投票吧!

UPDATE
This answer is really out of date, so you can stop up voting it!

我不再使用SDL进行iPhone开发,因为它不适合iPhone型号。例如SDL坚持拥有main(),音频子系统不了解AudioSessions,很难了解视图方向的变化等等。很高兴看到一个熟悉的面孔但最终SDL引入的问题比它解决的更多。

I no longer use SDL for iPhone development because it doesn't fit the iPhone model. e.g. SDL insists on owning main(), the audio subsystem doesn't know about AudioSessions, it's hard to pick up on view orientation changes, etc. It was nice to see a familiar face but in the end SDL introduced more problems than it solved.

2009年答案

svn版本对我有用。

2009 answer
The svn version's working well for me.

我有一个问题,那就是 atexit(SDL_Quit)崩溃。

I had one problem and that was a crash in atexit(SDL_Quit).

所以我禁用了清理。

另外,库名称不合理,但你可以改变它。

Plus the library names are not sensible, but you can change that.

最难的部分我正在将我的SDL代码移植到SDL-1.3,并将我的OpenGL代码移植到OpenGLES。

The hardest part for me was porting my SDL code to SDL-1.3, and porting my OpenGL code to OpenGLES.

OpenGLES按预期工作,加速度计显示为3轴操纵杆,
和声音很稳定。

OpenGLES works as you'd expect, the accelerometer shows up as a 3 axis joystick, and sound is solid.

我给5星级的iPhone SDL 4.5。

I give iPhone SDL 4.5 out of a possible 5 stars.

这篇关于SDL for iPhone有多成熟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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