Package org.lwjgl.util.par
Class ParSLAnnotation
- All Implemented Interfaces:
Pointer
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 Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionParSLAnnotation
(ByteBuffer container) Creates aParSLAnnotation
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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()
Returnssizeof(struct)
.float
normalized vector from spine to edgefloat
normalized vector from spine to edgefloat
longitudinal coordinate (seeparsl_u_mode
)float
either + or - depending on the sideMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
U_ALONG_CURVE
public static final int U_ALONG_CURVEThe struct member offsets. -
V_ACROSS_CURVE
public static final int V_ACROSS_CURVEThe struct member offsets. -
SPINE_TO_EDGE_X
public static final int SPINE_TO_EDGE_XThe struct member offsets. -
SPINE_TO_EDGE_Y
public static final int SPINE_TO_EDGE_YThe struct member offsets.
-
-
Constructor Details
-
ParSLAnnotation
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ParSLAnnotation>
-
u_along_curve
public float u_along_curve()longitudinal coordinate (seeparsl_u_mode
) -
v_across_curve
public float v_across_curve()either + or - depending on the side -
spine_to_edge_x
public float spine_to_edge_x()normalized vector from spine to edge -
spine_to_edge_y
public float spine_to_edge_y()normalized vector from spine to edge -
create
Returns a newParSLAnnotation
instance for the specified memory address. -
createSafe
-
create
Create aParSLAnnotation.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
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()
.
-