mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 19:55:29 +00:00
Marked OpenTK.Compatibility math functions as obsolete.
This commit is contained in:
parent
380b57781b
commit
b21e0efa71
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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>
|
||||||
{
|
{
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
{
|
{
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
{
|
{
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue