fParticleMaskingC.h 3.0 KB

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