(转)Android Phones to Allow Full C/C++ Programmability

随着Android NDK r5的发布,开发者现在可以完全使用C++编写游戏,无需任何Java代码。这一变化要求目标设备至少运行Android 2.3 Gingerbread。此外,更新的NDK还提供了对STLport的支持,使依赖于标准模板库的应用更易于移植到Android平台。这些改进包括对RTTI、C++异常等特性的支持,以及增强的调试工具。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Nice to see a prediction of mine come true! I suspect that Google has realized that games written in Java do not quite match up to the best games written in C/C++ or Objective-C. There's no doubt that for many types of application Java can match C/C++ for speed but not with high performance games.

Past versions of the NDK have added support for OpenGL ES, debugging capabilities, multiple ABI support, and access to bitmaps in native code. This one now adds access to a native sound buffer and the ability to write directly to window surfaces.

On the Android developer's blog they've announced that with NDK r5, it will be possible to write an entire game in C++ without a single line of Java. The only snag is that it has to be for Gingerbread (Android 2.3 or later) so don't go and buy an Android phone now unless it is definitely 2.3. (Corrected- I had this as 3.0 earlier!)

This version of the NDK also comes with a pre-built version of STLport, making it easier to bring STL-reliant applications to Android. It also adds backwards-compatible support for RTTI, C++ exceptions, wchar_t, and includes improved debugging tools.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值