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

View file

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

View file

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

View file

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

View file

@ -17,6 +17,7 @@ namespace OpenTK.Math
/// <summary>
/// Contains mathematical functions for the OpenTK.Math toolkit.
/// </summary>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
public static class Functions
{
#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
/// predictable results.
/// </remarks>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable, StructLayout(LayoutKind.Sequential)]
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.
#pragma warning disable 3019
#if false
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct Matrix3d : IEquatable<Matrix3d>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -28,6 +28,7 @@ using System.Runtime.InteropServices;
namespace OpenTK.Math
{
/// <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]
[StructLayout(LayoutKind.Sequential)]
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>
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
[Serializable, StructLayout(LayoutKind.Sequential)]
public struct Vector2h : ISerializable, IEquatable<Vector2h>
{

View file

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

View file

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

View file

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

View file

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

View file

@ -29,6 +29,7 @@ using System.Xml.Serialization;
namespace OpenTK.Math
{
/// <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]
[StructLayout(LayoutKind.Sequential)]
public struct Vector4d : IEquatable<Vector4d>

View file

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