public RenderObject(Device d, RenderType t, Texture2D tex, Engine3D e) { device = d; type = t; engine = e; texture = tex; if (tex != null) { textureView = new ShaderResourceView(device, tex); } }
private void Form1_Load(object sender, EventArgs e) { Log.box = rtb1; OpenFileDialog d = new OpenFileDialog(); d.Filter = "croc.exe|croc.exe"; if (d.ShowDialog() == System.Windows.Forms.DialogResult.OK) { FileSystem.Init(Path.GetDirectoryName(d.FileName) + "\\"); this.TopMost = true; Application.DoEvents(); this.TopMost = false; RefreshTree(); RefreshList(); engine = new Engine3D(pb2); timer1.Enabled = true; } else { this.Close(); } }