Class AICamera.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new AICamera.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by AICamera.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • mName

        public AICamera.Buffer mName​(java.util.function.Consumer<AIString> consumer)
        Passes the mName field to the specified Consumer.
      • mPosition

        public AICamera.Buffer mPosition​(java.util.function.Consumer<AIVector3D> consumer)
        Passes the mPosition field to the specified Consumer.
      • mUp

        public AICamera.Buffer mUp​(java.util.function.Consumer<AIVector3D> consumer)
        Passes the mUp field to the specified Consumer.
      • mLookAt

        public AICamera.Buffer mLookAt​(java.util.function.Consumer<AIVector3D> consumer)
        Passes the mLookAt field to the specified Consumer.
      • mHorizontalFOV

        public float mHorizontalFOV()
        Returns the value of the mHorizontalFOV field.
      • mClipPlaneNear

        public float mClipPlaneNear()
        Returns the value of the mClipPlaneNear field.
      • mClipPlaneFar

        public float mClipPlaneFar()
        Returns the value of the mClipPlaneFar field.
      • mAspect

        public float mAspect()
        Returns the value of the mAspect field.
      • mHorizontalFOV

        public AICamera.Buffer mHorizontalFOV​(float value)
        Sets the specified value to the mHorizontalFOV field.
      • mClipPlaneNear

        public AICamera.Buffer mClipPlaneNear​(float value)
        Sets the specified value to the mClipPlaneNear field.
      • mClipPlaneFar

        public AICamera.Buffer mClipPlaneFar​(float value)
        Sets the specified value to the mClipPlaneFar field.
      • mAspect

        public AICamera.Buffer mAspect​(float value)
        Sets the specified value to the mAspect field.