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.StructLayout for generated vertex attributes.Layout
struct parsl_annotation { floatu_along_curve(); floatv_across_curve(); floatspine_to_edge_x(); floatspine_to_edge_y(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParSLAnnotation.BufferAn array ofParSLAnnotationstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intSPINE_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 aParSLAnnotationinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 ParSLAnnotationcreateSafe(long address)static 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()floatspine_to_edge_x()normalized vector from spine to edgefloatspine_to_edge_y()normalized vector from spine to edgefloatu_along_curve()longitudinal coordinate (seeparsl_u_mode)floatv_across_curve()either + or - depending on the side
-
-
-
Constructor Detail
-
ParSLAnnotation
public ParSLAnnotation(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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, spine_to_edge_y
public float spine_to_edge_x() public float spine_to_edge_y()
normalized vector from spine to edge
-
create
public static ParSLAnnotation create(long address)
Returns a newParSLAnnotationinstance 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.Bufferinstance 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().
-
-