Class View


  • public class View
    extends EventDispatcher
    A View is the same concept as a camera, a viewer or anything that moves and can view the world.
    • Field Detail

      • transform

        protected org.joml.Matrix4f transform
        Transformation of this camera.
      • position

        protected Vector3f position
        Current position of view.
    • Constructor Detail

      • View

        public View()
        Constructor.
    • Method Detail

      • getPosition

        public Vector3f getPosition()
        Get position.
        Returns:
        position
      • setPosition

        public void setPosition​(float x,
                                float y)
        Set current position of the view.
        Parameters:
        x - x value
        y - y value
      • recalculateMatrix

        protected void recalculateMatrix()
        Recalculates the view matrix used by stage.