123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- //
- // The graphics engine GXScene https://github.com/glscene
- //
- unit FMxCUDAEditor;
- (* Editor of TgxCUDA *)
- interface
- uses
- System.SysUtils,
- System.Types,
- System.UITypes,
- System.Classes,
- System.Variants,
- FMX.Types,
- FMX.Controls,
- FMX.Forms,
- FMX.Graphics,
- FMX.Dialogs,
- FMX.Layouts,
- FMX.ListBox,
- FMX.Objects,
- FMX.StdCtrls,
- FMX.Controls.Presentation,
- Stage.Strings,
- CUDAx.API,
- CUDAx.FFTPlan,
- CUDAx.Graphics;
- type
- TCUDAEditorForm = class(TForm)
- ToolBar1: TToolBar;
- SBOpen: TSpeedButton;
- Image1: TImage;
- SBSave: TSpeedButton;
- Image2: TImage;
- SBHelp: TSpeedButton;
- Image3: TImage;
- ListBox1: TListBox;
- end;
- var
- CUDAEditorForm: TCUDAEditorForm;
- function GetCUDAEditorForm: TCUDAEditorForm;
- procedure ReleaseCUDAEditorForm;
- //-------------------------------------------------------------
- implementation
- //-------------------------------------------------------------
- {$R *.fmx}
- var
- vCUDAEditorForm: TCUDAEditorForm;
-
- function GetCUDAEditorForm: TCUDAEditorForm;
- begin
- if not Assigned(vCUDAEditorForm) then
- vCUDAEditorForm := TCUDAEditorForm.Create(nil);
- Result := vCUDAEditorForm;
- end;
- procedure ReleaseCUDAEditorForm;
- begin
- if Assigned(vCUDAEditorForm) then
- begin
- vCUDAEditorForm.Free;
- vCUDAEditorForm := nil;
- end;
- end;
- end.
|