/// <summary> /// Sets the index buffer to use for drawing primitives. /// </summary> /// <param name="indexBuffer">The index buffer to set.</param> /// <param name="firstIndex">The first index in the buffer to use.</param> /// <param name="count">The number of indices to pull from the buffer.</param> public void SetIndexBuffer(TransientIndexBuffer indexBuffer, int firstIndex, int count) { NativeMethods.bgfx_encoder_set_transient_index_buffer(ptr, ref indexBuffer, firstIndex, count); }
/// <summary> /// Sets the index buffer to use for drawing primitives. /// </summary> /// <param name="indexBuffer">The index buffer to set.</param> public void SetIndexBuffer(TransientIndexBuffer indexBuffer) { NativeMethods.bgfx_encoder_set_transient_index_buffer(ptr, ref indexBuffer, 0, -1); }
public static extern void bgfx_encoder_set_transient_index_buffer(IntPtr encoder, ref TransientIndexBuffer tib, int startIndex, int numIndices);
public static extern void bgfx_set_transient_index_buffer(ref TransientIndexBuffer tib, int startIndex, int numIndices);
public static extern bool bgfx_alloc_transient_buffers(out TransientVertexBuffer tvb, ref VertexLayout.Data decl, ushort numVertices, out TransientIndexBuffer tib, ushort numIndices);
public static extern void bgfx_alloc_transient_index_buffer(out TransientIndexBuffer tib, int num);