Package com.csse3200.game.components
Class CameraComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.CameraComponent
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.csse3200.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
Constructor Details
-
CameraComponent
public CameraComponent() -
CameraComponent
public CameraComponent(com.badlogic.gdx.graphics.Camera camera)
-
-
Method Details
-
update
public void update()Description copied from class:Component
Called once per frame of the game, and should be used for most component logic. Not called if component is disabled. -
getProjectionMatrix
public com.badlogic.gdx.math.Matrix4 getProjectionMatrix() -
getCamera
public com.badlogic.gdx.graphics.Camera getCamera() -
resize
public void resize(int screenWidth, int screenHeight, float gameWidth)
-