Package org.lwjgl.stb

Class STBTTAlignedQuad

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class STBTTAlignedQuad extends Struct<STBTTAlignedQuad> implements NativeResource

 struct stbtt_aligned_quad {
     float x0;
     float y0;
     float s0;
     float t0;
     float x1;
     float y1;
     float s1;
     float t1;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int X0
      The struct member offsets.
    • Y0

      public static final int Y0
      The struct member offsets.
    • S0

      public static final int S0
      The struct member offsets.
    • T0

      public static final int T0
      The struct member offsets.
    • X1

      public static final int X1
      The struct member offsets.
    • Y1

      public static final int Y1
      The struct member offsets.
    • S1

      public static final int S1
      The struct member offsets.
    • T1

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

    • STBTTAlignedQuad

      public STBTTAlignedQuad(ByteBuffer container)
      Creates a STBTTAlignedQuad 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<STBTTAlignedQuad>
    • x0

      public float x0()
      Returns:
      the value of the x0 field.
    • y0

      public float y0()
      Returns:
      the value of the y0 field.
    • s0

      public float s0()
      Returns:
      the value of the s0 field.
    • t0

      public float t0()
      Returns:
      the value of the t0 field.
    • x1

      public float x1()
      Returns:
      the value of the x1 field.
    • y1

      public float y1()
      Returns:
      the value of the y1 field.
    • s1

      public float s1()
      Returns:
      the value of the s1 field.
    • t1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static STBTTAlignedQuad.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new STBTTAlignedQuad.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
    • nx0

      public static float nx0(long struct)
      Unsafe version of x0().
    • ny0

      public static float ny0(long struct)
      Unsafe version of y0().
    • ns0

      public static float ns0(long struct)
      Unsafe version of s0().
    • nt0

      public static float nt0(long struct)
      Unsafe version of t0().
    • nx1

      public static float nx1(long struct)
      Unsafe version of x1().
    • ny1

      public static float ny1(long struct)
      Unsafe version of y1().
    • ns1

      public static float ns1(long struct)
      Unsafe version of s1().
    • nt1

      public static float nt1(long struct)
      Unsafe version of t1().