This commit is contained in:
the_fiddler 2006-09-30 17:55:37 +00:00
parent 2b3aeeb7ae
commit 3e97dc1f8e
3 changed files with 7 additions and 6 deletions

View file

@ -53,14 +53,12 @@ namespace OpenTK.OpenGL
public static string GetString(int name)
{
IntPtr i = GetString_(name);
return Marshal.PtrToStringAnsi(i);
return Marshal.PtrToStringAnsi(GetString_(name));
}
public static string ErrorString(int name)
{
IntPtr i = ErrorString_(name);
return Marshal.PtrToStringAnsi(i);
return Marshal.PtrToStringAnsi(ErrorString_(name));
}
#endregion

View file

@ -21,7 +21,7 @@ namespace OpenTK.OpenGL
/// </summary>
public class Constant
{
#region WGL constants.
#region WGL constants
public const int WGLEXT_VERSION = 4;
public const int FRONT_COLOR_BUFFER_BIT_ARB = 0x00000001;
@ -215,7 +215,7 @@ namespace OpenTK.OpenGL
#endregion
}
#region WGL functions.
#region WGL functions
[DllImport(_dll_name)]
public static extern int GetProcAddress(int hwnd);

View file

@ -1,3 +1,6 @@
OpenTK 0.3.1 -> 0.3.2
+ OpenTK.OpenGL.Glu: Eliminated the temporary IntPtr variable in the GetString and ErrorString functions.
OpenTK 0.3.0 -> 0.3.1
+ Updated the binding generator to version 0.7.4, based on the work done for Tao.
+ Updated the Context load functions. Now Context loads all functions are extensions, and the derived classes override this behavior as needed.