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

public Class ParSLAnnotation

extends Struct<ParSLAnnotation>
Class Inheritance
Annotations
@NativeType:struct parsl_annotation
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Layout for generated vertex attributes.

Layout


struct parsl_annotation {
    float u_along_curve;
    float v_across_curve;
    float spine_to_edge_x;
    float spine_to_edge_y;
}

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
SIZEOF

The struct size in bytes.

public static final int
SPINE_TO_EDGE_X

The struct member offsets.

public static final int
SPINE_TO_EDGE_Y

The struct member offsets.

public static final int
U_ALONG_CURVE

The struct member offsets.

public static final int
V_ACROSS_CURVE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
ParSLAnnotation(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
protected ParSLAnnotation
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 ParSLAnnotation
create(long address)

Returns a new ParSLAnnotation instance for the specified memory address.

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

Create a ParSLAnnotation.Buffer instance at the specified memory.

public static ParSLAnnotation
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static float
nspine_to_edge_x(long struct)

Unsafe version of spine_to_edge_x.

public static float
nspine_to_edge_y(long struct)

Unsafe version of spine_to_edge_y.

public static float
nu_along_curve(long struct)

Unsafe version of u_along_curve.

public static float
nv_across_curve(long struct)

Unsafe version of v_across_curve.

public int
sizeof()

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

Returns sizeof(struct).
public float
spine_to_edge_x()

normalized vector from spine to edge

public float
spine_to_edge_y()

normalized vector from spine to edge

public float
u_along_curve()

longitudinal coordinate (see parsl_u_mode)

public float
v_across_curve()

either + or - depending on the side

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.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SPINE_TO_EDGE_Xback to summary
public static final int SPINE_TO_EDGE_X

The struct member offsets.

SPINE_TO_EDGE_Yback to summary
public static final int SPINE_TO_EDGE_Y

The struct member offsets.

U_ALONG_CURVEback to summary
public static final int U_ALONG_CURVE

The struct member offsets.

V_ACROSS_CURVEback to summary
public static final int V_ACROSS_CURVE

The struct member offsets.

Constructor Detail

ParSLAnnotationback to summary
protected ParSLAnnotation(long address, ByteBuffer container)
ParSLAnnotationback to summary
public ParSLAnnotation(ByteBuffer container)

Creates a ParSLAnnotation 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

createback to summary
protected ParSLAnnotation 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 ParSLAnnotation create(long address)

Returns a new ParSLAnnotation instance for the specified memory address.

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

Create a ParSLAnnotation.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static ParSLAnnotation createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
nspine_to_edge_xback to summary
public static float nspine_to_edge_x(long struct)

Unsafe version of spine_to_edge_x.

nspine_to_edge_yback to summary
public static float nspine_to_edge_y(long struct)

Unsafe version of spine_to_edge_y.

nu_along_curveback to summary
public static float nu_along_curve(long struct)

Unsafe version of u_along_curve.

nv_across_curveback to summary
public static float nv_across_curve(long struct)

Unsafe version of v_across_curve.

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
spine_to_edge_xback to summary
public float spine_to_edge_x()

normalized vector from spine to edge

spine_to_edge_yback to summary
public float spine_to_edge_y()

normalized vector from spine to edge

u_along_curveback to summary
public float u_along_curve()

longitudinal coordinate (see parsl_u_mode)

v_across_curveback to summary
public float v_across_curve()

either + or - depending on the side

org.lwjgl.util.par back to summary

public Class ParSLAnnotation.Buffer

extends StructBuffer<ParSLAnnotation, ParSLAnnotation.Buffer>
Class Inheritance

An array of ParSLAnnotation structs.

Field Summary

Modifier and TypeField and Description
private static final ParSLAnnotation

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new ParSLAnnotation.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
protected ParSLAnnotation
protected ParSLAnnotation.Buffer
public float

Returns:

the value of the ParSLAnnotation#spine_to_edge_x field.
spine_to_edge_x
()

public float

Returns:

the value of the ParSLAnnotation#spine_to_edge_y field.
spine_to_edge_y
()

public float

Returns:

the value of the ParSLAnnotation#u_along_curve field.
u_along_curve
()

public float

Returns:

the value of the ParSLAnnotation#v_across_curve field.
v_across_curve
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final ParSLAnnotation ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new ParSLAnnotation.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 ParSLAnnotation#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

getElementFactoryback to summary
protected ParSLAnnotation getElementFactory()

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

Annotations
@Override
selfback to summary
protected ParSLAnnotation.Buffer self()

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

Annotations
@Override
spine_to_edge_xback to summary
public float spine_to_edge_x()
Returns:float

the value of the ParSLAnnotation#spine_to_edge_x field.

spine_to_edge_yback to summary
public float spine_to_edge_y()
Returns:float

the value of the ParSLAnnotation#spine_to_edge_y field.

u_along_curveback to summary
public float u_along_curve()
Returns:float

the value of the ParSLAnnotation#u_along_curve field.

v_across_curveback to summary
public float v_across_curve()
Returns:float

the value of the ParSLAnnotation#v_across_curve field.