Package org.lwjgl.stb

Class STBRPContext.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<STBRPContext>, NativeResource, Pointer
Enclosing class:
STBRPContext

public static class STBRPContext.Buffer extends StructBuffer<STBRPContext,STBRPContext.Buffer> implements NativeResource
An array of STBRPContext structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new STBRPContext.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by STBRPContext.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • width

      public int width()
      Returns:
      the value of the width field.
    • height

      public int height()
      Returns:
      the value of the height field.
    • align

      public int align()
      Returns:
      the value of the align field.
    • init_mode

      public int init_mode()
      Returns:
      the value of the init_mode field.
    • heuristic

      public int heuristic()
      Returns:
      the value of the heuristic field.
    • num_nodes

      public int num_nodes()
      Returns:
      the value of the num_nodes field.
    • active_head

      public @Nullable STBRPNode active_head()
      Returns:
      a STBRPNode view of the struct pointed to by the active_head field.
    • free_head

      public @Nullable STBRPNode free_head()
      Returns:
      a STBRPNode view of the struct pointed to by the free_head field.
    • extra

      public STBRPNode.Buffer extra()
      Returns:
      a STBRPNode.Buffer view of the extra field.
    • extra

      public STBRPNode extra(int index)
      Returns:
      a STBRPNode view of the struct at the specified index of the extra field.