From c369bfc75e27aacc13fb308e078526692b474785 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Wed, 27 Nov 2013 08:27:52 +0100 Subject: [PATCH] Use [AutoGenerated] only for generated methods The rewriter will patch the body of methods marked with [AutoGenerated]. Methods that are implemented manually (e.g. various math helper overloads) should avoid this attribute. --- Source/OpenTK/Graphics/OpenGL/GLHelper.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs index 13386f52..f00d7a77 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs @@ -1114,28 +1114,24 @@ namespace OpenTK.Graphics.OpenGL #region Obsolete - [AutoGenerated(Category = "Version11Deprecated", Version = "1.1", EntryPoint = "glDisableClientState")] [Obsolete("Use DisableClientState(ArrayCap) instead")] public static void DisableClientState(OpenTK.Graphics.OpenGL.EnableCap array) { DisableClientState((ArrayCap)array); } - [AutoGenerated(Category = "Version11Deprecated", Version = "1.1", EntryPoint = "glEnableClientState")] [Obsolete("Use EnableClientState(ArrayCap) instead.")] public static void EnableClientState(OpenTK.Graphics.OpenGL.EnableCap array) { EnableClientState((ArrayCap)array); } - [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformsiv")] [Obsolete("Use GetActiveUniforms(..., ActiveUniformParameter, ...) instead.")] public static void GetActiveUniforms(Int32 program, Int32 uniformCount, Int32[] uniformIndices, ArbUniformBufferObject pname, [OutAttribute] Int32[] @params) { GetActiveUniforms(program, uniformCount, uniformIndices, (ActiveUniformParameter)pname, @params); } - [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformsiv")] [Obsolete("Use GetActiveUniforms(..., ActiveUniformParameter, ...) instead.")] public static void GetActiveUniforms(Int32 program, Int32 uniformCount, ref Int32 uniformIndices, ArbUniformBufferObject pname, [OutAttribute] out Int32 @params) { @@ -1143,7 +1139,6 @@ namespace OpenTK.Graphics.OpenGL } [System.CLSCompliant(false)] - [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformsiv")] [Obsolete("Use GetActiveUniforms(..., ActiveUniformParameter, ...) instead.")] public static unsafe void GetActiveUniforms(Int32 program, Int32 uniformCount, Int32* uniformIndices, ArbUniformBufferObject pname, [OutAttribute] Int32* @params) { @@ -1151,7 +1146,6 @@ namespace OpenTK.Graphics.OpenGL } [System.CLSCompliant(false)] - [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformsiv")] [Obsolete("Use GetActiveUniforms(..., ActiveUniformParameter, ...) instead.")] public static void GetActiveUniforms(UInt32 program, Int32 uniformCount, UInt32[] uniformIndices, ArbUniformBufferObject pname, [OutAttribute] Int32[] @params) { @@ -1159,7 +1153,6 @@ namespace OpenTK.Graphics.OpenGL } [System.CLSCompliant(false)] - [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformsiv")] [Obsolete("Use GetActiveUniforms(..., ActiveUniformParameter, ...) instead.")] public static void GetActiveUniforms(UInt32 program, Int32 uniformCount, ref UInt32 uniformIndices, ArbUniformBufferObject pname, [OutAttribute] out Int32 @params) { @@ -1167,7 +1160,6 @@ namespace OpenTK.Graphics.OpenGL } [System.CLSCompliant(false)] - [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformsiv")] [Obsolete("Use GetActiveUniforms(..., ActiveUniformParameter, ...) instead.")] public static unsafe void GetActiveUniforms(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, ArbUniformBufferObject pname, [OutAttribute] Int32* @params) { @@ -1213,14 +1205,12 @@ namespace OpenTK.Graphics.OpenGL public static partial class Arb { - [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glProgramParameteriARB")] [Obsolete("Use ProgramParameter(..., AssemblyProgramParameterArb, ...) instead.")] public static void ProgramParameter(Int32 program, ArbGeometryShader4 pname, Int32 value) { ProgramParameter(program, (AssemblyProgramParameterArb)pname, value); } - [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glProgramParameteriARB")] [Obsolete("Use ProgramParameter(..., AssemblyProgramParameterArb, ...) instead.")] [CLSCompliant(false)] public static void ProgramParameter(UInt32 program, ArbGeometryShader4 pname, Int32 value) @@ -1231,14 +1221,12 @@ namespace OpenTK.Graphics.OpenGL public static partial class Ext { - [AutoGenerated(Category = "EXT_geometry_shader4", Version = "2.0", EntryPoint = "glProgramParameteriEXT")] [Obsolete("Use ProgramParameter(..., AssemblyProgramParameterArb, ...) instead.")] public static void ProgramParameter(Int32 program, ExtGeometryShader4 pname, Int32 value) { ProgramParameter(program, (AssemblyProgramParameterArb)pname, value); } - [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glProgramParameteriARB")] [Obsolete("Use ProgramParameter(..., AssemblyProgramParameterArb, ...) instead.")] [CLSCompliant(false)] public static void ProgramParameter(UInt32 program, ExtGeometryShader4 pname, Int32 value)