public static class MeshoptBounds.Buffer extends org.lwjgl.system.StructBuffer<MeshoptBounds,MeshoptBounds.Buffer> implements org.lwjgl.system.NativeResource
MeshoptBounds structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
MeshoptBounds.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.FloatBuffer |
center()
Returns a
FloatBuffer view of the center field. |
float |
center(int index)
Returns the value at the specified index of the
center field. |
java.nio.FloatBuffer |
cone_apex()
Returns a
FloatBuffer view of the cone_apex field. |
float |
cone_apex(int index)
Returns the value at the specified index of the
cone_apex field. |
java.nio.ByteBuffer |
cone_axis_s8()
Returns a
ByteBuffer view of the cone_axis_s8 field. |
byte |
cone_axis_s8(int index)
Returns the value at the specified index of the
cone_axis_s8 field. |
java.nio.FloatBuffer |
cone_axis()
Returns a
FloatBuffer view of the cone_axis field. |
float |
cone_axis(int index)
Returns the value at the specified index of the
cone_axis field. |
byte |
cone_cutoff_s8()
Returns the value of the
cone_cutoff_s8 field. |
float |
cone_cutoff()
Returns the value of the
cone_cutoff field. |
float |
radius()
Returns the value of the
radius field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
MeshoptBounds.Buffer instance 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
by MeshoptBounds.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public java.nio.FloatBuffer center()
FloatBuffer view of the center field.public float center(int index)
center field.public float radius()
radius field.public java.nio.FloatBuffer cone_apex()
FloatBuffer view of the cone_apex field.public float cone_apex(int index)
cone_apex field.public java.nio.FloatBuffer cone_axis()
FloatBuffer view of the cone_axis field.public float cone_axis(int index)
cone_axis field.public float cone_cutoff()
cone_cutoff field.public java.nio.ByteBuffer cone_axis_s8()
ByteBuffer view of the cone_axis_s8 field.public byte cone_axis_s8(int index)
cone_axis_s8 field.public byte cone_cutoff_s8()
cone_cutoff_s8 field.Copyright LWJGL. All Rights Reserved. License terms.