Package org.lwjgl.util.par
Class ParOctasphereConfig
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.par.ParOctasphereConfig
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ParOctasphereConfig extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
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 Classes Modifier and Type Class Description static classParOctasphereConfig.BufferAn array ofParOctasphereConfigstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCORNER_RADIUS
DEPTH
HEIGHT
NORMALS_MODE
NUM_SUBDIVISIONSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUV_MODE
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ParOctasphereConfig(java.nio.ByteBuffer container)Creates aParOctasphereConfiginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParOctasphereConfigcalloc()Returns a newParOctasphereConfiginstance allocated withmemCalloc.static ParOctasphereConfig.Buffercalloc(int capacity)Returns a newParOctasphereConfig.Bufferinstance allocated withmemCalloc.static ParOctasphereConfig.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParOctasphereConfigcalloc(org.lwjgl.system.MemoryStack stack)Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatcorner_radius()ParOctasphereConfigcorner_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 ParOctasphereConfigcreateSafe(long address)static ParOctasphereConfig.BuffercreateSafe(long address, int capacity)floatdepth()ParOctasphereConfigdepth(float value)Sets the specified value to thedepthfield.floatheight()ParOctasphereConfigheight(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, org.lwjgl.system.MemoryStack stack)Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStack.static ParOctasphereConfigmalloc(org.lwjgl.system.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()ParOctasphereConfignormals_mode(int value)Sets the specified value to thenormals_modefield.intnum_subdivisions()ParOctasphereConfignum_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.ParOctasphereConfigset(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.ParOctasphereConfigset(ParOctasphereConfig src)Copies the specified struct data to this struct.intsizeof()intuv_mode()ParOctasphereConfiguv_mode(int value)Sets the specified value to theuv_modefield.floatwidth()ParOctasphereConfigwidth(float value)Sets the specified value to thewidthfield.
-
-
-
Constructor Detail
-
ParOctasphereConfig
public ParOctasphereConfig(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public ParOctasphereConfig corner_radius(float value)
Sets the specified value to thecorner_radiusfield.
-
width
public ParOctasphereConfig width(float value)
Sets the specified value to thewidthfield.
-
height
public ParOctasphereConfig height(float value)
Sets the specified value to theheightfield.
-
depth
public ParOctasphereConfig depth(float value)
Sets the specified value to thedepthfield.
-
num_subdivisions
public ParOctasphereConfig num_subdivisions(int value)
Sets the specified value to thenum_subdivisionsfield.
-
uv_mode
public ParOctasphereConfig uv_mode(int value)
Sets the specified value to theuv_modefield.
-
normals_mode
public ParOctasphereConfig normals_mode(int value)
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
public ParOctasphereConfig set(ParOctasphereConfig src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ParOctasphereConfig malloc()
Returns a newParOctasphereConfiginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ParOctasphereConfig calloc()
Returns a newParOctasphereConfiginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ParOctasphereConfig create()
Returns a newParOctasphereConfiginstance allocated withBufferUtils.
-
create
public static ParOctasphereConfig create(long address)
Returns a newParOctasphereConfiginstance for the specified memory address.
-
createSafe
@Nullable public static ParOctasphereConfig createSafe(long address)
-
malloc
public static ParOctasphereConfig.Buffer malloc(int capacity)
Returns a newParOctasphereConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ParOctasphereConfig.Buffer calloc(int capacity)
Returns a newParOctasphereConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ParOctasphereConfig.Buffer create(int capacity)
Returns a newParOctasphereConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ParOctasphereConfig.Buffer create(long address, int capacity)
Create aParOctasphereConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ParOctasphereConfig.Buffer createSafe(long address, int capacity)
-
malloc
public static ParOctasphereConfig malloc(org.lwjgl.system.MemoryStack stack)
Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ParOctasphereConfig calloc(org.lwjgl.system.MemoryStack stack)
Returns a newParOctasphereConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ParOctasphereConfig.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ParOctasphereConfig.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParOctasphereConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-