Package org.lwjgl.assimp
Class AICamera.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<AICamera,AICamera.Buffer>
-
- org.lwjgl.assimp.AICamera.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<AICamera>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- AICamera
public static class AICamera.Buffer extends org.lwjgl.system.StructBuffer<AICamera,AICamera.Buffer> implements org.lwjgl.system.NativeResource
An array ofAICamera
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
mAspect()
Returns the value of themAspect
field.AICamera.Buffer
mAspect(float value)
Sets the specified value to themAspect
field.float
mClipPlaneFar()
Returns the value of themClipPlaneFar
field.AICamera.Buffer
mClipPlaneFar(float value)
Sets the specified value to themClipPlaneFar
field.float
mClipPlaneNear()
Returns the value of themClipPlaneNear
field.AICamera.Buffer
mClipPlaneNear(float value)
Sets the specified value to themClipPlaneNear
field.float
mHorizontalFOV()
Returns the value of themHorizontalFOV
field.AICamera.Buffer
mHorizontalFOV(float value)
Sets the specified value to themHorizontalFOV
field.AIVector3D
mLookAt()
Returns aAIVector3D
view of themLookAt
field.AICamera.Buffer
mLookAt(java.util.function.Consumer<AIVector3D> consumer)
Passes themLookAt
field to the specifiedConsumer
.AICamera.Buffer
mLookAt(AIVector3D value)
Copies the specifiedAIVector3D
to themLookAt
field.AIString
mName()
Returns aAIString
view of themName
field.AICamera.Buffer
mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.AICamera.Buffer
mName(AIString value)
Copies the specifiedAIString
to themName
field.AIVector3D
mPosition()
Returns aAIVector3D
view of themPosition
field.AICamera.Buffer
mPosition(java.util.function.Consumer<AIVector3D> consumer)
Passes themPosition
field to the specifiedConsumer
.AICamera.Buffer
mPosition(AIVector3D value)
Copies the specifiedAIVector3D
to themPosition
field.AIVector3D
mUp()
Returns aAIVector3D
view of themUp
field.AICamera.Buffer
mUp(java.util.function.Consumer<AIVector3D> consumer)
Passes themUp
field to the specifiedConsumer
.AICamera.Buffer
mUp(AIVector3D value)
Copies the specifiedAIVector3D
to themUp
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAICamera.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 byAICamera.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
-
mPosition
public AIVector3D mPosition()
Returns aAIVector3D
view of themPosition
field.
-
mUp
public AIVector3D mUp()
Returns aAIVector3D
view of themUp
field.
-
mLookAt
public AIVector3D mLookAt()
Returns aAIVector3D
view of themLookAt
field.
-
mHorizontalFOV
public float mHorizontalFOV()
Returns the value of themHorizontalFOV
field.
-
mClipPlaneNear
public float mClipPlaneNear()
Returns the value of themClipPlaneNear
field.
-
mClipPlaneFar
public float mClipPlaneFar()
Returns the value of themClipPlaneFar
field.
-
mAspect
public float mAspect()
Returns the value of themAspect
field.
-
mName
public AICamera.Buffer mName(AIString value)
Copies the specifiedAIString
to themName
field.
-
mName
public AICamera.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.
-
mPosition
public AICamera.Buffer mPosition(AIVector3D value)
Copies the specifiedAIVector3D
to themPosition
field.
-
mPosition
public AICamera.Buffer mPosition(java.util.function.Consumer<AIVector3D> consumer)
Passes themPosition
field to the specifiedConsumer
.
-
mUp
public AICamera.Buffer mUp(AIVector3D value)
Copies the specifiedAIVector3D
to themUp
field.
-
mUp
public AICamera.Buffer mUp(java.util.function.Consumer<AIVector3D> consumer)
Passes themUp
field to the specifiedConsumer
.
-
mLookAt
public AICamera.Buffer mLookAt(AIVector3D value)
Copies the specifiedAIVector3D
to themLookAt
field.
-
mLookAt
public AICamera.Buffer mLookAt(java.util.function.Consumer<AIVector3D> consumer)
Passes themLookAt
field to the specifiedConsumer
.
-
mHorizontalFOV
public AICamera.Buffer mHorizontalFOV(float value)
Sets the specified value to themHorizontalFOV
field.
-
mClipPlaneNear
public AICamera.Buffer mClipPlaneNear(float value)
Sets the specified value to themClipPlaneNear
field.
-
mClipPlaneFar
public AICamera.Buffer mClipPlaneFar(float value)
Sets the specified value to themClipPlaneFar
field.
-
mAspect
public AICamera.Buffer mAspect(float value)
Sets the specified value to themAspect
field.
-
-