Ejemplo n.º 1
0
 /// <summary>
 /// <para>cgGetParameterClassString returns the name associated with a param class enumerant.</para>
 /// <para>ERROR: None.</para>
 /// <para>VERSION: cgGetParameterClassString was introduced in Cg 2.2.</para>
 /// </summary>
 /// <param name="parameterclass">The param class enumerant.</param>
 /// <returns>Returns the name associated with parameterclass. Returns "unknown" if parameterclass is not a valid param class.</returns>
 public static string GetParameterClassString(CgParameterClass parameterclass)
 {
     return Marshal.PtrToStringAnsi(cgGetParameterClassString(parameterclass));
 }
Ejemplo n.º 2
0
 private static extern IntPtr cgGetParameterClassString(CgParameterClass pc);