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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aAICamerainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AICameracalloc()Returns a newAICamerainstance allocated withmemCalloc.static AICamera.Buffercalloc(int capacity) Returns a newAICamera.Bufferinstance allocated withmemCalloc.static AICamera.Buffercalloc(int capacity, MemoryStack stack) Returns a newAICamera.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AICameracalloc(MemoryStack stack) Returns a newAICamerainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AICameraDeprecated.static AICamera.BuffercallocStack(int capacity) Deprecated.static AICamera.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AICameracallocStack(MemoryStack stack) Deprecated.static AICameracreate()Returns a newAICamerainstance allocated withBufferUtils.static AICamera.Buffercreate(int capacity) Returns a newAICamera.Bufferinstance allocated withBufferUtils.static AICameracreate(long address) Returns a newAICamerainstance for the specified memory address.static AICamera.Buffercreate(long address, int capacity) Create aAICamera.Bufferinstance at the specified memory.static @Nullable AICameracreateSafe(long address) static @Nullable AICamera.BuffercreateSafe(long address, int capacity) static AICameramalloc()Returns a newAICamerainstance allocated withmemAlloc.static AICamera.Buffermalloc(int capacity) Returns a newAICamera.Bufferinstance allocated withmemAlloc.static AICamera.Buffermalloc(int capacity, MemoryStack stack) Returns a newAICamera.Bufferinstance allocated on the specifiedMemoryStack.static AICameramalloc(MemoryStack stack) Returns a newAICamerainstance allocated on the specifiedMemoryStack.static AICameraDeprecated.static AICamera.BuffermallocStack(int capacity) Deprecated.static AICamera.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AICameramallocStack(MemoryStack stack) Deprecated.floatmAspect()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.static floatnmAspect(long struct) Unsafe version ofmAspect().static voidnmAspect(long struct, float value) Unsafe version ofmAspect.static floatnmClipPlaneFar(long struct) Unsafe version ofmClipPlaneFar().static voidnmClipPlaneFar(long struct, float value) Unsafe version ofmClipPlaneFar.static floatnmClipPlaneNear(long struct) Unsafe version ofmClipPlaneNear().static voidnmClipPlaneNear(long struct, float value) Unsafe version ofmClipPlaneNear.static floatnmHorizontalFOV(long struct) Unsafe version ofmHorizontalFOV().static voidnmHorizontalFOV(long struct, float value) Unsafe version ofmHorizontalFOV.static AIVector3DnmLookAt(long struct) Unsafe version ofmLookAt().static voidnmLookAt(long struct, AIVector3D value) Unsafe version ofmLookAt.static AIStringnmName(long struct) Unsafe version ofmName().static voidUnsafe version ofmName.static floatnmOrthographicWidth(long struct) Unsafe version ofmOrthographicWidth().static voidnmOrthographicWidth(long struct, float value) Unsafe version ofmOrthographicWidth.static AIVector3DnmPosition(long struct) Unsafe version ofmPosition().static voidnmPosition(long struct, AIVector3D value) Unsafe version ofmPosition.static AIVector3DnmUp(long struct) Unsafe version ofmUp().static voidnmUp(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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aAICamerainstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
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. -
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 newAICamerainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAICamerainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAICamerainstance allocated withBufferUtils. -
create
Returns a newAICamerainstance for the specified memory address. -
createSafe
-
malloc
Returns a newAICamera.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAICamera.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAICamera.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAICamera.Bufferinstance 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 newAICamerainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAICamerainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAICamera.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAICamera.Bufferinstance allocated on the specifiedMemoryStackand 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.
-