Package org.lwjgl.stb

Class STBTTPackContext

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class STBTTPackContext extends Struct<STBTTPackContext> implements NativeResource
An opaque structure which holds all the context needed from PackBegin to PackEnd.

Layout


 struct stbtt_pack_context {
     void * user_allocator_context;
     stbrp_context * pack_info;
     int width;
     int height;
     int stride_in_bytes;
     int padding;
     int skip_missing;
     unsigned int h_oversample;
     unsigned int v_oversample;
     unsigned char * pixels;
     stbrp_node * nodes;
 }
  • Field Details

    • SIZEOF

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • USER_ALLOCATOR_CONTEXT

      public static final int USER_ALLOCATOR_CONTEXT
      The struct member offsets.
    • PACK_INFO

      public static final int PACK_INFO
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • HEIGHT

      public static final int HEIGHT
      The struct member offsets.
    • STRIDE_IN_BYTES

      public static final int STRIDE_IN_BYTES
      The struct member offsets.
    • PADDING

      public static final int PADDING
      The struct member offsets.
    • SKIP_MISSING

      public static final int SKIP_MISSING
      The struct member offsets.
    • H_OVERSAMPLE

      public static final int H_OVERSAMPLE
      The struct member offsets.
    • V_OVERSAMPLE

      public static final int V_OVERSAMPLE
      The struct member offsets.
    • PIXELS

      public static final int PIXELS
      The struct member offsets.
    • NODES

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

    • STBTTPackContext

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