Known Direct Subclasses
BoundCamera |
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc. |
|
Known Indirect Subclasses
SmoothCamera |
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc. |
ZoomCamera |
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc. |
|
Class Overview
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.
Summary
Public Constructors |
|
Camera(float pX, float pY, float pWidth, float pHeight)
|
Fields
protected
static
final
float[]
VERTICES_TOUCH_TMP
protected
float
mCameraSceneRotation
protected
float
mRotation
protected
int
mSurfaceHeight
protected
int
mSurfaceWidth
Public Constructors
public
Camera
(float pX, float pY, float pWidth, float pHeight)
Public Methods
public
void
convertCameraSceneToSceneTouchEvent
(TouchEvent pCameraSceneTouchEvent)
public
void
convertSceneToCameraSceneTouchEvent
(TouchEvent pSceneTouchEvent)
public
void
convertSurfaceToSceneTouchEvent
(TouchEvent pSurfaceTouchEvent, int pSurfaceWidth, int pSurfaceHeight)
public
float
getCameraSceneRotation
()
public
float
getCenterX
()
public
float
getCenterY
()
public
float
getFarZClippingPlane
()
public
float
getHeight
()
public
float
getHeightRaw
()
public
float
getNearZClippingPlane
()
public
float
getRotation
()
public
int
getSurfaceHeight
()
public
int
getSurfaceWidth
()
public
int
getSurfaceX
()
public
int
getSurfaceY
()
public
float
getWidthRaw
()
public
boolean
isLineVisible
(Line pLine)
public
boolean
isRotated
()
public
void
offsetCenter
(float pX, float pY)
public
void
onApplyCameraSceneMatrix
(GL10 pGL)
public
void
onApplySceneBackgroundMatrix
(GL10 pGL)
public
void
onApplySceneMatrix
(GL10 pGL)
public
void
onDrawHUD
(GL10 pGL)
public
void
onUpdate
(float pSecondsElapsed)
public
void
setCameraSceneRotation
(float pCameraSceneRotation)
public
void
setCenter
(float pCenterX, float pCenterY)
public
void
setChaseEntity
(IEntity pChaseEntity)
public
void
setFarZClippingPlane
(float pFarZClippingPlane)
public
void
setHUD
(HUD pHUD)
public
void
setNearZClippingPlane
(float pNearZClippingPlane)
public
void
setRotation
(float pRotation)
public
void
setSurfaceSize
(int pSurfaceX, int pSurfaceY, int pSurfaceWidth, int pSurfaceHeight)
public
void
setZClippingPlanes
(float pNearZClippingPlane, float pFarZClippingPlane)
public
void
updateChaseEntity
()
Protected Methods
protected
void
applySceneToCameraSceneOffset
(TouchEvent pSceneTouchEvent)
protected
void
unapplySceneToCameraSceneOffset
(TouchEvent pCameraSceneTouchEvent)