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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment 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.static final int
The struct size in bytes.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
ConstructorsConstructorDescriptionParShapesMesh
(ByteBuffer container) Creates aParShapesMesh
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParShapesMesh
create
(long address) Returns a newParShapesMesh
instance for the specified memory address.static ParShapesMesh.Buffer
create
(long address, int capacity) Create aParShapesMesh.Buffer
instance at the specified memory.static @Nullable ParShapesMesh
createSafe
(long address) static @Nullable ParShapesMesh.Buffer
createSafe
(long address, int capacity) static @Nullable FloatBuffer
nnormals
(long struct, int capacity) Unsafe version ofnormals
.static int
nnpoints
(long struct) Unsafe version ofnpoints()
.static int
nntriangles
(long struct) Unsafe version ofntriangles()
.@Nullable FloatBuffer
normals
(int capacity) int
npoints()
static FloatBuffer
npoints
(long struct, int capacity) Unsafe version ofpoints
.static @Nullable FloatBuffer
ntcoords
(long struct, int capacity) Unsafe version oftcoords
.int
static IntBuffer
ntriangles
(long struct, int capacity) Unsafe version oftriangles
.points
(int capacity) int
sizeof()
Returnssizeof(struct)
.@Nullable FloatBuffer
tcoords
(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 aParShapesMesh
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<ParShapesMesh>
-
points
- Returns:
- a
FloatBuffer
view of the data pointed to by thepoints
field.
-
npoints
public int npoints()- Returns:
- the value of the
npoints
field.
-
triangles
- Returns:
- a
IntBuffer
view of the data pointed to by thetriangles
field.
-
ntriangles
public int ntriangles()- Returns:
- the value of the
ntriangles
field.
-
normals
- Returns:
- a
FloatBuffer
view of the data pointed to by thenormals
field.
-
tcoords
- Returns:
- a
FloatBuffer
view of the data pointed to by thetcoords
field.
-
create
Returns a newParShapesMesh
instance for the specified memory address. -
createSafe
-
create
Create aParShapesMesh.Buffer
instance 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
.
-