示例#1
0
 public ModelComponent(Model Model, ITransform Transform, Texture Texture)
 {
     this.Transform = Transform;
     this.Model = Model;
     this.Texture = Texture;
 }
示例#2
0
文件: Model.cs 项目: dzamkov/L2D
        public static Model LoadFile(Path path, string filename)
        {
            string ext = System.IO.Path.GetExtension(filename).ToLower();

            int[] precache;

            if (ext == ".obj")
                precache = OBJ.Load(path["Models"][filename]);
            else
                throw new NotImplementedException("Model format not implented");

            Model mdl = new Model();

            mdl.VBOID = precache[0];
            Console.WriteLine("VBOID ONLINE...");
            mdl.Vertices = precache[1];
            return mdl;
        }