Package org.lwjgl.assimp
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newAICamera.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionfloat
mAspect()
mAspect
(float value) Sets the specified value to theAICamera.mAspect()
field.float
mClipPlaneFar
(float value) Sets the specified value to theAICamera.mClipPlaneFar()
field.float
mClipPlaneNear
(float value) Sets the specified value to theAICamera.mClipPlaneNear()
field.float
mHorizontalFOV
(float value) Sets the specified value to theAICamera.mHorizontalFOV()
field.mLookAt()
mLookAt
(Consumer<AIVector3D> consumer) Passes theAICamera.mLookAt()
field to the specifiedConsumer
.mLookAt
(AIVector3D value) Copies the specifiedAIVector3D
to theAICamera.mLookAt()
field.mName()
Passes theAICamera.mName()
field to the specifiedConsumer
.Copies the specifiedAIString
to theAICamera.mName()
field.float
mOrthographicWidth
(float value) Sets the specified value to theAICamera.mOrthographicWidth()
field.mPosition
(Consumer<AIVector3D> consumer) Passes theAICamera.mPosition()
field to the specifiedConsumer
.mPosition
(AIVector3D value) Copies the specifiedAIVector3D
to theAICamera.mPosition()
field.mUp()
mUp
(Consumer<AIVector3D> consumer) Passes theAICamera.mUp()
field to the specifiedConsumer
.mUp
(AIVector3D value) Copies the specifiedAIVector3D
to theAICamera.mUp()
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 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
- Returns:
- a
AIString
view of theAICamera.mName()
field.
-
mPosition
- Returns:
- a
AIVector3D
view of theAICamera.mPosition()
field.
-
mUp
- Returns:
- a
AIVector3D
view of theAICamera.mUp()
field.
-
mLookAt
- Returns:
- a
AIVector3D
view of theAICamera.mLookAt()
field.
-
mHorizontalFOV
public float mHorizontalFOV()- Returns:
- the value of the
AICamera.mHorizontalFOV()
field.
-
mClipPlaneNear
public float mClipPlaneNear()- Returns:
- the value of the
AICamera.mClipPlaneNear()
field.
-
mClipPlaneFar
public float mClipPlaneFar()- Returns:
- the value of the
AICamera.mClipPlaneFar()
field.
-
mAspect
public float mAspect()- Returns:
- the value of the
AICamera.mAspect()
field.
-
mOrthographicWidth
public float mOrthographicWidth()- Returns:
- the value of the
AICamera.mOrthographicWidth()
field.
-
mName
Copies the specifiedAIString
to theAICamera.mName()
field. -
mName
Passes theAICamera.mName()
field to the specifiedConsumer
. -
mPosition
Copies the specifiedAIVector3D
to theAICamera.mPosition()
field. -
mPosition
Passes theAICamera.mPosition()
field to the specifiedConsumer
. -
mUp
Copies the specifiedAIVector3D
to theAICamera.mUp()
field. -
mUp
Passes theAICamera.mUp()
field to the specifiedConsumer
. -
mLookAt
Copies the specifiedAIVector3D
to theAICamera.mLookAt()
field. -
mLookAt
Passes theAICamera.mLookAt()
field to the specifiedConsumer
. -
mHorizontalFOV
Sets the specified value to theAICamera.mHorizontalFOV()
field. -
mClipPlaneNear
Sets the specified value to theAICamera.mClipPlaneNear()
field. -
mClipPlaneFar
Sets the specified value to theAICamera.mClipPlaneFar()
field. -
mAspect
Sets the specified value to theAICamera.mAspect()
field. -
mOrthographicWidth
Sets the specified value to theAICamera.mOrthographicWidth()
field.
-