java.lang.Object
technology.sola.engine.graphics.components.CameraComponent
All Implemented Interfaces:
technology.sola.ecs.Component

@NullMarked public class CameraComponent extends Object implements technology.sola.ecs.Component
CameraComponent is a Component that contains data for a 2d camera for an Entity.
  • Constructor Details

    • CameraComponent

      public CameraComponent()
  • Method Details

    • getPriority

      public int getPriority()
      The camera with the lowest priority value will be used during rendering.
      Returns:
      the priority value
    • setPriority

      public void setPriority(int priority)
      Updates the priority for this camera. The camera with the lowest priority will be used during rendering.
      Parameters:
      priority - the new priority