Ejemplo n.º 1
0
 internal static extern float getOption(Horde3D.EngineOptions param);
Ejemplo n.º 2
0
 internal static extern void setResourcePath(Horde3D.ResourceTypes type, string path);
Ejemplo n.º 3
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(Horde3D.ResourceTypes type, string path)
        {
            if (path == null) throw new ArgumentNullException("path", Resources.StringNullExceptionString);

            NativeMethodsUtils.setResourcePath(type, path);
        }
Ejemplo n.º 4
0
 internal static extern IntPtr getResourcePath(Horde3D.ResourceTypes type);
Ejemplo n.º 5
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(Horde3D.ResourceTypes type)
 {
     IntPtr ptr = NativeMethodsUtils.getResourcePath(type);
     return Marshal.PtrToStringAnsi(ptr);
 }