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
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newAICamera.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionfloatmAspect()mAspect(float value) Sets the specified value to themAspectfield.floatmClipPlaneFar(float value) Sets the specified value to themClipPlaneFarfield.floatmClipPlaneNear(float value) Sets the specified value to themClipPlaneNearfield.floatmHorizontalFOV(float value) Sets the specified value to themHorizontalFOVfield.mLookAt()mLookAt(Consumer<AIVector3D> consumer) Passes themLookAtfield to the specifiedConsumer.mLookAt(AIVector3D value) Copies the specifiedAIVector3Dto themLookAtfield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.floatmOrthographicWidth(float value) Sets the specified value to themOrthographicWidthfield.mPosition(Consumer<AIVector3D> consumer) Passes themPositionfield to the specifiedConsumer.mPosition(AIVector3D value) Copies the specifiedAIVector3Dto themPositionfield.mUp()mUp(Consumer<AIVector3D> consumer) Passes themUpfield to the specifiedConsumer.mUp(AIVector3D value) Copies the specifiedAIVector3Dto themUpfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newAICamera.Bufferinstance 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
AIStringview of themNamefield.
-
mPosition
- Returns:
- a
AIVector3Dview of themPositionfield.
-
mUp
- Returns:
- a
AIVector3Dview of themUpfield.
-
mLookAt
- Returns:
- a
AIVector3Dview of themLookAtfield.
-
mHorizontalFOV
public float mHorizontalFOV()- Returns:
- the value of the
mHorizontalFOVfield.
-
mClipPlaneNear
public float mClipPlaneNear()- Returns:
- the value of the
mClipPlaneNearfield.
-
mClipPlaneFar
public float mClipPlaneFar()- Returns:
- the value of the
mClipPlaneFarfield.
-
mAspect
public float mAspect()- Returns:
- the value of the
mAspectfield.
-
mOrthographicWidth
public float mOrthographicWidth()- Returns:
- the value of the
mOrthographicWidthfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mPosition
Copies the specifiedAIVector3Dto themPositionfield. -
mPosition
Passes themPositionfield to the specifiedConsumer. -
mUp
Copies the specifiedAIVector3Dto themUpfield. -
mUp
Passes themUpfield to the specifiedConsumer. -
mLookAt
Copies the specifiedAIVector3Dto themLookAtfield. -
mLookAt
Passes themLookAtfield to the specifiedConsumer. -
mHorizontalFOV
Sets the specified value to themHorizontalFOVfield. -
mClipPlaneNear
Sets the specified value to themClipPlaneNearfield. -
mClipPlaneFar
Sets the specified value to themClipPlaneFarfield. -
mAspect
Sets the specified value to themAspectfield. -
mOrthographicWidth
Sets the specified value to themOrthographicWidthfield.
-