Unit1.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include <Vcl.ExtCtrls.hpp>
  10. #include "GLAsyncTimer.hpp"
  11. #include "GLBaseClasses.hpp"
  12. #include "GLBitmapFont.hpp"
  13. #include "GLCadencer.hpp"
  14. #include "GLCoordinates.hpp"
  15. #include "GLCrossPlatform.hpp"
  16. #include "GLEParticleMasksManager.hpp"
  17. #include "GLGeomObjects.hpp"
  18. #include "GLMaterial.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLParticleFX.hpp"
  21. #include "GLScene.hpp"
  22. #include "GLWin32Viewer.hpp"
  23. #include "GLWindowsFont.hpp"
  24. #include "GLAsyncTimer.hpp"
  25. //---------------------------------------------------------------------------
  26. class TForm1 : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TSplitter *Splitter1;
  30. TGroupBox *MaskBox;
  31. TImage *XImage;
  32. TLabel *XLabel;
  33. TLabel *YLabel;
  34. TLabel *ZLabel;
  35. TImage *YImage;
  36. TImage *ZImage;
  37. TButton *Button1;
  38. TButton *Button2;
  39. TButton *Button3;
  40. TGLSceneViewer *SceneViewer;
  41. TPanel *Panel1;
  42. TLabel *Label1;
  43. TLabel *Label2;
  44. TLabel *Label3;
  45. TLabel *Label4;
  46. TLabel *Label5;
  47. TEdit *Edit1;
  48. TEdit *Edit2;
  49. TEdit *Edit3;
  50. TEdit *Edit4;
  51. TEdit *Edit5;
  52. TCheckBox *CheckBox1;
  53. TGLScene *GLScene;
  54. TGLDummyCube *Target;
  55. TGLPlane *XPlane;
  56. TGLPlane *YPlane;
  57. TGLPlane *ZPlane;
  58. TGLParticleFXRenderer *PFXRenderer;
  59. TGLSphere *Sphere;
  60. TGLArrowLine *GLArrowLine1;
  61. TGLCamera *Camera;
  62. TGLLightSource *Light;
  63. TGLCadencer *GLCadencer;
  64. TGLMaterialLibrary *MatLib;
  65. TGLWindowsBitmapFont *WinFont;
  66. TGLPointLightPFXManager *PLManager;
  67. TGLEParticleMasksManager *GLEParticleMasksManager1;
  68. TGLAsyncTimer *AsyncTimer1;
  69. TButton *Button4;
  70. void __fastcall FormCreate(TObject *Sender);
  71. void __fastcall GLCadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  72. void __fastcall SceneViewerMouseMove(TObject *Sender, TShiftState Shift, int X,
  73. int Y);
  74. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  75. TPoint &MousePos, bool &Handled);
  76. void __fastcall PLManagerCreateParticle(TObject *Sender, TGLParticle *aParticle);
  77. void __fastcall CheckBox1Click(TObject *Sender);
  78. void __fastcall Edit2Change(TObject *Sender);
  79. void __fastcall AsyncTimer1Timer(TObject *Sender);
  80. void __fastcall Button1Click(TObject *Sender);
  81. void __fastcall Button2Click(TObject *Sender);
  82. void __fastcall Button3Click(TObject *Sender);
  83. void __fastcall Button4Click(TObject *Sender);
  84. void __fastcall Edit3Change(TObject *Sender);
  85. void __fastcall Edit4Change(TObject *Sender);
  86. void __fastcall Edit5Change(TObject *Sender);
  87. private: // User declarations
  88. int mx, my;
  89. int PlaneHeights, PlaneWidths, PlaneDepths, PlaneOffSets;
  90. void __fastcall RefreshMask();
  91. public: // User declarations
  92. __fastcall TForm1(TComponent* Owner);
  93. };
  94. //---------------------------------------------------------------------------
  95. extern PACKAGE TForm1 *Form1;
  96. //---------------------------------------------------------------------------
  97. #endif