Unit1.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <tchar.h>
  6. #include <System.Classes.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.ComCtrls.hpp>
  11. #include <Vcl.ExtCtrls.hpp>
  12. #include "GLS.Scene.hpp"
  13. #include "GLS.Cadencer.hpp"
  14. #include "GLS.SceneViewer.hpp"
  15. #include "GLS.Coordinates.hpp"
  16. #include "GLS.BaseClasses.hpp"
  17. #include "GLS.ExplosionFx.hpp"
  18. #include "GLS.VectorFileObjects.hpp"
  19. //---------------------------------------------------------------------------
  20. class TForm1 : public TForm
  21. {
  22. __published: // IDE-managed Components
  23. TGLSceneViewer *Viewer;
  24. TPanel *Panel1;
  25. TLabel *Label2;
  26. TLabel *Label1;
  27. TLabel *Label3;
  28. TCheckBox *CheckOn;
  29. TButton *Button1;
  30. TProgressBar *StepBar;
  31. TTrackBar *MaxStepsBar;
  32. TTrackBar *SpeedBar;
  33. TGLScene *GLScene1;
  34. TGLFreeForm *mesh;
  35. TGLCamera *Camera1;
  36. TGLLightSource *GLLightSource1;
  37. TGLCadencer *GLCadencer1;
  38. void __fastcall FormCreate(TObject *Sender);
  39. void __fastcall CheckOnClick(TObject *Sender);
  40. void __fastcall Button1Click(TObject *Sender);
  41. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  42. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  43. int X, int Y);
  44. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  45. void __fastcall SpeedBarChange(TObject *Sender);
  46. void __fastcall MaxStepsBarChange(TObject *Sender);
  47. private: // User declarations
  48. int vx, vy;
  49. TGLMeshObjectList *Cache;
  50. TGLBExplosionFX *expl;
  51. public: // User declarations
  52. __fastcall TForm1(TComponent* Owner);
  53. };
  54. //---------------------------------------------------------------------------
  55. extern PACKAGE TForm1 *Form1;
  56. //---------------------------------------------------------------------------
  57. #endif