Ejemplo n.º 1
0
        public void Save(string path, string file_name, bool spheremap_flag)
        {
            // -----------------------------------------------------
            // テクスチャをBitmapファイルに出力
            tex_list.Save(path, spheremap_flag);

            // -----------------------------------------------------
            // マテリアル名のリストが書かれたファイルを出力
            // ファイルを開く
            System.IO.StreamWriter sw = new System.IO.StreamWriter(
                path + "/" + file_name + ".txt",
                false,
                System.Text.Encoding.GetEncoding("shift_jis"));

            // 書き出す
            foreach (string name in name_list)
            {
                sw.WriteLine(name);
            }

            //閉じる
            sw.Close();
        }
Ejemplo n.º 2
0
 public void Save(string dest_path, string file_name)
 {
     tex_list.Save(dest_path);
     SaveNamesToFile(dest_path + "/" + file_name + ".txt");
 }