Package org.lwjgl.util.par
Class ParOctasphereMesh.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<ParOctasphereMesh,ParOctasphereMesh.Buffer>
-
- org.lwjgl.util.par.ParOctasphereMesh.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<ParOctasphereMesh>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- ParOctasphereMesh
public static class ParOctasphereMesh.Buffer extends org.lwjgl.system.StructBuffer<ParOctasphereMesh,ParOctasphereMesh.Buffer> implements org.lwjgl.system.NativeResource
An array ofParOctasphereMeshstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ShortBufferindices(int capacity)ParOctasphereMesh.Bufferindices(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto theindicesfield.java.nio.FloatBuffernormals(int capacity)ParOctasphereMesh.Buffernormals(java.nio.FloatBuffer value)Sets the address of the specifiedFloatBufferto thenormalsfield.intnum_indices()intnum_vertices()java.nio.FloatBufferpositions(int capacity)ParOctasphereMesh.Bufferpositions(java.nio.FloatBuffer value)Sets the address of the specifiedFloatBufferto thepositionsfield.java.nio.FloatBuffertexcoords(int capacity)ParOctasphereMesh.Buffertexcoords(java.nio.FloatBuffer value)Sets the address of the specifiedFloatBufferto thetexcoordsfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParOctasphereMesh.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byParOctasphereMesh.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
positions
public java.nio.FloatBuffer positions(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
FloatBufferview of the data pointed to by thepositionsfield.
-
normals
@Nullable public java.nio.FloatBuffer normals(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
FloatBufferview of the data pointed to by thenormalsfield.
-
texcoords
@Nullable public java.nio.FloatBuffer texcoords(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
FloatBufferview of the data pointed to by thetexcoordsfield.
-
indices
public java.nio.ShortBuffer indices(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ShortBufferview of the data pointed to by theindicesfield.
-
num_indices
public int num_indices()
- Returns:
- the value of the
num_indicesfield.
-
num_vertices
public int num_vertices()
- Returns:
- the value of the
num_verticesfield.
-
positions
public ParOctasphereMesh.Buffer positions(java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBufferto thepositionsfield.
-
normals
public ParOctasphereMesh.Buffer normals(@Nullable java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBufferto thenormalsfield.
-
texcoords
public ParOctasphereMesh.Buffer texcoords(@Nullable java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBufferto thetexcoordsfield.
-
indices
public ParOctasphereMesh.Buffer indices(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theindicesfield.
-
-