Exemple #1
0
 public ModelComponent(Model Model, ITransform Transform, Texture Texture)
 {
     this.Transform = Transform;
     this.Model = Model;
     this.Texture = Texture;
 }
Exemple #2
0
        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;
        }