Class BGFXInternalData

All Implemented Interfaces:
Pointer

public class BGFXInternalData extends Struct<BGFXInternalData>

 struct bgfx_internal_data_t {
     {@link BGFXCaps bgfx_caps_t} * caps;
     void * context;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int CAPS
      The struct member offsets.
    • CONTEXT

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

    • BGFXInternalData

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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<BGFXInternalData>
    • caps

      public BGFXCaps caps()
      Returns:
      a BGFXCaps view of the struct pointed to by the caps field.
    • context

      public long context()
      Returns:
      the value of the context field.
    • create

      public static BGFXInternalData create(long address)
      Returns a new BGFXInternalData instance for the specified memory address.
    • createSafe

      public static @Nullable BGFXInternalData createSafe(long address)
      Like create, but returns null if address is NULL.
    • ncaps

      public static BGFXCaps ncaps(long struct)
      Unsafe version of caps().
    • ncontext

      public static long ncontext(long struct)
      Unsafe version of context().