Package org.lwjgl.stb

Class STBTTAlignedQuad

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

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


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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • X0, Y0, S0, T0, X1, Y1, S1, T1

        The struct member offsets.
    • 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.