Class GLFWAllocator

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class GLFWAllocator extends Struct<GLFWAllocator> implements NativeResource

 struct GLFWallocator {
     {@link GLFWAllocateCallbackI GLFWallocatefun} allocate;
     {@link GLFWReallocateCallbackI GLFWreallocatefun} reallocate;
     {@link GLFWDeallocateCallbackI GLFWdeallocatefun} deallocate;
     void * user;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ALLOCATE
      The struct member offsets.
    • REALLOCATE

      public static final int REALLOCATE
      The struct member offsets.
    • DEALLOCATE

      public static final int DEALLOCATE
      The struct member offsets.
    • USER

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

    • GLFWAllocator

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