예제 #1
0
파일: MainForm.cs 프로젝트: shff/gk3tools
        bool viewSurfaceLightmap(string[] args, Gk3Main.Console console)
        {
            if (args.Length != 2)
            {
                return(false);
            }

            int surface;

            if (int.TryParse(args[1], out surface) == false)
            {
                return(false);
            }

            TextureViewer viewer = new TextureViewer();

            viewer.DisplaySurfaceLightmap(Gk3Main.SceneManager.CurrentRoom, Gk3Main.SceneManager.CurrentLightmaps, surface);
            viewer.Show();

            return(true);
        }