Package org.lwjgl.util.meshoptimizer
Class MeshoptBounds.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<MeshoptBounds,MeshoptBounds.Buffer>
-
- org.lwjgl.util.meshoptimizer.MeshoptBounds.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<MeshoptBounds>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- MeshoptBounds
public static class MeshoptBounds.Buffer extends org.lwjgl.system.StructBuffer<MeshoptBounds,MeshoptBounds.Buffer> implements org.lwjgl.system.NativeResource
An array ofMeshoptBoundsstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBuffercenter()floatcenter(int index)java.nio.FloatBuffercone_apex()floatcone_apex(int index)java.nio.FloatBuffercone_axis()floatcone_axis(int index)java.nio.ByteBuffercone_axis_s8()bytecone_axis_s8(int index)floatcone_cutoff()bytecone_cutoff_s8()floatradius()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newMeshoptBounds.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 byMeshoptBounds.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
-
center
public java.nio.FloatBuffer center()
- Returns:
- a
FloatBufferview of theMeshoptBounds.center()field.
-
center
public float center(int index)
- Returns:
- the value at the specified index of the
MeshoptBounds.center()field.
-
radius
public float radius()
- Returns:
- the value of the
radiusfield.
-
cone_apex
public java.nio.FloatBuffer cone_apex()
- Returns:
- a
FloatBufferview of theMeshoptBounds.cone_apex()field.
-
cone_apex
public float cone_apex(int index)
- Returns:
- the value at the specified index of the
MeshoptBounds.cone_apex()field.
-
cone_axis
public java.nio.FloatBuffer cone_axis()
- Returns:
- a
FloatBufferview of thecone_axisfield.
-
cone_axis
public float cone_axis(int index)
- Returns:
- the value at the specified index of the
cone_axisfield.
-
cone_cutoff
public float cone_cutoff()
- Returns:
- the value of the
MeshoptBounds.cone_cutoff()field.
-
cone_axis_s8
public java.nio.ByteBuffer cone_axis_s8()
- Returns:
- a
ByteBufferview of theMeshoptBounds.cone_axis_s8()field.
-
cone_axis_s8
public byte cone_axis_s8(int index)
- Returns:
- the value at the specified index of the
MeshoptBounds.cone_axis_s8()field.
-
cone_cutoff_s8
public byte cone_cutoff_s8()
- Returns:
- the value of the
cone_cutoff_s8field.
-
-