Class BGFXInstanceDataBuffer

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class BGFXInstanceDataBuffer
    extends Struct
    implements NativeResource
    Instance data buffer info.

    Member documentation

    • data – pointer to data
    • size – data size
    • offset – offset in vertex buffer
    • num – number of instances
    • stride – vertex stride
    • handle – vertex buffer object handle

    Layout

    
     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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DATA, SIZE, OFFSET, NUM, STRIDE, HANDLE

        The struct member offsets.
    • Constructor Detail

      • BGFXInstanceDataBuffer

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