Exemplo n.º 1
0
        public static void Main()
        {
            try
            {
                using var apophysis     = new ApophysisNative();
                using var outputManager = new ApophysisOutputManager(apophysis);

                var commandLine = new ApophysisCommandLine(outputManager);
                if (!commandLine.NoLogo)
                {
                    Console.WriteLine("Apophysis 7x");
                    Console.WriteLine("(c) 2011-2020 Georg Kiehne");
                    Console.WriteLine();
                }

                using var outStream = commandLine.OpenOutputStream();

                apophysis.InitializeLibrary();
                commandLine.Configure(apophysis);
                apophysis.RenderToStream(outStream);
            }
            catch (Exception e)
            {
                #if DEBUG
                Console.Error.WriteLine(e.ToString());
                #else
                Console.Error.WriteLine(e.Message);
                #endif
            }
        }
Exemplo n.º 2
0
        public ApophysisOutputManager(ApophysisNative apophysis)
        {
            _apophysis = apophysis;

            apophysis.Log              += OnLog;
            apophysis.Progress         += OnProgress;
            apophysis.OperationChanged += OnOperationChanged;
        }