Module technology.sola.engine
Class CameraComponent
java.lang.Object
technology.sola.engine.graphics.components.CameraComponent
- All Implemented Interfaces:
technology.sola.ecs.Component
CameraComponent is a
Component that contains data for a 2d camera for an Entity.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe camera with the lowest priority value will be used during rendering.voidsetPriority(int priority) Updates the priority for this camera.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface technology.sola.ecs.Component
afterDeserialize
-
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
-