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) public static string GetString(int name)
{ {
IntPtr i = GetString_(name); return Marshal.PtrToStringAnsi(GetString_(name));
return Marshal.PtrToStringAnsi(i);
} }
public static string ErrorString(int name) public static string ErrorString(int name)
{ {
IntPtr i = ErrorString_(name); return Marshal.PtrToStringAnsi(ErrorString_(name));
return Marshal.PtrToStringAnsi(i);
} }
#endregion #endregion

View file

@ -21,7 +21,7 @@ namespace OpenTK.OpenGL
/// </summary> /// </summary>
public class Constant public class Constant
{ {
#region WGL constants. #region WGL constants
public const int WGLEXT_VERSION = 4; public const int WGLEXT_VERSION = 4;
public const int FRONT_COLOR_BUFFER_BIT_ARB = 0x00000001; public const int FRONT_COLOR_BUFFER_BIT_ARB = 0x00000001;
@ -215,7 +215,7 @@ namespace OpenTK.OpenGL
#endregion #endregion
} }
#region WGL functions. #region WGL functions
[DllImport(_dll_name)] [DllImport(_dll_name)]
public static extern int GetProcAddress(int hwnd); 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 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 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. + Updated the Context load functions. Now Context loads all functions are extensions, and the derived classes override this behavior as needed.