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.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 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
ConstructorsConstructorDescriptionParOctasphereConfig(ByteBuffer container) Creates aParOctasphereConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParOctasphereConfigcalloc()Returns a newParOctasphereConfiginstance allocated withmemCalloc.static ParOctasphereConfig.Buffercalloc(int capacity) Returns a newParOctasphereConfig.Bufferinstance allocated withmemCalloc.static ParOctasphereConfig.Buffercalloc(int capacity, MemoryStack stack) Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParOctasphereConfigcalloc(MemoryStack stack) Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatcorner_radius(float value) Sets the specified value to thecorner_radiusfield.static ParOctasphereConfigcreate()Returns a newParOctasphereConfiginstance allocated withBufferUtils.static ParOctasphereConfig.Buffercreate(int capacity) Returns a newParOctasphereConfig.Bufferinstance allocated withBufferUtils.static ParOctasphereConfigcreate(long address) Returns a newParOctasphereConfiginstance for the specified memory address.static ParOctasphereConfig.Buffercreate(long address, int capacity) Create aParOctasphereConfig.Bufferinstance at the specified memory.static @Nullable ParOctasphereConfigcreateSafe(long address) static @Nullable ParOctasphereConfig.BuffercreateSafe(long address, int capacity) floatdepth()depth(float value) Sets the specified value to thedepthfield.floatheight()height(float value) Sets the specified value to theheightfield.static ParOctasphereConfigmalloc()Returns a newParOctasphereConfiginstance allocated withmemAlloc.static ParOctasphereConfig.Buffermalloc(int capacity) Returns a newParOctasphereConfig.Bufferinstance allocated withmemAlloc.static ParOctasphereConfig.Buffermalloc(int capacity, MemoryStack stack) Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStack.static ParOctasphereConfigmalloc(MemoryStack stack) Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStack.static floatncorner_radius(long struct) Unsafe version ofcorner_radius().static voidncorner_radius(long struct, float value) Unsafe version ofcorner_radius.static floatndepth(long struct) Unsafe version ofdepth().static voidndepth(long struct, float value) Unsafe version ofdepth.static floatnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, float value) Unsafe version ofheight.static intnnormals_mode(long struct) Unsafe version ofnormals_mode().static voidnnormals_mode(long struct, int value) Unsafe version ofnormals_mode.static intnnum_subdivisions(long struct) Unsafe version ofnum_subdivisions().static voidnnum_subdivisions(long struct, int value) Unsafe version ofnum_subdivisions.intnormals_mode(int value) Sets the specified value to thenormals_modefield.intnum_subdivisions(int value) Sets the specified value to thenum_subdivisionsfield.static intnuv_mode(long struct) Unsafe version ofuv_mode().static voidnuv_mode(long struct, int value) Unsafe version ofuv_mode.static floatnwidth(long struct) Unsafe version ofwidth().static voidnwidth(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.intsizeof()Returnssizeof(struct).intuv_mode()uv_mode(int value) Sets the specified value to theuv_modefield.floatwidth()width(float value) Sets the specified value to thewidthfield.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. -
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 aParOctasphereConfiginstance 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<ParOctasphereConfig>
-
corner_radius
public float corner_radius()- Returns:
- the value of the
corner_radiusfield.
-
width
public float width()- Returns:
- the value of the
widthfield.
-
height
public float height()- Returns:
- the value of the
heightfield.
-
depth
public float depth()- Returns:
- the value of the
depthfield.
-
num_subdivisions
public int num_subdivisions()- Returns:
- the value of the
num_subdivisionsfield.
-
uv_mode
public int uv_mode()- Returns:
- the value of the
uv_modefield.
-
normals_mode
public int normals_mode()- Returns:
- the value of the
normals_modefield.
-
corner_radius
Sets the specified value to thecorner_radiusfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
depth
Sets the specified value to thedepthfield. -
num_subdivisions
Sets the specified value to thenum_subdivisionsfield. -
uv_mode
Sets the specified value to theuv_modefield. -
normals_mode
Sets the specified value to thenormals_modefield. -
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 newParOctasphereConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newParOctasphereConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newParOctasphereConfiginstance allocated withBufferUtils. -
create
Returns a newParOctasphereConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newParOctasphereConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newParOctasphereConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newParOctasphereConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aParOctasphereConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStackand 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.
-