English 中文(简体)
为什么一些冰川接受阵列,而其他只接受Buffers on Anders
原标题:Why some gl calls accept arrays while other accept only Buffers on Android

我刚刚开始在露普洛宁和我刚刚注意到,一些冰川,如冰川融(......)或冰川(......)等,只接受Buffer物体的数据,而其他物体,如冰川-TexvOES(OES)、冰川-Paraifiv(O)也接受浮游。

为什么如此?

最佳回答

基本区别是,对冰川和冰川层功能的投入没有被利用,只有在采用冰川法(例如,冰川、冰川等)的情况下才能使用。

Since the arrays are not used right away, you need to keep the pointer to the array sent to these functions around long enough for the draw routines to access it. The data has to be on the native heap, otherwise the garbage collector could move the underlying native pointer even if it the data is not deleted. In order to get a pointer on the native heap, you need to wrap the data inside the Buffer objects.

类似冰川层的功能使用你穿透的阵列中的数值,因此,不存在从所谓的功能中移出点的担忧,也不必让这些点落在本土的肩上。

如果你使用来自本地法典的冰川和朋友,那么你必须把电线放在周围,直到你把冰川功能称作光彩之后。 从本地法典来看,你有好处,即点人不需要在物体上包装,但是,你不得不以人工方式管理任何肥皂分配。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签