Methods Summary |
---|
public void | applyToCanvas(Canvas canvas)Computes the matrix corresponding to the current transformation
and applies it to the specified Canvas.
if (canvas.isHardwareAccelerated()) {
if (mMatrix == null) mMatrix = new Matrix();
getMatrix(mMatrix);
canvas.concat(mMatrix);
} else {
nativeApplyToCanvas(canvas.getNativeCanvasWrapper());
}
|
public native float | dotWithNormal(float dx, float dy, float dz)
|
protected void | finalize()
try {
nativeDestructor();
} finally {
super.finalize();
}
|
public native float | getLocationX()Gets the x location of the camera.
|
public native float | getLocationY()Gets the y location of the camera.
|
public native float | getLocationZ()Gets the z location of the camera.
|
public void | getMatrix(Matrix matrix)Computes the matrix corresponding to the current transformation
and copies it to the supplied matrix object.
nativeGetMatrix(matrix.native_instance);
|
private native void | nativeApplyToCanvas(long native_canvas)
|
private native void | nativeConstructor()
|
private native void | nativeDestructor()
|
private native void | nativeGetMatrix(long native_matrix)
|
public native void | restore()Restores the saved state, if any.
|
public native void | rotate(float x, float y, float z)Applies a rotation transform around all three axis.
|
public native void | rotateX(float deg)Applies a rotation transform around the X axis.
|
public native void | rotateY(float deg)Applies a rotation transform around the Y axis.
|
public native void | rotateZ(float deg)Applies a rotation transform around the Z axis.
|
public native void | save()Saves the camera state. Each save should be balanced
with a call to {@link #restore()}.
|
public native void | setLocation(float x, float y, float z)Sets the location of the camera. The default location is set at
0, 0, -8.
|
public native void | translate(float x, float y, float z)Applies a translation transform on all three axis.
|