Package org.lwjgl.util.par
Class ParOctasphereConfig
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct par_octasphere_config {
float corner_radius;
float width;
float height;
float depth;
int num_subdivisions;
par_octasphere_uv_mode uv_mode;
par_octasphere_normals_mode normals_mode;
}
-
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 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
ConstructorsConstructorDescriptionParOctasphereConfig
(ByteBuffer container) Creates aParOctasphereConfig
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParOctasphereConfig
calloc()
Returns a newParOctasphereConfig
instance allocated withmemCalloc
.static ParOctasphereConfig.Buffer
calloc
(int capacity) Returns a newParOctasphereConfig.Buffer
instance allocated withmemCalloc
.static ParOctasphereConfig.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newParOctasphereConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ParOctasphereConfig
calloc
(MemoryStack stack) Returns a newParOctasphereConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.float
corner_radius
(float value) Sets the specified value to thecorner_radius
field.static ParOctasphereConfig
create()
Returns a newParOctasphereConfig
instance allocated withBufferUtils
.static ParOctasphereConfig.Buffer
create
(int capacity) Returns a newParOctasphereConfig.Buffer
instance allocated withBufferUtils
.static ParOctasphereConfig
create
(long address) Returns a newParOctasphereConfig
instance for the specified memory address.static ParOctasphereConfig.Buffer
create
(long address, int capacity) Create aParOctasphereConfig.Buffer
instance at the specified memory.static @Nullable ParOctasphereConfig
createSafe
(long address) static @Nullable ParOctasphereConfig.Buffer
createSafe
(long address, int capacity) float
depth()
depth
(float value) Sets the specified value to thedepth
field.float
height()
height
(float value) Sets the specified value to theheight
field.static ParOctasphereConfig
malloc()
Returns a newParOctasphereConfig
instance allocated withmemAlloc
.static ParOctasphereConfig.Buffer
malloc
(int capacity) Returns a newParOctasphereConfig.Buffer
instance allocated withmemAlloc
.static ParOctasphereConfig.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newParOctasphereConfig.Buffer
instance allocated on the specifiedMemoryStack
.static ParOctasphereConfig
malloc
(MemoryStack stack) Returns a newParOctasphereConfig
instance allocated on the specifiedMemoryStack
.static float
ncorner_radius
(long struct) Unsafe version ofcorner_radius()
.static void
ncorner_radius
(long struct, float value) Unsafe version ofcorner_radius
.static float
ndepth
(long struct) Unsafe version ofdepth()
.static void
ndepth
(long struct, float value) Unsafe version ofdepth
.static float
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, float value) Unsafe version ofheight
.static int
nnormals_mode
(long struct) Unsafe version ofnormals_mode()
.static void
nnormals_mode
(long struct, int value) Unsafe version ofnormals_mode
.static int
nnum_subdivisions
(long struct) Unsafe version ofnum_subdivisions()
.static void
nnum_subdivisions
(long struct, int value) Unsafe version ofnum_subdivisions
.int
normals_mode
(int value) Sets the specified value to thenormals_mode
field.int
num_subdivisions
(int value) Sets the specified value to thenum_subdivisions
field.static int
nuv_mode
(long struct) Unsafe version ofuv_mode()
.static void
nuv_mode
(long struct, int value) Unsafe version ofuv_mode
.static float
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, float value) Unsafe version ofwidth
.set
(float corner_radius, float width, float height, float depth, int num_subdivisions, int uv_mode, int normals_mode) Initializes this struct with the specified values.set
(ParOctasphereConfig src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
uv_mode()
uv_mode
(int value) Sets the specified value to theuv_mode
field.float
width()
width
(float value) Sets the specified value to thewidth
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. -
CORNER_RADIUS
public static final int CORNER_RADIUSThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
NUM_SUBDIVISIONS
public static final int NUM_SUBDIVISIONSThe struct member offsets. -
UV_MODE
public static final int UV_MODEThe struct member offsets. -
NORMALS_MODE
public static final int NORMALS_MODEThe struct member offsets.
-
-
Constructor Details
-
ParOctasphereConfig
Creates aParOctasphereConfig
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<ParOctasphereConfig>
-
corner_radius
public float corner_radius()- Returns:
- the value of the
corner_radius
field.
-
width
public float width()- Returns:
- the value of the
width
field.
-
height
public float height()- Returns:
- the value of the
height
field.
-
depth
public float depth()- Returns:
- the value of the
depth
field.
-
num_subdivisions
public int num_subdivisions()- Returns:
- the value of the
num_subdivisions
field.
-
uv_mode
public int uv_mode()- Returns:
- the value of the
uv_mode
field.
-
normals_mode
public int normals_mode()- Returns:
- the value of the
normals_mode
field.
-
corner_radius
Sets the specified value to thecorner_radius
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
depth
Sets the specified value to thedepth
field. -
num_subdivisions
Sets the specified value to thenum_subdivisions
field. -
uv_mode
Sets the specified value to theuv_mode
field. -
normals_mode
Sets the specified value to thenormals_mode
field. -
set
public ParOctasphereConfig set(float corner_radius, float width, float height, float depth, int num_subdivisions, int uv_mode, int normals_mode) 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 newParOctasphereConfig
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newParOctasphereConfig
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newParOctasphereConfig
instance allocated withBufferUtils
. -
create
Returns a newParOctasphereConfig
instance for the specified memory address. -
createSafe
-
malloc
Returns a newParOctasphereConfig.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newParOctasphereConfig.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newParOctasphereConfig.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aParOctasphereConfig.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newParOctasphereConfig
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newParOctasphereConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newParOctasphereConfig.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newParOctasphereConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncorner_radius
public static float ncorner_radius(long struct) Unsafe version ofcorner_radius()
. -
nwidth
public static float nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static float nheight(long struct) Unsafe version ofheight()
. -
ndepth
public static float ndepth(long struct) Unsafe version ofdepth()
. -
nnum_subdivisions
public static int nnum_subdivisions(long struct) Unsafe version ofnum_subdivisions()
. -
nuv_mode
public static int nuv_mode(long struct) Unsafe version ofuv_mode()
. -
nnormals_mode
public static int nnormals_mode(long struct) Unsafe version ofnormals_mode()
. -
ncorner_radius
public static void ncorner_radius(long struct, float value) Unsafe version ofcorner_radius
. -
nwidth
public static void nwidth(long struct, float value) Unsafe version ofwidth
. -
nheight
public static void nheight(long struct, float value) Unsafe version ofheight
. -
ndepth
public static void ndepth(long struct, float value) Unsafe version ofdepth
. -
nnum_subdivisions
public static void nnum_subdivisions(long struct, int value) Unsafe version ofnum_subdivisions
. -
nuv_mode
public static void nuv_mode(long struct, int value) Unsafe version ofuv_mode
. -
nnormals_mode
public static void nnormals_mode(long struct, int value) Unsafe version ofnormals_mode
.
-