Methods Summary |
---|
public android.graphics.Bitmap | getBitmap()
throw new RuntimeException("Vertex frames do not support reading data!");
|
public java.nio.ByteBuffer | getData()
throw new RuntimeException("Vertex frames do not support reading data!");
|
public float[] | getFloats()
throw new RuntimeException("Vertex frames do not support reading data!");
|
public int[] | getInts()
throw new RuntimeException("Vertex frames do not support reading data!");
|
private native int | getNativeVboId()
|
public java.lang.Object | getObjectValue()
throw new RuntimeException("Vertex frames do not support reading data!");
|
public int | getVboId()
return getNativeVboId();
|
protected synchronized boolean | hasNativeAllocation()
return vertexFrameId != -1;
|
private native boolean | nativeAllocate(int size)
|
private native boolean | nativeDeallocate()
|
protected synchronized void | releaseNativeAllocation()
nativeDeallocate();
vertexFrameId = -1;
|
public void | setBitmap(android.graphics.Bitmap bitmap)
throw new RuntimeException("Unsupported: Cannot set vertex frame bitmap value!");
|
public void | setData(java.nio.ByteBuffer buffer, int offset, int length)
assertFrameMutable();
byte[] bytes = buffer.array();
if (getFormat().getSize() != bytes.length) {
throw new RuntimeException("Data size in setData does not match vertex frame size!");
} else if (!setNativeData(bytes, offset, length)) {
throw new RuntimeException("Could not set vertex frame data!");
}
|
public void | setDataFromFrame(android.filterfw.core.Frame frame)
// TODO: Optimize
super.setDataFromFrame(frame);
|
public void | setFloats(float[] floats)
assertFrameMutable();
if (!setNativeFloats(floats)) {
throw new RuntimeException("Could not set int values for vertex frame!");
}
|
public void | setInts(int[] ints)
assertFrameMutable();
if (!setNativeInts(ints)) {
throw new RuntimeException("Could not set int values for vertex frame!");
}
|
private native boolean | setNativeData(byte[] data, int offset, int length)
|
private native boolean | setNativeFloats(float[] floats)
|
private native boolean | setNativeInts(int[] ints)
|
public java.lang.String | toString()
return "VertexFrame (" + getFormat() + ") with VBO ID " + getVboId();
|