Class AICamera.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<AICamera>, NativeResource, Pointer
Enclosing class:
AICamera

public static class AICamera.Buffer extends StructBuffer<AICamera,AICamera.Buffer> implements NativeResource
An array of AICamera structs.
  • Constructor Details

    • Buffer

      public Buffer(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 Details

    • mName

      public AIString mName()
      Returns:
      a AIString view of the mName field.
    • mPosition

      public AIVector3D mPosition()
      Returns:
      a AIVector3D view of the mPosition field.
    • mUp

      public AIVector3D mUp()
      Returns:
      a AIVector3D view of the mUp field.
    • mLookAt

      public AIVector3D mLookAt()
      Returns:
      a AIVector3D view of the mLookAt field.
    • 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.
    • mOrthographicWidth

      public float mOrthographicWidth()
      Returns:
      the value of the mOrthographicWidth field.
    • mName

      public AICamera.Buffer mName(AIString value)
      Copies the specified AIString to the mName field.
    • mName

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

      public AICamera.Buffer mPosition(AIVector3D value)
      Copies the specified AIVector3D to the mPosition field.
    • mPosition

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

      public AICamera.Buffer mUp(AIVector3D value)
      Copies the specified AIVector3D to the mUp field.
    • mUp

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

      public AICamera.Buffer mLookAt(AIVector3D value)
      Copies the specified AIVector3D to the mLookAt field.
    • mLookAt

      public AICamera.Buffer mLookAt(Consumer<AIVector3D> consumer)
      Passes the mLookAt field to the specified Consumer.
    • 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.
    • mOrthographicWidth

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