internal static extern float getOption(Horde3D.EngineOptions param);
internal static extern void setResourcePath(Horde3D.ResourceTypes type, string path);
/// <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(Horde3D.ResourceTypes type, string path) { if (path == null) throw new ArgumentNullException("path", Resources.StringNullExceptionString); NativeMethodsUtils.setResourcePath(type, path); }
internal static extern IntPtr getResourcePath(Horde3D.ResourceTypes type);
/// <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(Horde3D.ResourceTypes type) { IntPtr ptr = NativeMethodsUtils.getResourcePath(type); return Marshal.PtrToStringAnsi(ptr); }