Package org.lwjgl.assimp
Class AICamera
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiCamera {
{@link AIString struct aiString} mName;
{@link AIVector3D struct aiVector3D} mPosition;
{@link AIVector3D struct aiVector3D} mUp;
{@link AIVector3D struct aiVector3D} mLookAt;
float mHorizontalFOV;
float mClipPlaneNear;
float mClipPlaneFar;
float mAspect;
float mOrthographicWidth;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAICamera
(ByteBuffer container) Creates aAICamera
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AICamera
calloc()
Returns a newAICamera
instance allocated withmemCalloc
.static AICamera.Buffer
calloc
(int capacity) Returns a newAICamera.Buffer
instance allocated withmemCalloc
.static AICamera.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAICamera.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AICamera
calloc
(MemoryStack stack) Returns a newAICamera
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AICamera
Deprecated.static AICamera.Buffer
callocStack
(int capacity) Deprecated.static AICamera.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AICamera
callocStack
(MemoryStack stack) Deprecated.static AICamera
create()
Returns a newAICamera
instance allocated withBufferUtils
.static AICamera.Buffer
create
(int capacity) Returns a newAICamera.Buffer
instance allocated withBufferUtils
.static AICamera
create
(long address) Returns a newAICamera
instance for the specified memory address.static AICamera.Buffer
create
(long address, int capacity) Create aAICamera.Buffer
instance at the specified memory.static @Nullable AICamera
createSafe
(long address) static @Nullable AICamera.Buffer
createSafe
(long address, int capacity) static AICamera
malloc()
Returns a newAICamera
instance allocated withmemAlloc
.static AICamera.Buffer
malloc
(int capacity) Returns a newAICamera.Buffer
instance allocated withmemAlloc
.static AICamera.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAICamera.Buffer
instance allocated on the specifiedMemoryStack
.static AICamera
malloc
(MemoryStack stack) Returns a newAICamera
instance allocated on the specifiedMemoryStack
.static AICamera
Deprecated.static AICamera.Buffer
mallocStack
(int capacity) Deprecated.static AICamera.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AICamera
mallocStack
(MemoryStack stack) Deprecated.float
mAspect()
mAspect
(float value) Sets the specified value to themAspect
field.float
mClipPlaneFar
(float value) Sets the specified value to themClipPlaneFar
field.float
mClipPlaneNear
(float value) Sets the specified value to themClipPlaneNear
field.float
mHorizontalFOV
(float value) Sets the specified value to themHorizontalFOV
field.mLookAt()
mLookAt
(Consumer<AIVector3D> consumer) Passes themLookAt
field to the specifiedConsumer
.mLookAt
(AIVector3D value) Copies the specifiedAIVector3D
to themLookAt
field.mName()
Passes themName
field to the specifiedConsumer
.Copies the specifiedAIString
to themName
field.float
mOrthographicWidth
(float value) Sets the specified value to themOrthographicWidth
field.mPosition
(Consumer<AIVector3D> consumer) Passes themPosition
field to the specifiedConsumer
.mPosition
(AIVector3D value) Copies the specifiedAIVector3D
to themPosition
field.mUp()
mUp
(Consumer<AIVector3D> consumer) Passes themUp
field to the specifiedConsumer
.mUp
(AIVector3D value) Copies the specifiedAIVector3D
to themUp
field.static float
nmAspect
(long struct) Unsafe version ofmAspect()
.static void
nmAspect
(long struct, float value) Unsafe version ofmAspect
.static float
nmClipPlaneFar
(long struct) Unsafe version ofmClipPlaneFar()
.static void
nmClipPlaneFar
(long struct, float value) Unsafe version ofmClipPlaneFar
.static float
nmClipPlaneNear
(long struct) Unsafe version ofmClipPlaneNear()
.static void
nmClipPlaneNear
(long struct, float value) Unsafe version ofmClipPlaneNear
.static float
nmHorizontalFOV
(long struct) Unsafe version ofmHorizontalFOV()
.static void
nmHorizontalFOV
(long struct, float value) Unsafe version ofmHorizontalFOV
.static AIVector3D
nmLookAt
(long struct) Unsafe version ofmLookAt()
.static void
nmLookAt
(long struct, AIVector3D value) Unsafe version ofmLookAt
.static AIString
nmName
(long struct) Unsafe version ofmName()
.static void
Unsafe version ofmName
.static float
nmOrthographicWidth
(long struct) Unsafe version ofmOrthographicWidth()
.static void
nmOrthographicWidth
(long struct, float value) Unsafe version ofmOrthographicWidth
.static AIVector3D
nmPosition
(long struct) Unsafe version ofmPosition()
.static void
nmPosition
(long struct, AIVector3D value) Unsafe version ofmPosition
.static AIVector3D
nmUp
(long struct) Unsafe version ofmUp()
.static void
nmUp
(long struct, AIVector3D value) Unsafe version ofmUp
.Copies the specified struct data to this struct.set
(AIString mName, AIVector3D mPosition, AIVector3D mUp, AIVector3D mLookAt, float mHorizontalFOV, float mClipPlaneNear, float mClipPlaneFar, float mAspect, float mOrthographicWidth) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MNAME
public static final int MNAMEThe struct member offsets. -
MPOSITION
public static final int MPOSITIONThe struct member offsets. -
MUP
public static final int MUPThe struct member offsets. -
MLOOKAT
public static final int MLOOKATThe struct member offsets. -
MHORIZONTALFOV
public static final int MHORIZONTALFOVThe struct member offsets. -
MCLIPPLANENEAR
public static final int MCLIPPLANENEARThe struct member offsets. -
MCLIPPLANEFAR
public static final int MCLIPPLANEFARThe struct member offsets. -
MASPECT
public static final int MASPECTThe struct member offsets. -
MORTHOGRAPHICWIDTH
public static final int MORTHOGRAPHICWIDTHThe struct member offsets.
-
-
Constructor Details
-
AICamera
Creates aAICamera
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
mName
- Returns:
- a
AIString
view of themName
field.
-
mPosition
- Returns:
- a
AIVector3D
view of themPosition
field.
-
mUp
- Returns:
- a
AIVector3D
view of themUp
field.
-
mLookAt
- Returns:
- a
AIVector3D
view of themLookAt
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
Copies the specifiedAIString
to themName
field. -
mName
Passes themName
field to the specifiedConsumer
. -
mPosition
Copies the specifiedAIVector3D
to themPosition
field. -
mPosition
Passes themPosition
field to the specifiedConsumer
. -
mUp
Copies the specifiedAIVector3D
to themUp
field. -
mUp
Passes themUp
field to the specifiedConsumer
. -
mLookAt
Copies the specifiedAIVector3D
to themLookAt
field. -
mLookAt
Passes themLookAt
field to the specifiedConsumer
. -
mHorizontalFOV
Sets the specified value to themHorizontalFOV
field. -
mClipPlaneNear
Sets the specified value to themClipPlaneNear
field. -
mClipPlaneFar
Sets the specified value to themClipPlaneFar
field. -
mAspect
Sets the specified value to themAspect
field. -
mOrthographicWidth
Sets the specified value to themOrthographicWidth
field. -
set
public AICamera set(AIString mName, AIVector3D mPosition, AIVector3D mUp, AIVector3D mLookAt, float mHorizontalFOV, float mClipPlaneNear, float mClipPlaneFar, float mAspect, float mOrthographicWidth) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newAICamera
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAICamera
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAICamera
instance allocated withBufferUtils
. -
create
Returns a newAICamera
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAICamera.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAICamera.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAICamera.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAICamera.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newAICamera
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAICamera
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAICamera.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAICamera.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmName
Unsafe version ofmName()
. -
nmPosition
Unsafe version ofmPosition()
. -
nmUp
Unsafe version ofmUp()
. -
nmLookAt
Unsafe version ofmLookAt()
. -
nmHorizontalFOV
public static float nmHorizontalFOV(long struct) Unsafe version ofmHorizontalFOV()
. -
nmClipPlaneNear
public static float nmClipPlaneNear(long struct) Unsafe version ofmClipPlaneNear()
. -
nmClipPlaneFar
public static float nmClipPlaneFar(long struct) Unsafe version ofmClipPlaneFar()
. -
nmAspect
public static float nmAspect(long struct) Unsafe version ofmAspect()
. -
nmOrthographicWidth
public static float nmOrthographicWidth(long struct) Unsafe version ofmOrthographicWidth()
. -
nmName
Unsafe version ofmName
. -
nmPosition
Unsafe version ofmPosition
. -
nmUp
Unsafe version ofmUp
. -
nmLookAt
Unsafe version ofmLookAt
. -
nmHorizontalFOV
public static void nmHorizontalFOV(long struct, float value) Unsafe version ofmHorizontalFOV
. -
nmClipPlaneNear
public static void nmClipPlaneNear(long struct, float value) Unsafe version ofmClipPlaneNear
. -
nmClipPlaneFar
public static void nmClipPlaneFar(long struct, float value) Unsafe version ofmClipPlaneFar
. -
nmAspect
public static void nmAspect(long struct, float value) Unsafe version ofmAspect
. -
nmOrthographicWidth
public static void nmOrthographicWidth(long struct, float value) Unsafe version ofmOrthographicWidth
.
-