void Main_FormClosing(object sender, FormClosingEventArgs e) { tmr.Stop(); DllNative.CleanUpDirect3D(); }
void tmr_Tick(object sender, EventArgs e) { DllNative.Render(); }
void Main_Load(object sender, EventArgs e) { DllNative.InitDirect3D(pnx.Handle.ToPointer()); }