예제 #1
0
파일: Cg.cs 프로젝트: primuszp/OpenCg
 /// <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));
 }
예제 #2
0
 private static extern IntPtr cgGetResourceString(CgResource resource);