protected override void OnPaint(PaintEventArgs pe)
        {
            // TODO: Add custom paint code here
            CoreAPI.mgRender();

            // Calling the base class OnPaint
            base.OnPaint(pe);
        }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            int clientW = 800,
                clientH = 600;

            using (MainForm mainFrm = new MainForm(clientW, clientH))
            {
                CoreAPI.mgCreateEngine(mainFrm.getRenderTargetWnd(), clientW, clientH);
                mainFrm.Show();

                while (mainFrm.Created)
                {
                    CoreAPI.mgRender();
                    Application.DoEvents();
                }
            }//endof using

            CoreAPI.mgDestroyEngine();
        } //endo Main()