Class BGFXInternalData

  • All Implemented Interfaces:
    Pointer

    public class BGFXInternalData
    extends Struct
    Internal data.

    Member documentation

    • caps – renderer capabilities
    • context – GL context, or D3D device

    Layout

    
     struct bgfx_internal_data_t {
         bgfx_caps_t * caps;
         void * context;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • CAPS, CONTEXT

        The struct member offsets.
    • Constructor Detail

      • BGFXInternalData

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

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • createSafe

        @Nullable
        public static 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().