public Form1() { InitializeComponent(); render = new Render(this); mesh = LoadManager.loadMesh("two_sphere.obj"); model = new GameObject(); model.mesh = mesh; model.rotate.x = 180; model.rotate.y = -30; model.position = new Vector3f(500, 350, 100); model.scale = new Vector3f(11, 10, 10); render.start(); }
private void button6_Click(object sender, EventArgs e) { mesh = LoadManager.loadMesh("Ship.obj"); model.mesh = mesh; }
private void button5_Click(object sender, EventArgs e) { mesh = LoadManager.loadMesh("shahter5.obj"); model.mesh = mesh; }
private void button4_Click(object sender, EventArgs e) { mesh = LoadManager.loadMesh("two_sphere.obj"); model.mesh = mesh; }