From d8064862bf0636c1ae2440278a76a38688d490a3 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 19 Sep 2023 16:50:08 -0700 Subject: [PATCH] move PackedVector classes to MoonWorks.Graphics.PackedVector --- src/Exceptions/AudioLoadException.cs | 12 ------------ src/Graphics/PackedVector/Alpha8.cs | 2 +- src/Graphics/PackedVector/Bgr565.cs | 2 +- src/Graphics/PackedVector/Bgra4444.cs | 2 +- src/Graphics/PackedVector/Bgra5551.cs | 2 +- src/Graphics/PackedVector/Byte4.cs | 2 +- src/Graphics/PackedVector/HalfSingle.cs | 2 +- src/Graphics/PackedVector/HalfTypeHelper.cs | 2 +- src/Graphics/PackedVector/HalfVector2.cs | 2 +- src/Graphics/PackedVector/HalfVector4.cs | 2 +- src/Graphics/PackedVector/IPackedVector.cs | 2 +- src/Graphics/PackedVector/NormalizedByte2.cs | 2 +- src/Graphics/PackedVector/NormalizedByte4.cs | 2 +- src/Graphics/PackedVector/NormalizedShort2.cs | 2 +- src/Graphics/PackedVector/NormalizedShort4.cs | 2 +- src/Graphics/PackedVector/Rg32.cs | 2 +- src/Graphics/PackedVector/Rgba1010102.cs | 2 +- src/Graphics/PackedVector/Rgba64.cs | 2 +- src/Graphics/PackedVector/Short2.cs | 2 +- src/Graphics/PackedVector/Short4.cs | 2 +- 20 files changed, 19 insertions(+), 31 deletions(-) delete mode 100644 src/Exceptions/AudioLoadException.cs diff --git a/src/Exceptions/AudioLoadException.cs b/src/Exceptions/AudioLoadException.cs deleted file mode 100644 index 7ebbf985..00000000 --- a/src/Exceptions/AudioLoadException.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace MoonWorks -{ - public class AudioLoadException : Exception - { - public AudioLoadException(string message) : base(message) - { - - } - } -} diff --git a/src/Graphics/PackedVector/Alpha8.cs b/src/Graphics/PackedVector/Alpha8.cs index 6697b045..555b8488 100644 --- a/src/Graphics/PackedVector/Alpha8.cs +++ b/src/Graphics/PackedVector/Alpha8.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values ranging from 0 to 1. diff --git a/src/Graphics/PackedVector/Bgr565.cs b/src/Graphics/PackedVector/Bgr565.cs index 7ec00881..b749e456 100644 --- a/src/Graphics/PackedVector/Bgr565.cs +++ b/src/Graphics/PackedVector/Bgr565.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values ranging from 0 to 1. diff --git a/src/Graphics/PackedVector/Bgra4444.cs b/src/Graphics/PackedVector/Bgra4444.cs index 53e3cd2d..0377a721 100644 --- a/src/Graphics/PackedVector/Bgra4444.cs +++ b/src/Graphics/PackedVector/Bgra4444.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values, ranging from 0 to 1, using diff --git a/src/Graphics/PackedVector/Bgra5551.cs b/src/Graphics/PackedVector/Bgra5551.cs index 4e32596e..71e45d09 100644 --- a/src/Graphics/PackedVector/Bgra5551.cs +++ b/src/Graphics/PackedVector/Bgra5551.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values ranging from 0 to 1. diff --git a/src/Graphics/PackedVector/Byte4.cs b/src/Graphics/PackedVector/Byte4.cs index c64ae264..712bf560 100644 --- a/src/Graphics/PackedVector/Byte4.cs +++ b/src/Graphics/PackedVector/Byte4.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing four 8-bit unsigned integer values, ranging from 0 to 255. diff --git a/src/Graphics/PackedVector/HalfSingle.cs b/src/Graphics/PackedVector/HalfSingle.cs index de17ea16..32f566dc 100644 --- a/src/Graphics/PackedVector/HalfSingle.cs +++ b/src/Graphics/PackedVector/HalfSingle.cs @@ -19,7 +19,7 @@ using System; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct HalfSingle : IPackedVector, IEquatable, IPackedVector { diff --git a/src/Graphics/PackedVector/HalfTypeHelper.cs b/src/Graphics/PackedVector/HalfTypeHelper.cs index 5f9f59de..40da3396 100644 --- a/src/Graphics/PackedVector/HalfTypeHelper.cs +++ b/src/Graphics/PackedVector/HalfTypeHelper.cs @@ -19,7 +19,7 @@ using System; using System.Runtime.InteropServices; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { internal static class HalfTypeHelper { diff --git a/src/Graphics/PackedVector/HalfVector2.cs b/src/Graphics/PackedVector/HalfVector2.cs index bd0d9cfb..f51a2309 100644 --- a/src/Graphics/PackedVector/HalfVector2.cs +++ b/src/Graphics/PackedVector/HalfVector2.cs @@ -19,7 +19,7 @@ using System; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct HalfVector2 : IPackedVector, IPackedVector, IEquatable { diff --git a/src/Graphics/PackedVector/HalfVector4.cs b/src/Graphics/PackedVector/HalfVector4.cs index cffa1f41..93cca79b 100644 --- a/src/Graphics/PackedVector/HalfVector4.cs +++ b/src/Graphics/PackedVector/HalfVector4.cs @@ -19,7 +19,7 @@ using System; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing four 16-bit floating-point values. diff --git a/src/Graphics/PackedVector/IPackedVector.cs b/src/Graphics/PackedVector/IPackedVector.cs index f5b5c791..0426ada0 100644 --- a/src/Graphics/PackedVector/IPackedVector.cs +++ b/src/Graphics/PackedVector/IPackedVector.cs @@ -16,7 +16,7 @@ using MoonWorks.Math.Float; -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { // http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.packedvector.ipackedvector.aspx public interface IPackedVector diff --git a/src/Graphics/PackedVector/NormalizedByte2.cs b/src/Graphics/PackedVector/NormalizedByte2.cs index 33c1a0ad..07c269e5 100644 --- a/src/Graphics/PackedVector/NormalizedByte2.cs +++ b/src/Graphics/PackedVector/NormalizedByte2.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct NormalizedByte2 : IPackedVector, IEquatable { diff --git a/src/Graphics/PackedVector/NormalizedByte4.cs b/src/Graphics/PackedVector/NormalizedByte4.cs index 4623bdd8..6420d1bd 100644 --- a/src/Graphics/PackedVector/NormalizedByte4.cs +++ b/src/Graphics/PackedVector/NormalizedByte4.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct NormalizedByte4 : IPackedVector, IEquatable { diff --git a/src/Graphics/PackedVector/NormalizedShort2.cs b/src/Graphics/PackedVector/NormalizedShort2.cs index 9f920bd6..9755d7c9 100644 --- a/src/Graphics/PackedVector/NormalizedShort2.cs +++ b/src/Graphics/PackedVector/NormalizedShort2.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct NormalizedShort2 : IPackedVector, IEquatable { diff --git a/src/Graphics/PackedVector/NormalizedShort4.cs b/src/Graphics/PackedVector/NormalizedShort4.cs index f70c0f2e..01880ee5 100644 --- a/src/Graphics/PackedVector/NormalizedShort4.cs +++ b/src/Graphics/PackedVector/NormalizedShort4.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct NormalizedShort4 : IPackedVector, IEquatable { diff --git a/src/Graphics/PackedVector/Rg32.cs b/src/Graphics/PackedVector/Rg32.cs index 78cea4e0..602729fb 100644 --- a/src/Graphics/PackedVector/Rg32.cs +++ b/src/Graphics/PackedVector/Rg32.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values ranging from 0 to 1. diff --git a/src/Graphics/PackedVector/Rgba1010102.cs b/src/Graphics/PackedVector/Rgba1010102.cs index c1581a4c..4ad16493 100644 --- a/src/Graphics/PackedVector/Rgba1010102.cs +++ b/src/Graphics/PackedVector/Rgba1010102.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values ranging from 0 to 1. diff --git a/src/Graphics/PackedVector/Rgba64.cs b/src/Graphics/PackedVector/Rgba64.cs index a8f2e8ba..ed406195 100644 --- a/src/Graphics/PackedVector/Rgba64.cs +++ b/src/Graphics/PackedVector/Rgba64.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing unsigned normalized values ranging from 0 to 1. diff --git a/src/Graphics/PackedVector/Short2.cs b/src/Graphics/PackedVector/Short2.cs index de357b0a..577bcc43 100644 --- a/src/Graphics/PackedVector/Short2.cs +++ b/src/Graphics/PackedVector/Short2.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { public struct Short2 : IPackedVector, IEquatable { diff --git a/src/Graphics/PackedVector/Short4.cs b/src/Graphics/PackedVector/Short4.cs index 4757d460..ef8ba42e 100644 --- a/src/Graphics/PackedVector/Short4.cs +++ b/src/Graphics/PackedVector/Short4.cs @@ -20,7 +20,7 @@ using MoonWorks.Math; using MoonWorks.Math.Float; #endregion -namespace MoonWorks.Graphics +namespace MoonWorks.Graphics.PackedVector { /// /// Packed vector type containing four 16-bit signed integer values.