Package org.lwjgl.stb

Class STBRPContext.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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 Detail

      • 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

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

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

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