Class MeshoptCoverageStatistics

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MeshoptCoverageStatistics>
org.lwjgl.util.meshoptimizer.MeshoptCoverageStatistics
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

@NativeType("struct meshopt_CoverageStatistics") public class MeshoptCoverageStatistics extends org.lwjgl.system.Struct<MeshoptCoverageStatistics> implements org.lwjgl.system.NativeResource
struct meshopt_CoverageStatistics {
    float coverage[3];
    float extent;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • COVERAGE

      public static final int COVERAGE
      The struct member offsets.
    • EXTENT

      public static final int EXTENT
      The struct member offsets.
  • Constructor Details

    • MeshoptCoverageStatistics

      public MeshoptCoverageStatistics(ByteBuffer container)
      Creates a MeshoptCoverageStatistics instance at the current position of the specified ByteBuffer 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<MeshoptCoverageStatistics>
    • coverage

      @NativeType("float[3]") public FloatBuffer coverage()
      Returns:
      a FloatBuffer view of the coverage field.
    • coverage

      public float coverage(int index)
      Returns:
      the value at the specified index of the coverage field.
    • extent

      public float extent()
      Returns:
      the value of the extent field.
    • malloc

      public static MeshoptCoverageStatistics malloc()
      Returns a new MeshoptCoverageStatistics instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static MeshoptCoverageStatistics calloc()
      Returns a new MeshoptCoverageStatistics instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static MeshoptCoverageStatistics create()
      Returns a new MeshoptCoverageStatistics instance allocated with BufferUtils.
    • create

      public static MeshoptCoverageStatistics create(long address)
      Returns a new MeshoptCoverageStatistics instance for the specified memory address.
    • createSafe

      public static @Nullable MeshoptCoverageStatistics createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static MeshoptCoverageStatistics.Buffer malloc(int capacity)
      Returns a new MeshoptCoverageStatistics.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static MeshoptCoverageStatistics.Buffer calloc(int capacity)
      Returns a new MeshoptCoverageStatistics.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static MeshoptCoverageStatistics.Buffer create(int capacity)
      Returns a new MeshoptCoverageStatistics.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static MeshoptCoverageStatistics.Buffer create(long address, int capacity)
      Create a MeshoptCoverageStatistics.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable MeshoptCoverageStatistics.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static MeshoptCoverageStatistics malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new MeshoptCoverageStatistics instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static MeshoptCoverageStatistics calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new MeshoptCoverageStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static MeshoptCoverageStatistics.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new MeshoptCoverageStatistics.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static MeshoptCoverageStatistics.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new MeshoptCoverageStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ncoverage

      public static FloatBuffer ncoverage(long struct)
      Unsafe version of coverage().
    • ncoverage

      public static float ncoverage(long struct, int index)
      Unsafe version of coverage.
    • nextent

      public static float nextent(long struct)
      Unsafe version of extent().