public class VRDirector
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
beforeShot() |
float |
getDeltaX() |
float |
getDeltaY() |
static VRDirector |
getInstance() |
protected float |
getNear() |
float[] |
getProjectionMatrix() |
protected float |
getRatio() |
float |
getScaleParam() |
float[] |
getViewMatrix() |
int |
getViewportHeight() |
int |
getViewportWidth() |
void |
resetMatrix() |
void |
setDeltaX(float mDeltaX) |
void |
setDeltaY(float mDeltaY) |
void |
setMotionWithTouchStrategy(MotionWithTouchStrategy motionWithTouchStrategy) |
void |
setScaleParam(float scale) |
void |
shot(VRProgram program) |
protected void |
updateProjection() |
void |
updateProjectionNearScale(float scale) |
void |
updateSensorMatrix(float[] sensorMatrix) |
void |
updateViewport(int width,
int height) |
public static VRDirector getInstance()
public float getDeltaY()
public void setDeltaY(float mDeltaY)
public float getDeltaX()
public void setDeltaX(float mDeltaX)
public void beforeShot()
public void shot(VRProgram program)
public void updateViewport(int width,
int height)
public void updateProjectionNearScale(float scale)
protected void updateProjection()
protected float getNear()
protected float getRatio()
public float[] getProjectionMatrix()
public int getViewportWidth()
public int getViewportHeight()
public float[] getViewMatrix()
public void updateSensorMatrix(float[] sensorMatrix)
public void resetMatrix()
public void setScaleParam(float scale)
public void setMotionWithTouchStrategy(MotionWithTouchStrategy motionWithTouchStrategy)
public float getScaleParam()