SubMesh.generated.cs 887 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Rendering
  7. * @{
  8. */
  9. /// <summary>Data about a sub-mesh range and the type of primitives contained in the range.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct SubMesh
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static SubMesh Default()
  15. {
  16. SubMesh value = new SubMesh();
  17. value.indexOffset = 0;
  18. value.indexCount = 0;
  19. value.drawOp = MeshTopology.TriangleList;
  20. return value;
  21. }
  22. public SubMesh(uint indexOffset, uint indexCount, MeshTopology drawOp)
  23. {
  24. this.indexOffset = indexOffset;
  25. this.indexCount = indexCount;
  26. this.drawOp = drawOp;
  27. }
  28. public uint indexOffset;
  29. public uint indexCount;
  30. public MeshTopology drawOp;
  31. }
  32. /** @} */
  33. }