From 3d2bc15a848a08f8843d1934135d6c897b7d0581 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 20 Jan 2008 19:00:03 +0000 Subject: [PATCH] Documentation updates. Getting rid of warnings. --- Source/Examples/OpenGL/GluTessellation.cs | 2 - Source/Examples/Tutorial/T08_VBO.cs | 2 +- Source/OpenTK/GLContext.cs | 1 + Source/OpenTK/Math/Matrix3d.cs | 27 ++++-- Source/OpenTK/Math/Matrix4d.cs | 25 ++++-- Source/OpenTK/Math/Vector3d.cs | 23 +++--- Source/OpenTK/Math/Vector4d.cs | 23 +++--- Source/OpenTK/OpenAL/EfxFunctions.cs | 82 +++++++++---------- Source/OpenTK/OpenAL/XRamExtension.cs | 4 +- .../OpenTK/Platform/Windows/WinGLContext.cs | 3 +- 10 files changed, 106 insertions(+), 86 deletions(-) diff --git a/Source/Examples/OpenGL/GluTessellation.cs b/Source/Examples/OpenGL/GluTessellation.cs index 8e84ed55..4db1b741 100644 --- a/Source/Examples/OpenGL/GluTessellation.cs +++ b/Source/Examples/OpenGL/GluTessellation.cs @@ -147,8 +147,6 @@ namespace Examples public override void OnLoad(EventArgs e) { - IntPtr tess; - double[][] rect = new double[4][] { new double[] {50.0, 50.0, 0.0}, new double[] {200.0, 50.0, 0.0}, diff --git a/Source/Examples/Tutorial/T08_VBO.cs b/Source/Examples/Tutorial/T08_VBO.cs index 2c31ed0c..647741d3 100644 --- a/Source/Examples/Tutorial/T08_VBO.cs +++ b/Source/Examples/Tutorial/T08_VBO.cs @@ -35,7 +35,7 @@ namespace Examples.Tutorial public int VboID, EboID, NumElements; } Vbo[] vbo = new Vbo[2]; - float angle; + //float angle; public static readonly int order = 8; diff --git a/Source/OpenTK/GLContext.cs b/Source/OpenTK/GLContext.cs index 51fd4c7a..e199d513 100644 --- a/Source/OpenTK/GLContext.cs +++ b/Source/OpenTK/GLContext.cs @@ -314,6 +314,7 @@ namespace OpenTK { implementation.Dispose(); } + disposed = true; } } diff --git a/Source/OpenTK/Math/Matrix3d.cs b/Source/OpenTK/Math/Matrix3d.cs index c98c79c9..a91cdc8b 100644 --- a/Source/OpenTK/Math/Matrix3d.cs +++ b/Source/OpenTK/Math/Matrix3d.cs @@ -192,7 +192,6 @@ namespace OpenTK.Math #endregion - #region Constructors /// Constructs left matrix with the same components as the given matrix. @@ -293,12 +292,12 @@ namespace OpenTK.Math #endregion - #region Equality /// Indicates whether the current matrix is equal to another matrix. - /// An matrix to compare with this matrix. + /// The OpenTK.Math.Matrix3d structure to compare with. /// true if the current matrix is equal to the matrix parameter; otherwise, false. + [CLSCompliant(false)] public bool Equals(Matrix3d matrix) { return @@ -313,6 +312,9 @@ namespace OpenTK.Math R2C2 == matrix.R2C2; } + /// Indicates whether the current matrix is equal to another matrix. + /// The OpenTK.Math.Matrix3d structure to compare to. + /// true if the current matrix is equal to the matrix parameter; otherwise, false. public bool Equals(ref Matrix3d matrix) { return @@ -327,6 +329,10 @@ namespace OpenTK.Math R2C2 == matrix.R2C2; } + /// Indicates whether the current matrix is equal to another matrix. + /// The left-hand operand. + /// The right-hand operand. + /// true if the current matrix is equal to the matrix parameter; otherwise, false. public static bool Equals(ref Matrix3d left, ref Matrix3d right) { return @@ -341,6 +347,10 @@ namespace OpenTK.Math left.R2C2 == right.R2C2; } + /// Indicates whether the current matrix is approximately equal to another matrix. + /// The OpenTK.Math.Matrix3d structure to compare with. + /// The limit below which the matrices are considered equal. + /// true if the current matrix is approximately equal to the matrix parameter; otherwise, false. public bool EqualsApprox(ref Matrix3d matrix, double tolerance) { return @@ -355,6 +365,11 @@ namespace OpenTK.Math System.Math.Abs(R2C2 - matrix.R2C2) <= tolerance; } + /// Indicates whether the current matrix is approximately equal to another matrix. + /// The left-hand operand. + /// The right-hand operand. + /// The limit below which the matrices are considered equal. + /// true if the current matrix is approximately equal to the matrix parameter; otherwise, false. public static bool EqualsApprox(ref Matrix3d left, ref Matrix3d right, double tolerance) { return @@ -371,7 +386,6 @@ namespace OpenTK.Math #endregion - #region Arithmetic Operators @@ -584,7 +598,6 @@ namespace OpenTK.Math #endregion - #region Functions public double Determinant @@ -628,7 +641,6 @@ namespace OpenTK.Math #endregion - #region Transformation Functions public void Transform(ref Vector3d vector) @@ -734,7 +746,6 @@ namespace OpenTK.Math #endregion - #region Constants /// The identity matrix. @@ -755,7 +766,6 @@ namespace OpenTK.Math #endregion - #region HashCode /// Returns the hash code for this instance. @@ -770,7 +780,6 @@ namespace OpenTK.Math #endregion - #region String /// Returns the fully qualified type name of this instance. diff --git a/Source/OpenTK/Math/Matrix4d.cs b/Source/OpenTK/Math/Matrix4d.cs index a59ab383..a7c0fb25 100644 --- a/Source/OpenTK/Math/Matrix4d.cs +++ b/Source/OpenTK/Math/Matrix4d.cs @@ -259,7 +259,6 @@ namespace OpenTK.Math #endregion - #region Constructors /// Constructs left matrix with the same components as the given matrix. @@ -403,12 +402,12 @@ namespace OpenTK.Math #endregion - #region Equality /// Indicates whether the current matrix is equal to another matrix. /// An matrix to compare with this matrix. /// true if the current matrix is equal to the matrix parameter; otherwise, false. + [CLSCompliant(false)] public bool Equals(Matrix4d matrix) { return @@ -431,6 +430,9 @@ namespace OpenTK.Math } + /// Indicates whether the current matrix is equal to another matrix. + /// The OpenTK.Math.Matrix4d structure to compare to. + /// true if the current matrix is equal to the matrix parameter; otherwise, false. public bool Equals(ref Matrix4d matrix) { return @@ -453,6 +455,10 @@ namespace OpenTK.Math } + /// Indicates whether the current matrix is equal to another matrix. + /// The left-hand operand. + /// The right-hand operand. + /// true if the current matrix is equal to the matrix parameter; otherwise, false. public static bool Equals(ref Matrix4d left, ref Matrix4d right) { return @@ -474,6 +480,10 @@ namespace OpenTK.Math left.R3C3 == right.R3C3; } + /// Indicates whether the current matrix is approximately equal to another matrix. + /// The OpenTK.Math.Matrix4d structure to compare with. + /// The limit below which the matrices are considered equal. + /// true if the current matrix is approximately equal to the matrix parameter; otherwise, false. public bool EqualsApprox(ref Matrix4d matrix, double tolerance) { return @@ -495,6 +505,11 @@ namespace OpenTK.Math System.Math.Abs(R3C3 - matrix.R3C3) <= tolerance; } + /// Indicates whether the current matrix is approximately equal to another matrix. + /// The left-hand operand. + /// The right-hand operand. + /// The limit below which the matrices are considered equal. + /// true if the current matrix is approximately equal to the matrix parameter; otherwise, false. public static bool EqualsApprox(ref Matrix4d left, ref Matrix4d right, double tolerance) { return @@ -518,7 +533,6 @@ namespace OpenTK.Math #endregion - #region Arithmetic Operators @@ -819,7 +833,6 @@ namespace OpenTK.Math #endregion - #region Functions public double Cofacter(int row, int column) @@ -1336,7 +1349,6 @@ namespace OpenTK.Math #endregion - #region Transformation Functions public void Transform(ref Vector4d vector) @@ -2283,7 +2295,6 @@ namespace OpenTK.Math #endregion - #region Constants /// The identity matrix. @@ -2306,7 +2317,6 @@ namespace OpenTK.Math #endregion - #region HashCode /// Returns the hash code for this instance. @@ -2322,7 +2332,6 @@ namespace OpenTK.Math #endregion - #region String /// Returns the fully qualified type name of this instance. diff --git a/Source/OpenTK/Math/Vector3d.cs b/Source/OpenTK/Math/Vector3d.cs index 213f4acb..2e1830f3 100644 --- a/Source/OpenTK/Math/Vector3d.cs +++ b/Source/OpenTK/Math/Vector3d.cs @@ -73,21 +73,21 @@ namespace OpenTK.Math /// Converts the vector into left double-precision floating point number pointer. /// The vector being converted. /// A double-precision floating point number pointer to the vector coordinates. - unsafe public static explicit operator double*(Vector3d vector) - { - return &vector.X; - } + //unsafe public static explicit operator double*(Vector3d vector) + //{ + // return &vector.X; + //} /// Converts the vector into an IntPtr. /// The vector being converted. /// An IntPtr to the vector coordinates. - public static explicit operator IntPtr(Vector3d vector) - { - unsafe - { - return (IntPtr)(&vector.X); - } - } + //public static explicit operator IntPtr(Vector3d vector) + //{ + // unsafe + // { + // return (IntPtr)(&vector.X); + // } + //} #endregion @@ -142,6 +142,7 @@ namespace OpenTK.Math /// Indicates whether the current vector is equal to another vector. /// An vector to compare with this vector. /// true if the current vector is equal to the vector parameter; otherwise, false. + [CLSCompliant(false)] public bool Equals(Vector3d vector) { return diff --git a/Source/OpenTK/Math/Vector4d.cs b/Source/OpenTK/Math/Vector4d.cs index 3785fcb8..9ceb91dc 100644 --- a/Source/OpenTK/Math/Vector4d.cs +++ b/Source/OpenTK/Math/Vector4d.cs @@ -83,21 +83,21 @@ namespace OpenTK.Math /// Converts the vector into left double-precision floating point number pointer. /// The vector being converted. /// A double-precision floating point number pointer to the vector coordinates. - unsafe public static explicit operator double*(Vector4d vector) - { - return &vector.X; - } + //unsafe public static explicit operator double*(Vector4d vector) + //{ + // return &vector.X; + //} /// Converts the vector into an IntPtr. /// The vector being converted. /// An IntPtr to the vector coordinates. - public static explicit operator IntPtr(Vector4d vector) - { - unsafe - { - return (IntPtr)(&vector.X); - } - } + //public static explicit operator IntPtr(Vector4d vector) + //{ + // unsafe + // { + // return (IntPtr)(&vector.X); + // } + //} #endregion @@ -167,6 +167,7 @@ namespace OpenTK.Math /// Indicates whether the current vector is equal to another vector. /// An vector to compare with this vector. /// true if the current vector is equal to the vector parameter; otherwise, false. + [CLSCompliant(false)] public bool Equals(Vector4d vector) { return diff --git a/Source/OpenTK/OpenAL/EfxFunctions.cs b/Source/OpenTK/OpenAL/EfxFunctions.cs index ab911263..014d637b 100644 --- a/Source/OpenTK/OpenAL/EfxFunctions.cs +++ b/Source/OpenTK/OpenAL/EfxFunctions.cs @@ -14,7 +14,6 @@ using OpenTK.Math; namespace OpenTK.OpenAL { - public partial class EfxExtension { #region Effect Object @@ -25,7 +24,7 @@ namespace OpenTK.OpenAL [CLSCompliant(false)] unsafe private delegate void Delegate_alGenEffects( int n,[Out] uint* effects ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGenEffects Imported_alGenEffects; /// The alGenEffects function is used to create one or more Effect objects. An Effect object stores an effect type and a set of parameter values to control that Effect. In order to use an Effect it must be attached to an Auxiliary Effect Slot object @@ -67,7 +66,7 @@ namespace OpenTK.OpenAL [CLSCompliant(false)] unsafe private delegate void Delegate_alDeleteEffects( int n,[In] uint* effects ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alDeleteEffects Imported_alDeleteEffects; /// The alDeleteEffects function is used to delete and free resources for Effect objects previously created with alGenEffects. @@ -104,15 +103,16 @@ namespace OpenTK.OpenAL #region alIsEffect // typedef ALboolean (__cdecl *LPALISEFFECT)( ALuint eid ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate bool Delegate_alIsEffect( uint eid ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alIsEffect Imported_alIsEffect; /// The alIsEffect function is used to determine if an object identifier is a valid Effect object. /// Effect identifier to validate. /// True if the identifier is a valid Effect, False otherwise. + [CLSCompliant(false)] public bool IsEffect( uint eid ) { return Imported_alIsEffect(eid); @@ -123,10 +123,10 @@ namespace OpenTK.OpenAL #region alEffecti // typedef void (__cdecl *LPALEFFECTI)( ALuint eid, ALenum param, ALint value); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate void Delegate_alEffecti( uint eid,Enums.EfxEffecti param,int value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alEffecti Imported_alEffecti; /// This function is used to set integer properties on Effect objects. @@ -153,10 +153,10 @@ namespace OpenTK.OpenAL #region alEffectf // typedef void (__cdecl *LPALEFFECTF)( ALuint eid, ALenum param, ALfloat value); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate void Delegate_alEffectf( uint eid,Enums.EfxEffectf param,float value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alEffectf Imported_alEffectf; /// This function is used to set floating point properties on Effect objects. @@ -197,10 +197,10 @@ namespace OpenTK.OpenAL #region alGetEffecti // typedef void (__cdecl *LPALGETEFFECTI)( ALuint eid, ALenum pname, ALint* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGetEffecti( uint eid,Enums.EfxEffecti pname,[Out] int* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGetEffecti Imported_alGetEffecti; /// This function is used to retrieve integer properties from Effect objects. @@ -224,10 +224,10 @@ namespace OpenTK.OpenAL #region alGetEffectf // typedef void (__cdecl *LPALGETEFFECTF)( ALuint eid, ALenum pname, ALfloat* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGetEffectf( uint eid,Enums.EfxEffectf pname,[Out]float* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGetEffectf Imported_alGetEffectf; /// This function is used to retrieve floating point properties from Effect objects. @@ -251,11 +251,11 @@ namespace OpenTK.OpenAL #region alGetEffectfv - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGetEffectfv( uint eid,Enums.EfxEffect3f param,[Out] float* values ); // typedef void (__cdecl *LPALGETEFFECTFV)( ALuint eid, ALenum pname, ALfloat* values ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGetEffectfv Imported_alGetEffectfv; [CLSCompliant(false)] @@ -286,10 +286,10 @@ namespace OpenTK.OpenAL #region alGenFilters // typedef void (__cdecl *LPALGENFILTERS)( ALsizei n, ALuint* filters ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGenFilters( int n,[Out] uint* filters ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGenFilters Imported_alGenFilters; /// The alGenFilters function is used to create one or more Filter objects. A Filter object stores a filter type and a set of parameter values to control that Filter. Filter objects can be attached to Sources as Direct Filters or Auxiliary Send Filters. @@ -328,10 +328,10 @@ namespace OpenTK.OpenAL #region alDeleteFilters // typedef void (__cdecl *LPALDELETEFILTERS)( ALsizei n, ALuint* filters ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alDeleteFilters( int n,[In] uint* filters ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alDeleteFilters Imported_alDeleteFilters; /// The alDeleteFilters function is used to delete and free resources for Filter objects previously created with alGenFilters. @@ -368,10 +368,10 @@ namespace OpenTK.OpenAL #region alIsFilter // typedef ALboolean (__cdecl *LPALISFILTER)( ALuint fid ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate bool Delegate_alIsFilter( uint fid ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alIsFilter Imported_alIsFilter; /// The alIsFilter function is used to determine if an object identifier is a valid Filter object. @@ -388,10 +388,10 @@ namespace OpenTK.OpenAL #region alFilteri // typedef void (__cdecl *LPALFILTERI)( ALuint fid, ALenum param, ALint value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate void Delegate_alFilteri( uint fid,Enums.EfxFilteri param,int value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alFilteri Imported_alFilteri; /// This function is used to set integer properties on Filter objects. @@ -409,10 +409,10 @@ namespace OpenTK.OpenAL #region alFilterf // typedef void (__cdecl *LPALFILTERF)( ALuint fid, ALenum param, ALfloat value); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate void Delegate_alFilterf( uint fid,Enums.EfxFilterf param,float value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alFilterf Imported_alFilterf; /// This function is used to set floating point properties on Filter objects. @@ -430,10 +430,10 @@ namespace OpenTK.OpenAL #region alGetFilteri // typedef void (__cdecl *LPALGETFILTERI)( ALuint fid, ALenum pname, ALint* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGetFilteri( uint fid,Enums.EfxFilteri pname,[Out] int* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGetFilteri Imported_alGetFilteri; /// This function is used to retrieve integer properties from Filter objects. @@ -457,10 +457,10 @@ namespace OpenTK.OpenAL #region alGetFilterf // typedef void (__cdecl *LPALGETFILTERF)( ALuint fid, ALenum pname, ALfloat* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGetFilterf( uint fid,Enums.EfxFilterf pname,[Out] float* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGetFilterf Imported_alGetFilterf; /// This function is used to retrieve floating point properties from Filter objects. @@ -494,10 +494,10 @@ namespace OpenTK.OpenAL #region alGenAuxiliaryEffectSlots // typedef void (__cdecl *LPALGENAUXILIARYEFFECTSLOTS)( ALsizei n, ALuint* slots ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGenAuxiliaryEffectSlots( int n,[Out] uint* slots ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGenAuxiliaryEffectSlots Imported_alGenAuxiliaryEffectSlots; /// The alGenAuxiliaryEffectSlots function is used to create one or more Auxiliary Effect Slots. The number of slots that can be created will be dependant upon the Open AL device used. @@ -536,10 +536,10 @@ namespace OpenTK.OpenAL #region alDeleteAuxiliaryEffectSlots // typedef void (__cdecl *LPALDELETEAUXILIARYEFFECTSLOTS)( ALsizei n, ALuint* slots ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alDeleteAuxiliaryEffectSlots( int n,[In] uint* slots ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alDeleteAuxiliaryEffectSlots Imported_alDeleteAuxiliaryEffectSlots; /// The alDeleteAuxiliaryEffectSlots function is used to delete and free resources for Auxiliary Effect Slots previously created with alGenAuxiliaryEffectSlots. @@ -576,10 +576,10 @@ namespace OpenTK.OpenAL #region alIsAuxiliaryEffectSlot // typedef ALboolean (__cdecl *LPALISAUXILIARYEFFECTSLOT)( ALuint slot ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate bool Delegate_alIsAuxiliaryEffectSlot( uint slot ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alIsAuxiliaryEffectSlot Imported_alIsAuxiliaryEffectSlot; /// The alIsAuxiliaryEffectSlot function is used to determine if an object identifier is a valid Auxiliary Effect Slot object. @@ -596,10 +596,10 @@ namespace OpenTK.OpenAL #region alAuxiliaryEffectSloti // typedef void (__cdecl *LPALAUXILIARYEFFECTSLOTI)( ALuint asid, ALenum param, ALint value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate void Delegate_alAuxiliaryEffectSloti( uint asid,Enums.EfxAuxiliaryi param,int value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alAuxiliaryEffectSloti Imported_alAuxiliaryEffectSloti; /// This function is used to set integer properties on Auxiliary Effect Slot objects. @@ -617,10 +617,10 @@ namespace OpenTK.OpenAL #region alAuxiliaryEffectSlotf // typedef void (__cdecl *LPALAUXILIARYEFFECTSLOTF)( ALuint asid, ALenum param, ALfloat value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private delegate void Delegate_alAuxiliaryEffectSlotf( uint asid,Enums.EfxAuxiliaryf param,float value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alAuxiliaryEffectSlotf Imported_alAuxiliaryEffectSlotf; /// This function is used to set floating point properties on Auxiliary Effect Slot objects. @@ -638,10 +638,10 @@ namespace OpenTK.OpenAL #region alGetAuxiliaryEffectSloti // typedef void (__cdecl *LPALGETAUXILIARYEFFECTSLOTI)( ALuint asid, ALenum pname, ALint* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] unsafe private delegate void Delegate_alGetAuxiliaryEffectSloti( uint asid,Enums.EfxAuxiliaryi pname,[Out] int* value ); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_alGetAuxiliaryEffectSloti Imported_alGetAuxiliaryEffectSloti; /// This function is used to retrieve integer properties on Auxiliary Effect Slot objects. diff --git a/Source/OpenTK/OpenAL/XRamExtension.cs b/Source/OpenTK/OpenAL/XRamExtension.cs index d68cae0e..5b42a1a3 100644 --- a/Source/OpenTK/OpenAL/XRamExtension.cs +++ b/Source/OpenTK/OpenAL/XRamExtension.cs @@ -37,9 +37,9 @@ namespace OpenTK.OpenAL public delegate int Delegate_GetBufferMode( uint buffer,out int value ); //typedef ALenum (__cdecl *EAXGetBufferMode)(ALuint buffer, ALint *value); - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_SetBufferMode Imported_SetBufferMode; - [CLSCompliant(false)] + //[CLSCompliant(false)] private Delegate_GetBufferMode Imported_GetBufferMode; #endregion X-RAM Function pointer definitions diff --git a/Source/OpenTK/Platform/Windows/WinGLContext.cs b/Source/OpenTK/Platform/Windows/WinGLContext.cs index 7db15dd9..462a9365 100644 --- a/Source/OpenTK/Platform/Windows/WinGLContext.cs +++ b/Source/OpenTK/Platform/Windows/WinGLContext.cs @@ -31,7 +31,7 @@ namespace OpenTK.Platform.Windows private const string opengl32Name = "OPENGL32.DLL"; private WindowInfo windowInfo = new WindowInfo(); - private DisplayMode mode; + private DisplayMode mode = null; private bool vsync_supported; private bool disposed; @@ -186,6 +186,7 @@ namespace OpenTK.Platform.Windows #region public DisplayMode Mode + [Obsolete] DisplayMode IGLContextInternal.Mode { get { return new DisplayMode(mode); }