【翻译】(81)Renderscript之运行时API参考手册
【翻译】(81)Renderscript之运行时API参考手册
?
see
http://developer.android.com/guide/topics/renderscript/reference.html
?
原文见
http://developer.android.com/guide/topics/renderscript/reference.html
?
-------------------------------
?
Runtime API Reference
?
Renderscript之运行时API参考手册
?
(注:此章包含的是用doxygen生成的文档,我只翻译概览部分,其余内容待翻译)
?
-------------------------------
?
Overview Globals Structs
?
概览 全局 结构体
?
Renderscript is a high-performance runtime that provides graphics rendering and compute operations at the native level. Renderscript code is compiled on devices at runtime to allow platform-independence as well. This reference documentation describes the Renderscript runtime APIs, which you can utilize to write Renderscript code in C99. The Renderscript header files are automatically included for you, except for the rs_graphics.rsh header. If you are doing graphics rendering, include the graphics header file like this:
?
Renderscript是一个高性能运行时,它在原生层上提供图形渲染和计算操作。Renderscript代码在运行时期间在设备上被编译,而且是为了允许平台独立性。本参考文档描述Renderscript运行时API,你可以利用它用C99编写Renderscript代码。Renderscript头文件为你自动地被包含,除了rs_graphics.rsh头文件。如果你正在执行图形渲染,像这样包含图形头文件:
?
#include "rs_graphics.rsh"
?
To use Renderscript, you need to utilize the Renderscript runtime APIs documented here as well as the Android framework APIs for Renderscript. For documentation on the Android framework APIs, see the android.renderscript package reference. For more information on how to develop with Renderscript and how the runtime and Android framework APIs interact, see the Renderscript developer guide and the Renderscript samples.
?
为了使用Renderscript,你需要利用在这里被文档化的Renderscript运行时API以及用于Renderscript的Android框架API。想获得关于Android框架API的文档,参见android.renderscript的包参考手册。想获得关于如何用Renderscript开发和运行时和Android框架API如何交互的更多信息,参见Renderscript开发者指引和Renderscript示例。
?
Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.
?
除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。
?
Android 4.0 r1 - 07 Apr 2012 1:06
?
-------------------------------
?
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
?
此页部分内容,是基于Android开源项目所创建和共享的工作,并且根据知识共享2.5署名许可证描述的条款来使用的修改版。
?
(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:
* ソフトウェア技術ドキュメントを勝手に翻訳
http://www.techdoctranslator.com/android
* Ley's Blog
http://leybreeze.com/blog/
* 农民伯伯
http://www.cnblogs.com/over140/
* Android中文翻译组
http://androidbox.sinaapp.com/
)