Package org.lwjgl.stb

Class STBTTAlignedQuad

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer


    public class STBTTAlignedQuad
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Quad used for drawing a baked character, returned by GetBakedQuad.

    Layout

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

      • SIZEOF

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

      • STBTTAlignedQuad

        public STBTTAlignedQuad(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: org.lwjgl.system.Struct
        Returns the sizeof(struct).
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • create

        public static STBTTAlignedQuad create(long address)
        Returns a new STBTTAlignedQuad instance for the specified memory address or null if the address is NULL.
      • callocStack

        public static STBTTAlignedQuad callocStack()
        Returns a new STBTTAlignedQuad instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

        public static STBTTAlignedQuad callocStack(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
      • callocStack

        public static STBTTAlignedQuad.Buffer callocStack(int capacity)
        Returns a new STBTTAlignedQuad.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

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

        public static STBTTAlignedQuad.Buffer callocStack(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:
        stack - the stack from which to allocate
        capacity - the buffer capacity