/// <summary> /// <para>cgGetResourceString returns the resource name associated with a resource enumerant.</para> /// <para>VERSION: cgGetResourceString was introduced in Cg 1.1.</para> /// </summary> /// <param name="resource">The resource enumerant.</param> /// <returns>Returns the NULL-terminated resource string of the enumerant resource.</returns> public static string GetResourceString(CgResource resource) { return Marshal.PtrToStringAnsi(cgGetResourceString(resource)); }
private static extern IntPtr cgGetResourceString(CgResource resource);