// ALUT_API const char *ALUT_APIENTRY alutGetErrorString (ALenum error); /// <summary>Alut.GetErrorString can be used to convert an error code into a human-readable description. The precise text of these descriptions may vary from implementation to implementation and should not be relied upon by the application.</summary> /// <param name="error">Retrieve first occured error with Alut.GetError</param> /// <returns>A human-readable description of the Error.</returns> public static string GetErrorString(AlutError error) { return Marshal.PtrToStringAnsi(GetErrorStringPrivate(error)); }
// ALUT_API const char *ALUT_APIENTRY alutGetErrorString (ALenum error); /// <summary>Alut.GetErrorString can be used to convert an error code into a human-readable description. The precise text of these descriptions may vary from implementation to implementation and should not be relied upon by the application.</summary> /// <param name="error">Retrieve first occured error with Alut.GetError</param> /// <returns>A human-readable description of the Error.</returns> public static string GetErrorString(AlutError error) { return(Marshal.PtrToStringAnsi(GetErrorStringPrivate(error))); }
private static extern IntPtr GetErrorStringPrivate(AlutError error);