Package org.lwjgl.util.par
Class ParSLAnnotation
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.par.ParSLAnnotation
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class ParSLAnnotation extends org.lwjgl.system.Struct
Layout for generated vertex attributes.Member documentation
u_along_curve
– longitudinal coordinate (seeparsl_u_mode
)v_across_curve
– either + or - depending on the sidespine_to_edge_x
– normalized vector from spine to edgespine_to_edge_y
– normalized vector from spine to edge
Layout
struct parsl_annotation { float u_along_curve; float v_across_curve; float spine_to_edge_x; float spine_to_edge_y; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParSLAnnotation.Buffer
An array ofParSLAnnotation
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
SPINE_TO_EDGE_X
SPINE_TO_EDGE_Y
U_ALONG_CURVE
V_ACROSS_CURVEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ParSLAnnotation(java.nio.ByteBuffer container)
Creates aParSLAnnotation
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParSLAnnotation
create(long address)
Returns a newParSLAnnotation
instance for the specified memory address.static ParSLAnnotation.Buffer
create(long address, int capacity)
Create aParSLAnnotation.Buffer
instance at the specified memory.static ParSLAnnotation
createSafe(long address)
static ParSLAnnotation.Buffer
createSafe(long address, int capacity)
static float
nspine_to_edge_x(long struct)
Unsafe version ofspine_to_edge_x()
.static float
nspine_to_edge_y(long struct)
Unsafe version ofspine_to_edge_y()
.static float
nu_along_curve(long struct)
Unsafe version ofu_along_curve()
.static float
nv_across_curve(long struct)
Unsafe version ofv_across_curve()
.int
sizeof()
float
spine_to_edge_x()
Returns the value of thespine_to_edge_x
field.float
spine_to_edge_y()
Returns the value of thespine_to_edge_y
field.float
u_along_curve()
Returns the value of theu_along_curve
field.float
v_across_curve()
Returns the value of thev_across_curve
field.
-
-
-
Constructor Detail
-
ParSLAnnotation
public ParSLAnnotation(java.nio.ByteBuffer container)
Creates aParSLAnnotation
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
u_along_curve
public float u_along_curve()
Returns the value of theu_along_curve
field.
-
v_across_curve
public float v_across_curve()
Returns the value of thev_across_curve
field.
-
spine_to_edge_x
public float spine_to_edge_x()
Returns the value of thespine_to_edge_x
field.
-
spine_to_edge_y
public float spine_to_edge_y()
Returns the value of thespine_to_edge_y
field.
-
create
public static ParSLAnnotation create(long address)
Returns a newParSLAnnotation
instance for the specified memory address.
-
createSafe
@Nullable public static ParSLAnnotation createSafe(long address)
-
create
public static ParSLAnnotation.Buffer create(long address, int capacity)
Create aParSLAnnotation.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static ParSLAnnotation.Buffer createSafe(long address, int capacity)
-
nu_along_curve
public static float nu_along_curve(long struct)
Unsafe version ofu_along_curve()
.
-
nv_across_curve
public static float nv_across_curve(long struct)
Unsafe version ofv_across_curve()
.
-
nspine_to_edge_x
public static float nspine_to_edge_x(long struct)
Unsafe version ofspine_to_edge_x()
.
-
nspine_to_edge_y
public static float nspine_to_edge_y(long struct)
Unsafe version ofspine_to_edge_y()
.
-
-