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