PixelVolume.generated.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /// <summary>Represents a 3D region of pixels used for referencing pixel data.</summary>
  7. [StructLayout(LayoutKind.Sequential), SerializeObject]
  8. public partial struct PixelVolume
  9. {
  10. /// <summary>Initializes the struct with default values.</summary>
  11. public static PixelVolume Default()
  12. {
  13. PixelVolume value = new PixelVolume();
  14. value.left = 0;
  15. value.top = 0;
  16. value.right = 1;
  17. value.bottom = 1;
  18. value.front = 0;
  19. value.back = 1;
  20. return value;
  21. }
  22. public PixelVolume(uint left, uint top, uint right, uint bottom)
  23. {
  24. this.left = left;
  25. this.top = top;
  26. this.right = right;
  27. this.bottom = bottom;
  28. this.front = 0;
  29. this.back = 1;
  30. }
  31. public PixelVolume(uint left, uint top, uint front, uint right, uint bottom, uint back)
  32. {
  33. this.left = left;
  34. this.top = top;
  35. this.right = right;
  36. this.bottom = bottom;
  37. this.front = front;
  38. this.back = back;
  39. }
  40. public uint left;
  41. public uint top;
  42. public uint right;
  43. public uint bottom;
  44. public uint front;
  45. public uint back;
  46. }
  47. }