25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
501 B

  1. program triangle;
  2. {$mode objfpc}{$H+}
  3. {$APPTYPE CONSOLE}
  4. uses
  5. {$IFDEF UNIX}{$IFDEF UseCThreads}
  6. cthreads,
  7. {$ENDIF}{$ENDIF}
  8. Interfaces, Dialogs, Forms, uMainForm, Vulkan, uvkuDevice, uvkuDeviceFactory;
  9. {$R *.res}
  10. begin
  11. if not InitializeVulkan then begin
  12. MessageDlg('Error', 'unable to initialize vulkan api', mtError, [mbOK], 0);
  13. halt;
  14. end;
  15. RequireDerivedFormResource := True;
  16. Application.Initialize;
  17. Application.CreateForm(TMainForm, MainForm);
  18. Application.Run;
  19. end.