static Graphics.Software.Mesh TestCollada(string filename) { Graphics.Content.ContentPool c = new Graphics.Content.ContentPool((SlimDX.Direct3D9.Device)null); c.ContentPath = "Data"; c.LoadMappersFromAssembly(typeof(Graphics.Content.ContentPool).Assembly); Console.WriteLine("Loading " + filename); var m = c.Acquire<Graphics.Software.Mesh>(new Graphics.Content.ColladaMeshFromFile(filename)); return m; }
static Graphics.Software.Mesh TestCollada(string filename) { Graphics.Content.ContentPool c = new Graphics.Content.ContentPool((SlimDX.Direct3D9.Device)null); c.ContentPath = "Data"; c.LoadMappersFromAssembly(typeof(Graphics.Content.ContentPool).Assembly); Console.WriteLine("Loading " + filename); var m = c.Acquire <Graphics.Software.Mesh>(new Graphics.Content.ColladaMeshFromFile(filename)); return(m); }