Package org.lwjgl.stb

Class STBTTBakedChar

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class STBTTBakedChar extends Struct<STBTTBakedChar> implements NativeResource
Baked character data, returned by BakeFontBitmap.

Layout


 struct stbtt_bakedchar {
     unsigned short x0;
     unsigned short y0;
     unsigned short x1;
     unsigned short y1;
     float xoff;
     float yoff;
     float xadvance;
 }
  • 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.
    • X1

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

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

      public static final int XOFF
      The struct member offsets.
    • YOFF

      public static final int YOFF
      The struct member offsets.
    • XADVANCE

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

    • STBTTBakedChar

      public STBTTBakedChar(ByteBuffer container)
      Creates a STBTTBakedChar 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