Class STBTTAlignedQuad

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<STBTTAlignedQuad>
org.lwjgl.stb.STBTTAlignedQuad
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

@NativeType("struct stbtt_aligned_quad") public class STBTTAlignedQuad extends org.lwjgl.system.Struct<STBTTAlignedQuad> implements org.lwjgl.system.NativeResource
struct stbtt_aligned_quad {
    float x0;
    float y0;
    float s0;
    float t0;
    float x1;
    float y1;
    float s1;
    float t1;
}
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of STBTTAlignedQuad structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a STBTTAlignedQuad instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new STBTTAlignedQuad instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new STBTTAlignedQuad.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new STBTTAlignedQuad.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new STBTTAlignedQuad instance allocated on the specified MemoryStack and initializes all its bits to zero.
    Returns a new STBTTAlignedQuad instance allocated with BufferUtils.
    create(int capacity)
    Returns a new STBTTAlignedQuad.Buffer instance allocated with BufferUtils.
    create(long address)
    Returns a new STBTTAlignedQuad instance for the specified memory address.
    create(long address, int capacity)
    Create a STBTTAlignedQuad.Buffer instance at the specified memory.
    static @Nullable STBTTAlignedQuad
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable STBTTAlignedQuad.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    Returns a new STBTTAlignedQuad instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new STBTTAlignedQuad.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new STBTTAlignedQuad.Buffer instance allocated on the specified MemoryStack.
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new STBTTAlignedQuad instance allocated on the specified MemoryStack.
    static float
    ns0(long struct)
    Unsafe version of s0().
    static float
    ns1(long struct)
    Unsafe version of s1().
    static float
    nt0(long struct)
    Unsafe version of t0().
    static float
    nt1(long struct)
    Unsafe version of t1().
    static float
    nx0(long struct)
    Unsafe version of x0().
    static float
    nx1(long struct)
    Unsafe version of x1().
    static float
    ny0(long struct)
    Unsafe version of y0().
    static float
    ny1(long struct)
    Unsafe version of y1().
    float
    s0()
     
    float
    s1()
     
    int
     
    float
    t0()
     
    float
    t1()
     
    float
    x0()
     
    float
    x1()
     
    float
    y0()
     
    float
    y1()
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • 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()
      Specified by:
      sizeof in class org.lwjgl.system.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(org.lwjgl.system.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(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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().