Package org.lwjgl.util.par
Class ParSLAnnotation
- All Implemented Interfaces:
Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionParSLAnnotation(ByteBuffer container) Creates aParSLAnnotationinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParSLAnnotationcreate(long address) Returns a newParSLAnnotationinstance for the specified memory address.static ParSLAnnotation.Buffercreate(long address, int capacity) Create aParSLAnnotation.Bufferinstance at the specified memory.static @Nullable ParSLAnnotationcreateSafe(long address) static @Nullable ParSLAnnotation.BuffercreateSafe(long address, int capacity) static floatnspine_to_edge_x(long struct) Unsafe version ofspine_to_edge_x().static floatnspine_to_edge_y(long struct) Unsafe version ofspine_to_edge_y().static floatnu_along_curve(long struct) Unsafe version ofu_along_curve().static floatnv_across_curve(long struct) Unsafe version ofv_across_curve().intsizeof()Returnssizeof(struct).floatfloatfloatfloatMethods 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 aParSLAnnotationinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ParSLAnnotation>
-
u_along_curve
public float u_along_curve()- Returns:
- the value of the
u_along_curvefield.
-
v_across_curve
public float v_across_curve()- Returns:
- the value of the
v_across_curvefield.
-
spine_to_edge_x
public float spine_to_edge_x()- Returns:
- the value of the
spine_to_edge_xfield.
-
spine_to_edge_y
public float spine_to_edge_y()- Returns:
- the value of the
spine_to_edge_yfield.
-
create
Returns a newParSLAnnotationinstance for the specified memory address. -
createSafe
-
create
Create aParSLAnnotation.Bufferinstance 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().
-