/*------------------------------------------------------------------------- * * ---------------------------------------------------------------------------*/ public void Dispose() { if (m_loop_x_image != null) { m_loop_x_image.Dispose(); } if (m_icons != null) { m_icons.Dispose(); } if (m_infonameimage != null) { m_infonameimage.Dispose(); } if (m_seainfonameimage != null) { m_seainfonameimage.Dispose(); } // 最後にD3Ddeviceを破棄する if (m_d3d_device != null) { m_d3d_device.Dispose(); } m_loop_x_image = null; m_icons = null; m_infonameimage = null; m_seainfonameimage = null; m_d3d_device = null; }
/*------------------------------------------------------------------------- * * ---------------------------------------------------------------------------*/ public gvt_lib(System.Windows.Forms.Form form, string ini_file_name) { // 設定項目の読み書き管理 m_ini_manager = new IniProfileSetting(ini_file_name); // 設定項目 m_setting = new GlobalSettings(); // キー割り当て管理 m_key_assign_manager = new KeyAssignManager(); // 登録 m_ini_manager.AddIniSaveLoad(m_setting); m_ini_manager.AddIniSaveLoad(m_key_assign_manager, "key_assign"); // メインウインドウ描画用 m_d3d_device = new d3d_device(form); m_d3d_device.skip_max = def.SKIP_DRAW_FRAME_MAX; // 描画スキップ数 // 地図管理 m_loop_x_image = new LoopXImage(m_d3d_device); // アイコン管理 m_icons = new icons(m_d3d_device, def.ICONSIMAGE_FULLNAME); // 街等の文字の絵管理 m_infonameimage = new infonameimage(m_d3d_device, def.INFONAMEIMAGE_FULLNAME); // 海域の文字の絵管理 m_seainfonameimage = new seainfonameimage(m_d3d_device, def.SEAINFONAMEIMAGE_FULLNAME); // キー割り当て初期化 init_key_assign(); }