Package org.lwjgl.util.par
Class ParSLAnnotation
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ParSLAnnotation>
org.lwjgl.util.par.ParSLAnnotation
- All Implemented Interfaces:
org.lwjgl.system.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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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()floatnormalized vector from spine to edgefloatnormalized vector from spine to edgefloatlongitudinal coordinate (seeparsl_u_mode)floateither + or - depending on the sideMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<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 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().
-