Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 public static extern void bgfx_encoder_set_transient_index_buffer(IntPtr encoder, ref TransientIndexBuffer tib, int startIndex, int numIndices);
Exemplo n.º 4
0
 public static extern void bgfx_set_transient_index_buffer(ref TransientIndexBuffer tib, int startIndex, int numIndices);
Exemplo n.º 5
0
 public static extern bool bgfx_alloc_transient_buffers(out TransientVertexBuffer tvb, ref VertexLayout.Data decl, ushort numVertices, out TransientIndexBuffer tib, ushort numIndices);
Exemplo n.º 6
0
 public static extern void bgfx_alloc_transient_index_buffer(out TransientIndexBuffer tib, int num);