12345678910111213141516171819202122 |
- // $Id$
- using System;
- using System.Runtime.InteropServices;
- using System.Security;
- namespace OpenGlUtil
- {
- public static class glu
- {
- private const string GLU_DLL = "GLU.dll";
- [DllImport(GLU_DLL, EntryPoint = "gluErrorString"), SuppressUnmanagedCodeSecurityAttribute]
- private static extern IntPtr _ErrorString(uint error);
- public static string ErrorString(uint error)
- {
- IntPtr errorstr = _ErrorString(error);
- return Marshal.PtrToStringAuto(errorstr);
- }
- }
- }
|