public class BoundCamera extends Camera
IUpdateHandler.IUpdateHandlerMatcher| Modifier and Type | Field and Description |
|---|---|
protected float |
mBoundsCenterX |
protected float |
mBoundsCenterY |
protected boolean |
mBoundsEnabled |
protected float |
mBoundsHeight |
protected float |
mBoundsWidth |
protected float |
mBoundsXMax |
protected float |
mBoundsXMin |
protected float |
mBoundsYMax |
protected float |
mBoundsYMin |
mCameraSceneRotation, mResizeOnSurfaceSizeChanged, mRotation, mSurfaceHeight, mSurfaceWidth, mSurfaceX, mSurfaceY, mUpdateHandlers, mXMax, mXMin, mYMax, mYMin| Constructor and Description |
|---|
BoundCamera(float pX,
float pY,
float pWidth,
float pHeight) |
BoundCamera(float pX,
float pY,
float pWidth,
float pHeight,
float pBoundMinX,
float pBoundMaxX,
float pBoundMinY,
float pBoundMaxY) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureInBounds() |
protected float |
getBoundedX(float pX) |
protected float |
getBoundedY(float pY) |
float |
getBoundsHeight() |
float |
getBoundsWidth() |
float |
getBoundsXMax() |
float |
getBoundsXMin() |
float |
getBoundsYMax() |
float |
getBoundsYMin() |
boolean |
isBoundsEnabled() |
void |
setBounds(float pBoundsXMin,
float pBoundsYMin,
float pBoundsXMax,
float pBoundsYMax) |
void |
setBoundsEnabled(boolean pBoundsEnabled) |
void |
setCenter(float pCenterX,
float pCenterY) |
applySceneToCameraSceneOffset, applySceneToCameraSceneOffset, clearUpdateHandlers, convertCameraSceneToSceneTouchEvent, convertSceneToCameraSceneTouchEvent, convertSceneToSurfaceTouchEvent, convertSurfaceToSceneTouchEvent, getCameraSceneCoordinatesFromSceneCoordinates, getCameraSceneCoordinatesFromSceneCoordinates, getCameraSceneRotation, getCenterX, getCenterY, getHeight, getHeightRaw, getHUD, getRotation, getSceneCoordinatesFromCameraSceneCoordinates, getSceneCoordinatesFromCameraSceneCoordinates, getSurfaceHeight, getSurfaceWidth, getSurfaceX, getSurfaceY, getWidth, getWidthRaw, getXMax, getXMin, getYMax, getYMin, getZFar, getZNear, hasHUD, isLineVisible, isRectangularShapeVisible, isRectangularShapeVisible, isResizeOnSurfaceSizeChanged, isRotated, offsetCenter, onApplyCameraSceneMatrix, onApplySceneBackgroundMatrix, onApplySceneMatrix, onDrawHUD, onSurfaceSizeChanged, onSurfaceSizeInitialized, onUpdate, registerUpdateHandler, reset, set, setCameraSceneRotation, setChaseEntity, setHUD, setResizeOnSurfaceSizeChanged, setRotation, setSurfaceSize, setXMax, setXMin, setYMax, setYMin, setZClippingPlanes, setZFar, setZNear, unapplySceneToCameraSceneOffset, unapplySceneToCameraSceneOffset, unregisterUpdateHandler, unregisterUpdateHandlers, updateChaseEntityprotected boolean mBoundsEnabled
protected float mBoundsXMin
protected float mBoundsXMax
protected float mBoundsYMin
protected float mBoundsYMax
protected float mBoundsCenterX
protected float mBoundsCenterY
protected float mBoundsWidth
protected float mBoundsHeight
public BoundCamera(float pX,
float pY,
float pWidth,
float pHeight)
public BoundCamera(float pX,
float pY,
float pWidth,
float pHeight,
float pBoundMinX,
float pBoundMaxX,
float pBoundMinY,
float pBoundMaxY)
public boolean isBoundsEnabled()
public void setBoundsEnabled(boolean pBoundsEnabled)
public void setBounds(float pBoundsXMin,
float pBoundsYMin,
float pBoundsXMax,
float pBoundsYMax)
public float getBoundsXMin()
public float getBoundsXMax()
public float getBoundsYMin()
public float getBoundsYMax()
public float getBoundsWidth()
public float getBoundsHeight()
public void setCenter(float pCenterX,
float pCenterY)
protected void ensureInBounds()
protected float getBoundedX(float pX)
protected float getBoundedY(float pY)