Package org.lwjgl.fmod
Class FMOD_3D_ATTRIBUTES
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_3D_ATTRIBUTES {
FMOD_VECTOR position;
FMOD_VECTOR velocity;
FMOD_VECTOR forward;
FMOD_VECTOR up;
}-
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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFMOD_3D_ATTRIBUTES(ByteBuffer container) Creates aFMOD_3D_ATTRIBUTESinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_3D_ATTRIBUTEScalloc()Returns a newFMOD_3D_ATTRIBUTESinstance allocated withmemCalloc.static FMOD_3D_ATTRIBUTES.Buffercalloc(int capacity) Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated withmemCalloc.static FMOD_3D_ATTRIBUTES.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_3D_ATTRIBUTEScalloc(MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTESinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_3D_ATTRIBUTEScreate()Returns a newFMOD_3D_ATTRIBUTESinstance allocated withBufferUtils.static FMOD_3D_ATTRIBUTES.Buffercreate(int capacity) Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated withBufferUtils.static FMOD_3D_ATTRIBUTEScreate(long address) Returns a newFMOD_3D_ATTRIBUTESinstance for the specified memory address.static FMOD_3D_ATTRIBUTES.Buffercreate(long address, int capacity) Create aFMOD_3D_ATTRIBUTES.Bufferinstance at the specified memory.static @Nullable FMOD_3D_ATTRIBUTEScreateSafe(long address) static @Nullable FMOD_3D_ATTRIBUTES.BuffercreateSafe(long address, int capacity) forward()forward(Consumer<FMOD_VECTOR> consumer) Passes theforwardfield to the specifiedConsumer.forward(FMOD_VECTOR value) Copies the specifiedFMOD_VECTORto theforwardfield.static FMOD_3D_ATTRIBUTESmalloc()Returns a newFMOD_3D_ATTRIBUTESinstance allocated withmemAlloc.static FMOD_3D_ATTRIBUTES.Buffermalloc(int capacity) Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated withmemAlloc.static FMOD_3D_ATTRIBUTES.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_3D_ATTRIBUTESmalloc(MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTESinstance allocated on the specifiedMemoryStack.static FMOD_VECTORnforward(long struct) Unsafe version offorward().static voidnforward(long struct, FMOD_VECTOR value) Unsafe version offorward.static FMOD_VECTORnposition$(long struct) Unsafe version ofposition$().static voidnposition$(long struct, FMOD_VECTOR value) Unsafe version ofposition$.static FMOD_VECTORnup(long struct) Unsafe version ofup().static voidnup(long struct, FMOD_VECTOR value) Unsafe version ofup.static FMOD_VECTORnvelocity(long struct) Unsafe version ofvelocity().static voidnvelocity(long struct, FMOD_VECTOR value) Unsafe version ofvelocity.position$(Consumer<FMOD_VECTOR> consumer) Passes thepositionfield to the specifiedConsumer.position$(FMOD_VECTOR value) Copies the specifiedFMOD_VECTORto thepositionfield.set(FMOD_3D_ATTRIBUTES src) Copies the specified struct data to this struct.set(FMOD_VECTOR position$, FMOD_VECTOR velocity, FMOD_VECTOR forward, FMOD_VECTOR up) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).up()up(Consumer<FMOD_VECTOR> consumer) Passes theupfield to the specifiedConsumer.up(FMOD_VECTOR value) Copies the specifiedFMOD_VECTORto theupfield.velocity()velocity(Consumer<FMOD_VECTOR> consumer) Passes thevelocityfield to the specifiedConsumer.velocity(FMOD_VECTOR value) Copies the specifiedFMOD_VECTORto thevelocityfield.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. -
POSITION
public static final int POSITIONThe struct member offsets. -
VELOCITY
public static final int VELOCITYThe struct member offsets. -
FORWARD
public static final int FORWARDThe struct member offsets. -
UP
public static final int UPThe struct member offsets.
-
-
Constructor Details
-
FMOD_3D_ATTRIBUTES
Creates aFMOD_3D_ATTRIBUTESinstance 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).- Specified by:
sizeofin classStruct<FMOD_3D_ATTRIBUTES>
-
position$
- Returns:
- a
FMOD_VECTORview of thepositionfield.
-
velocity
- Returns:
- a
FMOD_VECTORview of thevelocityfield.
-
forward
- Returns:
- a
FMOD_VECTORview of theforwardfield.
-
up
- Returns:
- a
FMOD_VECTORview of theupfield.
-
position$
Copies the specifiedFMOD_VECTORto thepositionfield. -
position$
Passes thepositionfield to the specifiedConsumer. -
velocity
Copies the specifiedFMOD_VECTORto thevelocityfield. -
velocity
Passes thevelocityfield to the specifiedConsumer. -
forward
Copies the specifiedFMOD_VECTORto theforwardfield. -
forward
Passes theforwardfield to the specifiedConsumer. -
up
Copies the specifiedFMOD_VECTORto theupfield. -
up
Passes theupfield to the specifiedConsumer. -
set
public FMOD_3D_ATTRIBUTES set(FMOD_VECTOR position$, FMOD_VECTOR velocity, FMOD_VECTOR forward, FMOD_VECTOR up) 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 newFMOD_3D_ATTRIBUTESinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_3D_ATTRIBUTESinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_3D_ATTRIBUTESinstance allocated withBufferUtils. -
create
Returns a newFMOD_3D_ATTRIBUTESinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_3D_ATTRIBUTES.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_3D_ATTRIBUTESinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_3D_ATTRIBUTESinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_3D_ATTRIBUTES.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nposition$
Unsafe version ofposition$(). -
nvelocity
Unsafe version ofvelocity(). -
nforward
Unsafe version offorward(). -
nup
Unsafe version ofup(). -
nposition$
Unsafe version ofposition$. -
nvelocity
Unsafe version ofvelocity. -
nforward
Unsafe version offorward. -
nup
Unsafe version ofup.
-