Package org.lwjgl.stb

Class STBTTAlignedQuad

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class STBTTAlignedQuad extends Struct<STBTTAlignedQuad> implements 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 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