Top Description Inners Fields Constructors Methods
org.lwjgl.util.par

public Class ParOctasphereConfig

extends Struct<ParOctasphereConfig>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct par_octasphere_config
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CORNER_RADIUS

The struct member offsets.

public static final int
DEPTH

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
NORMALS_MODE

The struct member offsets.

public static final int
NUM_SUBDIVISIONS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UV_MODE

The struct member offsets.

public static final int
WIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
ParOctasphereConfig(long address, ByteBuffer container)

public
ParOctasphereConfig(ByteBuffer container)

Creates a ParOctasphereConfig instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static ParOctasphereConfig
calloc()

Returns a new ParOctasphereConfig instance allocated with memCalloc.

public static ParOctasphereConfig.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new ParOctasphereConfig.Buffer instance allocated with memCalloc.

public static ParOctasphereConfig
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ParOctasphereConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ParOctasphereConfig.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ParOctasphereConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public float

Returns:

the value of the corner_radius field.
corner_radius
()

public ParOctasphereConfig
corner_radius(float value)

Sets the specified value to the corner_radius field.

protected ParOctasphereConfig
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static ParOctasphereConfig
create()

Returns a new ParOctasphereConfig instance allocated with BufferUtils.

public static ParOctasphereConfig
create(long address)

Returns a new ParOctasphereConfig instance for the specified memory address.

public static ParOctasphereConfig.Buffer
create(int
the buffer capacity
capacity
)

Returns a new ParOctasphereConfig.Buffer instance allocated with BufferUtils.

public static ParOctasphereConfig.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a ParOctasphereConfig.Buffer instance at the specified memory.

public static ParOctasphereConfig
createSafe(long address)

Like create, but returns null if address is NULL.

public static ParOctasphereConfig.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float

Returns:

the value of the depth field.
depth
()

public ParOctasphereConfig
depth(float value)

Sets the specified value to the depth field.

public float

Returns:

the value of the height field.
height
()

public ParOctasphereConfig
height(float value)

Sets the specified value to the height field.

public static ParOctasphereConfig
malloc()

Returns a new ParOctasphereConfig instance allocated with memAlloc.

public static ParOctasphereConfig.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new ParOctasphereConfig.Buffer instance allocated with memAlloc.

public static ParOctasphereConfig
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ParOctasphereConfig instance allocated on the specified MemoryStack.

public static ParOctasphereConfig.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ParOctasphereConfig.Buffer instance allocated on the specified MemoryStack.

public static float
ncorner_radius(long struct)

Unsafe version of corner_radius.

public static void
ncorner_radius(long struct, float value)

Unsafe version of corner_radius.

public static float
ndepth(long struct)

Unsafe version of depth.

public static void
ndepth(long struct, float value)

Unsafe version of depth.

public static float
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, float value)

Unsafe version of height.

public static int
nnormals_mode(long struct)

Unsafe version of normals_mode.

public static void
nnormals_mode(long struct, int value)

Unsafe version of normals_mode.

public static int
nnum_subdivisions(long struct)

Unsafe version of num_subdivisions.

public static void
nnum_subdivisions(long struct, int value)

Unsafe version of num_subdivisions.

public int

Returns:

the value of the normals_mode field.
normals_mode
()

public ParOctasphereConfig
normals_mode(int value)

Sets the specified value to the normals_mode field.

public int

Returns:

the value of the num_subdivisions field.
num_subdivisions
()

public ParOctasphereConfig
num_subdivisions(int value)

Sets the specified value to the num_subdivisions field.

public static int
nuv_mode(long struct)

Unsafe version of uv_mode.

public static void
nuv_mode(long struct, int value)

Unsafe version of uv_mode.

public static float
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, float value)

Unsafe version of width.

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.

public ParOctasphereConfig

Returns:

this struct
set
(ParOctasphereConfig
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the uv_mode field.
uv_mode
()

public ParOctasphereConfig
uv_mode(int value)

Sets the specified value to the uv_mode field.

public float

Returns:

the value of the width field.
width
()

public ParOctasphereConfig
width(float value)

Sets the specified value to the width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CORNER_RADIUSback to summary
public static final int CORNER_RADIUS

The struct member offsets.

DEPTHback to summary
public static final int DEPTH

The struct member offsets.

HEIGHTback to summary
public static final int HEIGHT

The struct member offsets.

NORMALS_MODEback to summary
public static final int NORMALS_MODE

The struct member offsets.

NUM_SUBDIVISIONSback to summary
public static final int NUM_SUBDIVISIONS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UV_MODEback to summary
public static final int UV_MODE

The struct member offsets.

WIDTHback to summary
public static final int WIDTH

The struct member offsets.

Constructor Detail

ParOctasphereConfigback to summary
protected ParOctasphereConfig(long address, ByteBuffer container)
ParOctasphereConfigback to summary
public ParOctasphereConfig(ByteBuffer container)

Creates a ParOctasphereConfig instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static ParOctasphereConfig calloc()

Returns a new ParOctasphereConfig instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static ParOctasphereConfig.Buffer calloc(int capacity)

Returns a new ParOctasphereConfig.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static ParOctasphereConfig calloc(MemoryStack stack)

Returns a new ParOctasphereConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static ParOctasphereConfig.Buffer calloc(int capacity, MemoryStack stack)

Returns a new ParOctasphereConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

corner_radiusback to summary
public float corner_radius()
Returns:float

the value of the corner_radius field.

corner_radiusback to summary
public ParOctasphereConfig corner_radius(float value)

Sets the specified value to the corner_radius field.

createback to summary
protected ParOctasphereConfig create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static ParOctasphereConfig create()

Returns a new ParOctasphereConfig instance allocated with BufferUtils.

createback to summary
public static ParOctasphereConfig create(long address)

Returns a new ParOctasphereConfig instance for the specified memory address.

createback to summary
public static ParOctasphereConfig.Buffer create(int capacity)

Returns a new ParOctasphereConfig.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static ParOctasphereConfig.Buffer create(long address, int capacity)

Create a ParOctasphereConfig.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static ParOctasphereConfig createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static ParOctasphereConfig.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
depthback to summary
public float depth()
Returns:float

the value of the depth field.

depthback to summary
public ParOctasphereConfig depth(float value)

Sets the specified value to the depth field.

heightback to summary
public float height()
Returns:float

the value of the height field.

heightback to summary
public ParOctasphereConfig height(float value)

Sets the specified value to the height field.

mallocback to summary
public static ParOctasphereConfig malloc()

Returns a new ParOctasphereConfig instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static ParOctasphereConfig.Buffer malloc(int capacity)

Returns a new ParOctasphereConfig.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static ParOctasphereConfig malloc(MemoryStack stack)

Returns a new ParOctasphereConfig instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static ParOctasphereConfig.Buffer malloc(int capacity, MemoryStack stack)

Returns a new ParOctasphereConfig.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ncorner_radiusback to summary
public static float ncorner_radius(long struct)

Unsafe version of corner_radius.

ncorner_radiusback to summary
public static void ncorner_radius(long struct, float value)

Unsafe version of corner_radius.

ndepthback to summary
public static float ndepth(long struct)

Unsafe version of depth.

ndepthback to summary
public static void ndepth(long struct, float value)

Unsafe version of depth.

nheightback to summary
public static float nheight(long struct)

Unsafe version of height.

nheightback to summary
public static void nheight(long struct, float value)

Unsafe version of height.

nnormals_modeback to summary
public static int nnormals_mode(long struct)

Unsafe version of normals_mode.

nnormals_modeback to summary
public static void nnormals_mode(long struct, int value)

Unsafe version of normals_mode.

nnum_subdivisionsback to summary
public static int nnum_subdivisions(long struct)

Unsafe version of num_subdivisions.

nnum_subdivisionsback to summary
public static void nnum_subdivisions(long struct, int value)

Unsafe version of num_subdivisions.

normals_modeback to summary
public int normals_mode()
Returns:int

the value of the normals_mode field.

Annotations
@NativeType:par_octasphere_normals_mode
normals_modeback to summary
public ParOctasphereConfig normals_mode(int value)

Sets the specified value to the normals_mode field.

num_subdivisionsback to summary
public int num_subdivisions()
Returns:int

the value of the num_subdivisions field.

num_subdivisionsback to summary
public ParOctasphereConfig num_subdivisions(int value)

Sets the specified value to the num_subdivisions field.

nuv_modeback to summary
public static int nuv_mode(long struct)

Unsafe version of uv_mode.

nuv_modeback to summary
public static void nuv_mode(long struct, int value)

Unsafe version of uv_mode.

nwidthback to summary
public static float nwidth(long struct)

Unsafe version of width.

nwidthback to summary
public static void nwidth(long struct, float value)

Unsafe version of width.

setback to summary
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.

setback to summary
public ParOctasphereConfig set(ParOctasphereConfig src)

Copies the specified struct data to this struct.

Parameters
src:ParOctasphereConfig

the source struct

Returns:ParOctasphereConfig

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
uv_modeback to summary
public int uv_mode()
Returns:int

the value of the uv_mode field.

Annotations
@NativeType:par_octasphere_uv_mode
uv_modeback to summary
public ParOctasphereConfig uv_mode(int value)

Sets the specified value to the uv_mode field.

widthback to summary
public float width()
Returns:float

the value of the width field.

widthback to summary
public ParOctasphereConfig width(float value)

Sets the specified value to the width field.

org.lwjgl.util.par back to summary

public Class ParOctasphereConfig.Buffer

extends StructBuffer<ParOctasphereConfig, ParOctasphereConfig.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of ParOctasphereConfig structs.

Field Summary

Modifier and TypeField and Description
private static final ParOctasphereConfig

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new ParOctasphereConfig.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the value of the corner_radius field.
corner_radius
()

public ParOctasphereConfig.Buffer
corner_radius(float value)

Sets the specified value to the corner_radius field.

public float

Returns:

the value of the depth field.
depth
()

public ParOctasphereConfig.Buffer
depth(float value)

Sets the specified value to the depth field.

protected ParOctasphereConfig
public float

Returns:

the value of the height field.
height
()

public ParOctasphereConfig.Buffer
height(float value)

Sets the specified value to the height field.

public int

Returns:

the value of the normals_mode field.
normals_mode
()

public ParOctasphereConfig.Buffer
normals_mode(int value)

Sets the specified value to the normals_mode field.

public int

Returns:

the value of the num_subdivisions field.
num_subdivisions
()

public ParOctasphereConfig.Buffer
num_subdivisions(int value)

Sets the specified value to the num_subdivisions field.

protected ParOctasphereConfig.Buffer
public int

Returns:

the value of the uv_mode field.
uv_mode
()

public ParOctasphereConfig.Buffer
uv_mode(int value)

Sets the specified value to the uv_mode field.

public float

Returns:

the value of the width field.
width
()

public ParOctasphereConfig.Buffer
width(float value)

Sets the specified value to the width field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final ParOctasphereConfig ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new ParOctasphereConfig.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ParOctasphereConfig#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

corner_radiusback to summary
public float corner_radius()
Returns:float

the value of the corner_radius field.

corner_radiusback to summary
public ParOctasphereConfig.Buffer corner_radius(float value)

Sets the specified value to the corner_radius field.

depthback to summary
public float depth()
Returns:float

the value of the depth field.

depthback to summary
public ParOctasphereConfig.Buffer depth(float value)

Sets the specified value to the depth field.

getElementFactoryback to summary
protected ParOctasphereConfig getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
heightback to summary
public float height()
Returns:float

the value of the height field.

heightback to summary
public ParOctasphereConfig.Buffer height(float value)

Sets the specified value to the height field.

normals_modeback to summary
public int normals_mode()
Returns:int

the value of the normals_mode field.

Annotations
@NativeType:par_octasphere_normals_mode
normals_modeback to summary
public ParOctasphereConfig.Buffer normals_mode(int value)

Sets the specified value to the normals_mode field.

num_subdivisionsback to summary
public int num_subdivisions()
Returns:int

the value of the num_subdivisions field.

num_subdivisionsback to summary
public ParOctasphereConfig.Buffer num_subdivisions(int value)

Sets the specified value to the num_subdivisions field.

selfback to summary
protected ParOctasphereConfig.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
uv_modeback to summary
public int uv_mode()
Returns:int

the value of the uv_mode field.

Annotations
@NativeType:par_octasphere_uv_mode
uv_modeback to summary
public ParOctasphereConfig.Buffer uv_mode(int value)

Sets the specified value to the uv_mode field.

widthback to summary
public float width()
Returns:float

the value of the width field.

widthback to summary
public ParOctasphereConfig.Buffer width(float value)

Sets the specified value to the width field.