2
0

IndexBuffer.cs 325 B

12345678910111213141516171819
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Collections.Generic;
  4. namespace Urho
  5. {
  6. public partial class IndexBuffer
  7. {
  8. public void SetData (short [] vertexData)
  9. {
  10. Runtime.ValidateRefCounted(this);
  11. unsafe {
  12. fixed (short *p = &vertexData [0]){
  13. SetData ((void *) p);
  14. }
  15. }
  16. }
  17. }
  18. }