Marked OpenTK.Compatibility math functions as obsolete.

This commit is contained in:
the_fiddler 2009-08-14 12:58:35 +00:00
parent 380b57781b
commit b21e0efa71
20 changed files with 29 additions and 9 deletions

View file

@ -17,6 +17,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a bezier curve with as many points as you want. /// Represents a bezier curve with as many points as you want.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
public struct BezierCurve public struct BezierCurve
{ {

View file

@ -17,6 +17,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a cubic bezier curve with two anchor and two control points. /// Represents a cubic bezier curve with two anchor and two control points.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
public struct BezierCurveCubic public struct BezierCurveCubic
{ {

View file

@ -17,6 +17,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a quadric bezier curve with two anchor and one control point. /// Represents a quadric bezier curve with two anchor and one control point.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
public struct BezierCurveQuadric public struct BezierCurveQuadric
{ {

View file

@ -14,6 +14,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Defines a 2d box (rectangle). /// Defines a 2d box (rectangle).
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Box2 public struct Box2
{ {

View file

@ -17,6 +17,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Contains mathematical functions for the OpenTK.Math toolkit. /// Contains mathematical functions for the OpenTK.Math toolkit.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
public static class Functions public static class Functions
{ {
#region public static long NextPowerOfTwo(long n) #region public static long NextPowerOfTwo(long n)

View file

@ -75,6 +75,7 @@ namespace OpenTK.Math
/// but must not lead to GL interruption or termination. Providing a denormalized number or negative zero to GL must yield /// but must not lead to GL interruption or termination. Providing a denormalized number or negative zero to GL must yield
/// predictable results. /// predictable results.
/// </remarks> /// </remarks>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable, StructLayout(LayoutKind.Sequential)] [Serializable, StructLayout(LayoutKind.Sequential)]
public struct Half : ISerializable, IComparable<Half>, IFormattable, IEquatable<Half> public struct Half : ISerializable, IComparable<Half>, IFormattable, IEquatable<Half>
{ {

View file

@ -30,6 +30,7 @@ namespace OpenTK.Math
// Todo: Remove this warning when the code goes public. // Todo: Remove this warning when the code goes public.
#pragma warning disable 3019 #pragma warning disable 3019
#if false #if false
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Matrix3d : IEquatable<Matrix3d> public struct Matrix3d : IEquatable<Matrix3d>
@ -219,7 +220,7 @@ namespace OpenTK.Math
#endregion #endregion
#region Constructors #region Constructors
/// <summary>Constructs left matrix with the same components as the given matrix.</summary> /// <summary>Constructs left matrix with the same components as the given matrix.</summary>
/// <param name="vector">The matrix whose components to copy.</param> /// <param name="vector">The matrix whose components to copy.</param>
@ -318,7 +319,7 @@ namespace OpenTK.Math
#endregion #endregion
#region Equality #region Equality
/// <summary>Indicates whether the current matrix is equal to another matrix.</summary> /// <summary>Indicates whether the current matrix is equal to another matrix.</summary>
/// <param name="matrix">The OpenTK.Matrix3d structure to compare with.</param> /// <param name="matrix">The OpenTK.Matrix3d structure to compare with.</param>
@ -412,7 +413,7 @@ namespace OpenTK.Math
#endregion #endregion
#region Arithmetic Operators #region Arithmetic Operators
/// <summary>Add left matrix to this matrix.</summary> /// <summary>Add left matrix to this matrix.</summary>
@ -624,7 +625,7 @@ namespace OpenTK.Math
#endregion #endregion
#region Functions #region Functions
public double Determinant public double Determinant
{ {
@ -667,7 +668,7 @@ namespace OpenTK.Math
#endregion #endregion
#region Transformation Functions #region Transformation Functions
public void Transform(ref Vector3d vector) public void Transform(ref Vector3d vector)
{ {
@ -772,7 +773,7 @@ namespace OpenTK.Math
#endregion #endregion
#region Constants #region Constants
/// <summary>The identity matrix.</summary> /// <summary>The identity matrix.</summary>
public static readonly Matrix3d Identity = new Matrix3d public static readonly Matrix3d Identity = new Matrix3d
@ -792,7 +793,7 @@ namespace OpenTK.Math
#endregion #endregion
#region HashCode #region HashCode
/// <summary>Returns the hash code for this instance.</summary> /// <summary>Returns the hash code for this instance.</summary>
/// <returns>A 32-bit signed integer that is the hash code for this instance.</returns> /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
@ -806,7 +807,7 @@ namespace OpenTK.Math
#endregion #endregion
#region String #region String
/// <summary>Returns the fully qualified type name of this instance.</summary> /// <summary>Returns the fully qualified type name of this instance.</summary>
/// <returns>A System.String containing left fully qualified type name.</returns> /// <returns>A System.String containing left fully qualified type name.</returns>
@ -824,5 +825,5 @@ namespace OpenTK.Math
#endregion #endregion
} }
#endif #endif
#pragma warning restore 3019 #pragma warning restore 3019
} }

View file

@ -30,6 +30,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a 4x4 Matrix /// Represents a 4x4 Matrix
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Matrix4 : IEquatable<Matrix4> public struct Matrix4 : IEquatable<Matrix4>

View file

@ -30,6 +30,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a 4x4 Matrix with double-precision components. /// Represents a 4x4 Matrix with double-precision components.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Matrix4d : IEquatable<Matrix4d> public struct Matrix4d : IEquatable<Matrix4d>

View file

@ -32,6 +32,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a Quaternion. /// Represents a Quaternion.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Quaternion : IEquatable<Quaternion> public struct Quaternion : IEquatable<Quaternion>

View file

@ -32,6 +32,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a double-precision Quaternion. /// Represents a double-precision Quaternion.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Quaterniond : IEquatable<Quaterniond> public struct Quaterniond : IEquatable<Quaterniond>

View file

@ -31,6 +31,7 @@ namespace OpenTK.Math
/// <remarks> /// <remarks>
/// The Vector2 structure is suitable for interoperation with unmanaged code requiring two consecutive floats. /// The Vector2 structure is suitable for interoperation with unmanaged code requiring two consecutive floats.
/// </remarks> /// </remarks>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Vector2 : IEquatable<Vector2> public struct Vector2 : IEquatable<Vector2>

View file

@ -28,6 +28,7 @@ using System.Runtime.InteropServices;
namespace OpenTK.Math namespace OpenTK.Math
{ {
/// <summary>Represents a 2D vector using two double-precision floating-point numbers.</summary> /// <summary>Represents a 2D vector using two double-precision floating-point numbers.</summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Vector2d : IEquatable<Vector2d> public struct Vector2d : IEquatable<Vector2d>

View file

@ -31,6 +31,7 @@ namespace OpenTK.Math
{ {
/// <summary>2-component Vector of the Half type. Occupies 4 Byte total.</summary> /// <summary>2-component Vector of the Half type. Occupies 4 Byte total.</summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable, StructLayout(LayoutKind.Sequential)] [Serializable, StructLayout(LayoutKind.Sequential)]
public struct Vector2h : ISerializable, IEquatable<Vector2h> public struct Vector2h : ISerializable, IEquatable<Vector2h>
{ {

View file

@ -34,6 +34,7 @@ namespace OpenTK.Math
/// <remarks> /// <remarks>
/// The Vector3 structure is suitable for interoperation with unmanaged code requiring three consecutive floats. /// The Vector3 structure is suitable for interoperation with unmanaged code requiring three consecutive floats.
/// </remarks> /// </remarks>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Vector3 : IEquatable<Vector3> public struct Vector3 : IEquatable<Vector3>

View file

@ -31,6 +31,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// Represents a 3D vector using three double-precision floating-point numbers. /// Represents a 3D vector using three double-precision floating-point numbers.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Vector3d : IEquatable<Vector3d> public struct Vector3d : IEquatable<Vector3d>

View file

@ -33,6 +33,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// 3-component Vector of the Half type. Occupies 6 Byte total. /// 3-component Vector of the Half type. Occupies 6 Byte total.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable, StructLayout(LayoutKind.Sequential)] [Serializable, StructLayout(LayoutKind.Sequential)]
public struct Vector3h : ISerializable, IEquatable<Vector3h> public struct Vector3h : ISerializable, IEquatable<Vector3h>
{ {

View file

@ -32,6 +32,7 @@ namespace OpenTK.Math
/// <remarks> /// <remarks>
/// The Vector4 structure is suitable for interoperation with unmanaged code requiring four consecutive floats. /// The Vector4 structure is suitable for interoperation with unmanaged code requiring four consecutive floats.
/// </remarks> /// </remarks>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Vector4 : IEquatable<Vector4> public struct Vector4 : IEquatable<Vector4>

View file

@ -29,6 +29,7 @@ using System.Xml.Serialization;
namespace OpenTK.Math namespace OpenTK.Math
{ {
/// <summary>Represents a 4D vector using four double-precision floating-point numbers.</summary> /// <summary>Represents a 4D vector using four double-precision floating-point numbers.</summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct Vector4d : IEquatable<Vector4d> public struct Vector4d : IEquatable<Vector4d>

View file

@ -33,6 +33,7 @@ namespace OpenTK.Math
/// <summary> /// <summary>
/// 4-component Vector of the Half type. Occupies 8 Byte total. /// 4-component Vector of the Half type. Occupies 8 Byte total.
/// </summary> /// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable, StructLayout(LayoutKind.Sequential)] [Serializable, StructLayout(LayoutKind.Sequential)]
public struct Vector4h : ISerializable, IEquatable<Vector4h> public struct Vector4h : ISerializable, IEquatable<Vector4h>
{ {