{
     Apophysis Copyright (C) 2001-2004 Mark Townsend
     Apophysis Copyright (C) 2005-2006 Ronald Hordijk, Piotr Borys, Peter Sdobnov     

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
}
program Apophysis3D;

{$SetPEFlags $20} // set LARGE_ADDRESS_AWARE flag!

{%ToDo 'Apophysis3D.todo'}

uses
  FastMM4 in '..\..\Source\FastMM4.pas',
  Forms,
  Dialogs,
  SysUtils,
  Main in '..\..\Source\Main.pas' {MainForm},
  Editor in '..\..\Source\Editor.pas' {EditForm},
  Global in '..\..\Source\Global.pas',
  Options in '..\..\Source\Options.pas' {OptionsForm},
  Regstry in '..\..\Source\Regstry.pas',
  Fullscreen in '..\..\Source\Fullscreen.pas' {FullscreenForm},
  FormRender in '..\..\Source\FormRender.pas' {RenderForm},
  Mutate in '..\..\Source\Mutate.pas' {MutateForm},
  Adjust in '..\..\Source\Adjust.pas' {AdjustForm},
  Browser in '..\..\Source\Browser.pas' {GradientBrowser},
  Save in '..\..\Source\Save.pas' {SaveForm},
  About in '..\..\Source\About.pas' {AboutForm},
  Cmap in '..\..\Source\cmap.pas',
  SavePreset in '..\..\Source\SavePreset.pas' {SavePresetForm},
  ControlPoint in '..\..\Source\ControlPoint.pas',
  Tracer in '..\..\Source\Tracer.pas',
  HtmlHlp in '..\..\Source\HtmlHlp.pas',
  Preview in '..\..\Source\Preview.pas' {PreviewForm},
  ScriptForm in '..\..\Source\ScriptForm.pas' {ScriptEditor},
  ScriptRender in '..\..\Source\ScriptRender.pas' {ScriptRenderForm},
  FormFavorites in '..\..\Source\FormFavorites.pas' {FavoritesForm},
  FormExport in '..\..\Source\FormExport.pas' {ExportDialog},
  MsMultiPartFormData in '..\..\Source\MsMultiPartFormData.pas',
  XForm in '..\..\Source\XForm.pas',
  XFormMan in '..\..\Source\XFormMan.pas',
  cmapdata in '..\..\Source\cmapdata.pas',
  GradientHlpr in '..\..\Source\GradientHlpr.pas',
  formPostProcess in '..\..\Source\formPostProcess.pas' {frmPostProcess},
  RndFlame in '..\..\Source\RndFlame.pas',
  bmdll32 in '..\..\Source\bmdll32.PAS',
  ImageColoring in '..\..\Source\ImageColoring.pas' {frmImageColoring},
  BaseVariation in '..\..\Source\BaseVariation.pas',
  ImageMaker in '..\..\Source\ImageMaker.pas',
  CustomDrawControl in '..\..\Source\CustomDrawControl.pas',
  Render in '..\..\Source\Render.pas',
  RenderTypes in '..\..\Source\RenderTypes.pas',
  RenderST in '..\..\Source\RenderST.pas',
  RenderMT in '..\..\Source\RenderMT.pas',
  RenderThread in '..\..\Source\RenderThread.pas',
  BucketFillerThread in '..\..\Source\BucketFillerThread.pas',
  Render64 in '..\..\Source\Render64.pas',
  Render64MT in '..\..\Source\Render64MT.pas',
  Render48 in '..\..\Source\Render48.pas',
  Render48MT in '..\..\Source\Render48MT.pas',
  Render32f in '..\..\Source\Render32f.pas',
  Render32fMT in '..\..\Source\Render32fMT.pas',
  Render32 in '..\..\Source\Render32.pas',
  Render32MT in '..\..\Source\Render32MT.pas',
  FastMM4Messages in '..\..\Source\FastMM4Messages.pas',
  varRadialBlur in '..\..\Source\varRadialBlur.pas',
  varRings2 in '..\..\Source\varRings2.pas',
  varFan2 in '..\..\Source\varFan2.pas',
  varpdj in '..\..\Source\varPDJ.pas',
  varJuliaN in '..\..\Source\varJuliaN.pas',
  varJuliaScope in '..\..\Source\varJuliaScope.pas',
  varJulia3Djf in '..\..\Source\varJulia3Djf.pas',
  varJulia3Dz in '..\..\Source\varJulia3Dz.pas',
  varCurl in '..\..\Source\varCurl.pas',
  varCurl3D in '..\..\Source\varCurl3D.pas',
  varRectangles in '..\..\Source\varRectangles.pas',
  varHemisphere in '..\..\Source\varHemisphere.pas',
  varGenericPlugin in '..\..\Source\varGenericPlugin.pas';

{$R *.RES}

begin
  if now >= EncodeDate(2017, 10, 1) then begin
    ShowMessage('This version has expired... :-(' + #13#10 +
                'Anyway it''s just a hack, I don''t know why you''re still using it - ' +
                'there must be some REAL 3D fractal programs available by now :)' + #13#10 + #13#10 +
                'At least I hope you still can visit my deviantART page - http://zueuk.deviantart.com');
    Halt
  end;

  Application.Initialize;
  Application.Title := 'Apophysis';
  Application.HelpFile := 'Apophysis 2.0.chm';
  Application.CreateForm(TMainForm, MainForm);
  Application.CreateForm(TEditForm, EditForm);
  Application.CreateForm(TOptionsForm, OptionsForm);
  Application.CreateForm(TFullscreenForm, FullscreenForm);
  Application.CreateForm(TRenderForm, RenderForm);
  Application.CreateForm(TMutateForm, MutateForm);
  Application.CreateForm(TAdjustForm, AdjustForm);
  Application.CreateForm(TGradientBrowser, GradientBrowser);
  Application.CreateForm(TSaveForm, SaveForm);
  Application.CreateForm(TAboutForm, AboutForm);
  Application.CreateForm(TSavePresetForm, SavePresetForm);
  Application.CreateForm(TScriptEditor, ScriptEditor);
  Application.CreateForm(TPreviewForm, PreviewForm);
  Application.CreateForm(TScriptRenderForm, ScriptRenderForm);
  Application.CreateForm(TFavoritesForm, FavoritesForm);
  Application.CreateForm(TExportDialog, ExportDialog);
  Application.CreateForm(TfrmPostProcess, frmPostProcess);
  Application.CreateForm(TfrmImageColoring, frmImageColoring);
  Application.CreateForm(TTraceForm, TraceForm);
  Application.UpdateFormatSettings := False;
  DecimalSeparator := '.';
  Application.Run;
end.

