VertexBuffer.cs 290 B

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