Package org.lwjgl.util.par
Class ParShapesMesh
- All Implemented Interfaces:
Pointer
struct par_shapes_mesh {
float * points;
int npoints;
PAR_SHAPES_T * triangles;
int ntriangles;
float * normals;
float * tcoords;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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
ConstructorsConstructorDescriptionParShapesMesh(ByteBuffer container) Creates aParShapesMeshinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParShapesMeshcreate(long address) Returns a newParShapesMeshinstance for the specified memory address.static ParShapesMesh.Buffercreate(long address, int capacity) Create aParShapesMesh.Bufferinstance at the specified memory.static @Nullable ParShapesMeshcreateSafe(long address) static @Nullable ParShapesMesh.BuffercreateSafe(long address, int capacity) static @Nullable FloatBuffernnormals(long struct, int capacity) Unsafe version ofnormals.static intnnpoints(long struct) Unsafe version ofnpoints().static intnntriangles(long struct) Unsafe version ofntriangles().@Nullable FloatBuffernormals(int capacity) intnpoints()static FloatBuffernpoints(long struct, int capacity) Unsafe version ofpoints.static @Nullable FloatBufferntcoords(long struct, int capacity) Unsafe version oftcoords.intstatic IntBufferntriangles(long struct, int capacity) Unsafe version oftriangles.points(int capacity) intsizeof()Returnssizeof(struct).@Nullable FloatBuffertcoords(int capacity) triangles(int capacity) Methods 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. -
POINTS
public static final int POINTSThe struct member offsets. -
NPOINTS
public static final int NPOINTSThe struct member offsets. -
TRIANGLES
public static final int TRIANGLESThe struct member offsets. -
NTRIANGLES
public static final int NTRIANGLESThe struct member offsets. -
NORMALS
public static final int NORMALSThe struct member offsets. -
TCOORDS
public static final int TCOORDSThe struct member offsets.
-
-
Constructor Details
-
ParShapesMesh
Creates aParShapesMeshinstance 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<ParShapesMesh>
-
points
- Returns:
- a
FloatBufferview of the data pointed to by thepointsfield.
-
npoints
public int npoints()- Returns:
- the value of the
npointsfield.
-
triangles
- Returns:
- a
IntBufferview of the data pointed to by thetrianglesfield.
-
ntriangles
public int ntriangles()- Returns:
- the value of the
ntrianglesfield.
-
normals
- Returns:
- a
FloatBufferview of the data pointed to by thenormalsfield.
-
tcoords
- Returns:
- a
FloatBufferview of the data pointed to by thetcoordsfield.
-
create
Returns a newParShapesMeshinstance for the specified memory address. -
createSafe
-
create
Create aParShapesMesh.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
npoints
Unsafe version ofpoints. -
nnpoints
public static int nnpoints(long struct) Unsafe version ofnpoints(). -
ntriangles
Unsafe version oftriangles. -
nntriangles
public static int nntriangles(long struct) Unsafe version ofntriangles(). -
nnormals
Unsafe version ofnormals. -
ntcoords
Unsafe version oftcoords.
-