Class BGFXInstanceDataBuffer

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

@NativeType("struct bgfx_instance_data_buffer_t") public class BGFXInstanceDataBuffer extends Struct<BGFXInstanceDataBuffer> implements NativeResource
struct bgfx_instance_data_buffer_t {
    uint8_t * data;
    uint32_t size;
    uint32_t offset;
    uint32_t num;
    uint16_t stride;
    bgfx_vertex_buffer_handle_t handle;
}
  • Field Details

    • SIZEOF

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

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

      public static final int DATA
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
    • OFFSET

      public static final int OFFSET
      The struct member offsets.
    • NUM

      public static final int NUM
      The struct member offsets.
    • STRIDE

      public static final int STRIDE
      The struct member offsets.
    • HANDLE

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

    • BGFXInstanceDataBuffer

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