Package org.lwjgl.fmod
Class FMOD_3D_ATTRIBUTES
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FMOD_3D_ATTRIBUTES {
{@link FMOD_VECTOR FMOD_VECTOR} position;
{@link FMOD_VECTOR FMOD_VECTOR} velocity;
{@link FMOD_VECTOR FMOD_VECTOR} forward;
{@link FMOD_VECTOR FMOD_VECTOR} up;
}
-
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 size in bytes.static final int
The struct member offsets.static final int
The 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_ATTRIBUTES
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_3D_ATTRIBUTES
calloc()
Returns a newFMOD_3D_ATTRIBUTES
instance allocated withmemCalloc
.static FMOD_3D_ATTRIBUTES.Buffer
calloc
(int capacity) Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated withmemCalloc
.static FMOD_3D_ATTRIBUTES.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_3D_ATTRIBUTES
calloc
(MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTES
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_3D_ATTRIBUTES
create()
Returns a newFMOD_3D_ATTRIBUTES
instance allocated withBufferUtils
.static FMOD_3D_ATTRIBUTES.Buffer
create
(int capacity) Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated withBufferUtils
.static FMOD_3D_ATTRIBUTES
create
(long address) Returns a newFMOD_3D_ATTRIBUTES
instance for the specified memory address.static FMOD_3D_ATTRIBUTES.Buffer
create
(long address, int capacity) Create aFMOD_3D_ATTRIBUTES.Buffer
instance at the specified memory.static @Nullable FMOD_3D_ATTRIBUTES
createSafe
(long address) static @Nullable FMOD_3D_ATTRIBUTES.Buffer
createSafe
(long address, int capacity) forward()
forward
(Consumer<FMOD_VECTOR> consumer) Passes theforward
field to the specifiedConsumer
.forward
(FMOD_VECTOR value) Copies the specifiedFMOD_VECTOR
to theforward
field.static FMOD_3D_ATTRIBUTES
malloc()
Returns a newFMOD_3D_ATTRIBUTES
instance allocated withmemAlloc
.static FMOD_3D_ATTRIBUTES.Buffer
malloc
(int capacity) Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated withmemAlloc
.static FMOD_3D_ATTRIBUTES.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_3D_ATTRIBUTES
malloc
(MemoryStack stack) Returns a newFMOD_3D_ATTRIBUTES
instance allocated on the specifiedMemoryStack
.static FMOD_VECTOR
nforward
(long struct) Unsafe version offorward()
.static void
nforward
(long struct, FMOD_VECTOR value) Unsafe version offorward
.static FMOD_VECTOR
nposition$
(long struct) Unsafe version ofposition$()
.static void
nposition$
(long struct, FMOD_VECTOR value) Unsafe version ofposition$
.static FMOD_VECTOR
nup
(long struct) Unsafe version ofup()
.static void
nup
(long struct, FMOD_VECTOR value) Unsafe version ofup
.static FMOD_VECTOR
nvelocity
(long struct) Unsafe version ofvelocity()
.static void
nvelocity
(long struct, FMOD_VECTOR value) Unsafe version ofvelocity
.position$
(Consumer<FMOD_VECTOR> consumer) Passes theposition
field to the specifiedConsumer
.position$
(FMOD_VECTOR value) Copies the specifiedFMOD_VECTOR
to theposition
field.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.int
sizeof()
Returnssizeof(struct)
.up()
up
(Consumer<FMOD_VECTOR> consumer) Passes theup
field to the specifiedConsumer
.up
(FMOD_VECTOR value) Copies the specifiedFMOD_VECTOR
to theup
field.velocity()
velocity
(Consumer<FMOD_VECTOR> consumer) Passes thevelocity
field to the specifiedConsumer
.velocity
(FMOD_VECTOR value) Copies the specifiedFMOD_VECTOR
to thevelocity
field.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. -
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_ATTRIBUTES
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)
.- Specified by:
sizeof
in classStruct<FMOD_3D_ATTRIBUTES>
-
position$
- Returns:
- a
FMOD_VECTOR
view of theposition
field.
-
velocity
- Returns:
- a
FMOD_VECTOR
view of thevelocity
field.
-
forward
- Returns:
- a
FMOD_VECTOR
view of theforward
field.
-
up
- Returns:
- a
FMOD_VECTOR
view of theup
field.
-
position$
Copies the specifiedFMOD_VECTOR
to theposition
field. -
position$
Passes theposition
field to the specifiedConsumer
. -
velocity
Copies the specifiedFMOD_VECTOR
to thevelocity
field. -
velocity
Passes thevelocity
field to the specifiedConsumer
. -
forward
Copies the specifiedFMOD_VECTOR
to theforward
field. -
forward
Passes theforward
field to the specifiedConsumer
. -
up
Copies the specifiedFMOD_VECTOR
to theup
field. -
up
Passes theup
field 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_ATTRIBUTES
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_3D_ATTRIBUTES
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_3D_ATTRIBUTES
instance allocated withBufferUtils
. -
create
Returns a newFMOD_3D_ATTRIBUTES
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_3D_ATTRIBUTES.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_3D_ATTRIBUTES
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_3D_ATTRIBUTES
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_3D_ATTRIBUTES.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-