Class CameraComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.CameraComponent

public class CameraComponent extends Component
  • 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.
      Overrides:
      update in class Component
    • 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)