Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

AllocationAdapter

extends Allocation
java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.Allocation
       ↳ android.renderscript.AllocationAdapter

Class Overview

Only intended for use by generated reflected code.

Summary

[Expand]
Inherited Constants
From class android.renderscript.Allocation
Public Methods
static AllocationAdapter create1D ( RenderScript rs, Allocation a)
static AllocationAdapter create2D ( RenderScript rs, Allocation a)
synchronized void resize (int dimX)
This method is deprecated. RenderScript objects should be immutable once created. The replacement is to create a new allocation and copy the contents.
void setFace ( Type.CubemapFace cf)
Set the active Face.
void setLOD (int lod)
Set the active LOD.
void setY (int y)
Set the active Y.
void setZ (int z)
Set the active Z.
[Expand]
Inherited Methods
From class android.renderscript.Allocation
From class android.renderscript.BaseObj
From class java.lang.Object

Public Methods

public synchronized void resize (int dimX)

This method is deprecated.
RenderScript objects should be immutable once created. The replacement is to create a new allocation and copy the contents.

Override the Allocation resize. Resizing adapters is not allowed and will throw a RSInvalidStateException.

Parameters
dimX ignored.

public void setFace ( Type.CubemapFace cf)

Set the active Face. The base allocation must be of a type that includes faces.

Parameters
cf The face to make active.

public void setLOD (int lod)

Set the active LOD. The LOD must be within the range for the type being adapted. The base allocation must have mipmaps. Because this changes the dimensions of the adapter the current Y and Z will be reset.

Parameters
lod The LOD to make active.

public void setY (int y)

Set the active Y. The y value must be within the range for the allocation being adapted. The base allocation must contain the Y dimension.

Parameters
y The y to make active.

public void setZ (int z)

Set the active Z. The z value must be within the range for the allocation being adapted. The base allocation must contain the Z dimension.

Parameters
z The z to make active.