The lightmap viewer.
Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// <remarks></remarks>
        public void Main()
        {
            using (LightmapViewer frm = this)
            {
                if (!frm.InitializeGraphics())
                {
                    // Initialize Direct3D
                    MessageBox.Show("Could not initialize Direct3D.  This tutorial will exit.");
                    return;
                }

                frm.Show();

                // While the form is still valid, render and process messages
                while (frm.Created)
                {
                    frm.Render();
                    Application.DoEvents();
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// The lightmap viewer tool strip menu item_ click.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The e.</param>
 /// <remarks></remarks>
 private void lightmapViewerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LightmapViewer lv = new LightmapViewer(ref map.SelectedMeta);
 }