Beispiel #1
0
 public static void DestroyDynamicIndexBuffer(DynamicIndexBufferHandle index_buffer)
 {
     Bgfx.destroy_dynamic_index_buffer(index_buffer);
 }
Beispiel #2
0
        /* ==================================================================*/
        /* RENDERING */
        /* ==================================================================*/

        /* BUFFERS */
        /* ==================================================================*/

        public static void SetDynamicIndexBuffer(DynamicIndexBufferHandle index_buffer, int first_index, int num_indices)
        {
            Bgfx.set_dynamic_index_buffer(index_buffer, (uint)first_index, (uint)num_indices);
        }
Beispiel #3
0
        public static void UpdateDynamicIndexBuffer(DynamicIndexBufferHandle handle, int start_index, ushort[] indices)
        {
            var memory = GetMemoryBufferReference(indices);

            Bgfx.update_dynamic_index_buffer(handle, (uint)start_index, memory);
        }