SDL 2.0 source has 1.3 in it?

*爱你&永不变心* 提交于 2020-01-03 13:51:50

问题


I'm playing around with the SDL 2.0 source code and noticed it has another SDL folder within it that claims to be version 1.3.

I'm interested in it because it has source for android, iphone and a few others. The stable version , 1.2, seems to be quite different.

My question is this,

SDL wiki link

This link speaks of SDL_compat.c which may allow code to work for both 1.2 and 2.0. Is this the version I should be using, and should I be coding they way the 2.0 API suggest? I want my code to target as many platforms as possible including android, and iphone.


回答1:


2.0 is just 1.3 with the 1.2 compatibility layer stripped out.

Check the mailing list.



来源:https://stackoverflow.com/questions/9235539/sdl-2-0-source-has-1-3-in-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!