Example #1
0
        /// <summary>
        /// This function sets the search path for a specified resource type. 
        /// Whenever a new resource is added, the specified path is concatenated to the name of the created resource.
        /// </summary>
        /// <param name="type">type of resource</param>
        /// <param name="path">path where the resources can be found (without slash or backslash at the end)</param>
        public static void setResourcePath(h3d.H3DResTypes type, string path)
        {
            if (path == null) throw new ArgumentNullException("path", Resources.StringNullExceptionString);

            NativeMethodsUtils.h3dutSetResourcePath(type, path);
        }
Example #2
0
 internal static extern void h3dutSetResourcePath(h3d.H3DResTypes type, string path);
Example #3
0
 /// <summary>
 /// This function returns the search path of a specified resource type.
 /// </summary>
 /// <param name="type">type of resource</param>
 /// <returns>the search path string</returns>
 public static string getResourcePath(h3d.H3DResTypes type)
 {
     IntPtr ptr = NativeMethodsUtils.h3dutGetResourcePath(type);
     return Marshal.PtrToStringAnsi(ptr);
 }
Example #4
0
 internal static extern IntPtr h3dutGetResourcePath(h3d.H3DResTypes type);