Package org.lwjgl.util.meshoptimizer
Class MeshoptCoverageStatistics
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MeshoptCoverageStatistics>
org.lwjgl.util.meshoptimizer.MeshoptCoverageStatistics
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class MeshoptCoverageStatistics
extends Struct<MeshoptCoverageStatistics>
implements NativeResource
struct meshopt_CoverageStatistics {
float coverage[3];
float extent;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionMeshoptCoverageStatistics(ByteBuffer container) Creates aMeshoptCoverageStatisticsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MeshoptCoverageStatisticscalloc()Returns a newMeshoptCoverageStatisticsinstance allocated withmemCalloc.calloc(int capacity) Returns a newMeshoptCoverageStatistics.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newMeshoptCoverageStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeshoptCoverageStatisticscalloc(MemoryStack stack) Returns a newMeshoptCoverageStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.coverage()floatcoverage(int index) static MeshoptCoverageStatisticscreate()Returns a newMeshoptCoverageStatisticsinstance allocated withBufferUtils.create(int capacity) Returns a newMeshoptCoverageStatistics.Bufferinstance allocated withBufferUtils.static MeshoptCoverageStatisticscreate(long address) Returns a newMeshoptCoverageStatisticsinstance for the specified memory address.create(long address, int capacity) Create aMeshoptCoverageStatistics.Bufferinstance at the specified memory.static @Nullable MeshoptCoverageStatisticscreateSafe(long address) static @Nullable MeshoptCoverageStatistics.BuffercreateSafe(long address, int capacity) floatextent()static MeshoptCoverageStatisticsmalloc()Returns a newMeshoptCoverageStatisticsinstance allocated withmemAlloc.malloc(int capacity) Returns a newMeshoptCoverageStatistics.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newMeshoptCoverageStatistics.Bufferinstance allocated on the specifiedMemoryStack.static MeshoptCoverageStatisticsmalloc(MemoryStack stack) Returns a newMeshoptCoverageStatisticsinstance allocated on the specifiedMemoryStack.static FloatBufferncoverage(long struct) Unsafe version ofcoverage().static floatncoverage(long struct, int index) Unsafe version ofcoverage.static floatnextent(long struct) Unsafe version ofextent().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
COVERAGE
public static final int COVERAGEThe struct member offsets. -
EXTENT
public static final int EXTENTThe struct member offsets.
-
-
Constructor Details
-
MeshoptCoverageStatistics
Creates aMeshoptCoverageStatisticsinstance 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<MeshoptCoverageStatistics>
-
coverage
- Returns:
- a
FloatBufferview of thecoveragefield.
-
coverage
public float coverage(int index) - Returns:
- the value at the specified index of the
coveragefield.
-
extent
public float extent()- Returns:
- the value of the
extentfield.
-
malloc
Returns a newMeshoptCoverageStatisticsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMeshoptCoverageStatisticsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMeshoptCoverageStatisticsinstance allocated withBufferUtils. -
create
Returns a newMeshoptCoverageStatisticsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMeshoptCoverageStatistics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMeshoptCoverageStatistics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMeshoptCoverageStatistics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMeshoptCoverageStatistics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMeshoptCoverageStatisticsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMeshoptCoverageStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMeshoptCoverageStatistics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMeshoptCoverageStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncoverage
Unsafe version ofcoverage(). -
ncoverage
public static float ncoverage(long struct, int index) Unsafe version ofcoverage. -
nextent
public static float nextent(long struct) Unsafe version ofextent().
-