Class BGFXTransientVertexBuffer

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

@NativeType("struct bgfx_transient_vertex_buffer_t") public class BGFXTransientVertexBuffer extends Struct<BGFXTransientVertexBuffer> implements NativeResource
struct bgfx_transient_vertex_buffer_t {
    uint8_t * data;
    uint32_t size;
    uint32_t startVertex;
    uint16_t stride;
    bgfx_vertex_buffer_handle_t handle;
    bgfx_vertex_layout_handle_t layoutHandle;
}
  • 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.
    • STARTVERTEX

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

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

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

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

    • BGFXTransientVertexBuffer

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