Unit1.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <System.Math.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.ExtCtrls.hpp>
  11. #include <Vcl.Menus.hpp>
  12. #include "GLS.BitmapFont.hpp"
  13. #include "GLS.Cadencer.hpp"
  14. #include "GLS.Coordinates.hpp"
  15. #include "GLS.GeomObjects.hpp"
  16. #include "GLS.HUDObjects.hpp"
  17. #include "GLS.LensFlare.hpp"
  18. #include "GLS.Material.hpp"
  19. #include "GLS.Objects.hpp"
  20. #include "GLS.ParticleFX.hpp"
  21. #include "GLS.Scene.hpp"
  22. #include "GLS.ShadowPlane.hpp"
  23. #include "GLS.Sound.hpp"
  24. #include "GLS.VectorFileObjects.hpp"
  25. #include "GLS.SceneViewer.hpp"
  26. #include "GLS.WindowsFont.hpp"
  27. #include "GLS.ScreenSaver.hpp"
  28. #include "GLSM.BASS.hpp"
  29. #include "GLS.FileWAV.hpp"
  30. #include "Jpeg.hpp"
  31. #include "Import.Bass.hpp"
  32. #include "GLS.FileMP3.hpp"
  33. #include "GLS.ThorFX.hpp"
  34. #include "GLS.FireFX.hpp"
  35. #include "GLS.BaseClasses.hpp"
  36. //-----------------
  37. class TForm1 : public TForm
  38. {
  39. __published: // IDE-managed Components
  40. TGLSceneViewer *Viewer;
  41. TGLSMBASS *GLSMBASS;
  42. TGLScene *Scene;
  43. TGLFreeForm *FFFirePlace;
  44. TGLDummyCube *DCFire;
  45. TGLLightSource *LSFire;
  46. TGLDummyCube *DCFireSource;
  47. TGLCylinder *CYLog;
  48. TGLDummyCube *DCFirTree;
  49. TGLDummyCube *DCTree;
  50. TGLFreeForm *FFFirTree;
  51. TGLProxyObject *POFirTree2;
  52. TGLProxyObject *POFirTree3;
  53. TGLCube *GLCube3;
  54. TGLCube *GLCube4;
  55. TGLDummyCube *DCDecoWhite;
  56. TGLProxyObject *POWhiteBall1;
  57. TGLProxyObject *POWhiteBall2;
  58. TGLProxyObject *POWhiteBall3;
  59. TGLDummyCube *DCDecoGold;
  60. TGLProxyObject *POGoldBall1;
  61. TGLProxyObject *POGoldBall2;
  62. TGLProxyObject *POGoldBall3;
  63. TGLDummyCube *DCLensFlares;
  64. TGLLensFlare *GLLensFlare1;
  65. TGLLensFlare *GLLensFlare2;
  66. TGLLensFlare *GLLensFlare3;
  67. TGLLensFlare *GLLensFlare4;
  68. TGLLensFlare *GLLensFlare5;
  69. TGLLensFlare *GLLensFlare6;
  70. TGLDummyCube *DCGifts;
  71. TGLCube *GLCube1;
  72. TGLCube *GLCube2;
  73. TGLShadowPlane *ShadowPlane;
  74. TGLFlatText *FTCountDown;
  75. TGLLensFlare *LSFireLens;
  76. TGLLightSource *LSRoom;
  77. TGLDummyCube *DCCameraTarget;
  78. TGLParticleFXRenderer *ParticleFXRenderer;
  79. TGLDummyCube *DCBalls;
  80. TGLSphere *SPWhiteBall;
  81. TGLSphere *SPGoldBall;
  82. TGLHUDSprite *HUDSprite;
  83. TGLCamera *Camera;
  84. TTimer *Timer;
  85. TGLCadencer *Cadencer;
  86. TGLMaterialLibrary *MaterialLibrary;
  87. TGLPolygonPFXManager *PFXFire;
  88. TGLSoundLibrary *SoundLibrary;
  89. TGLPolygonPFXManager *PFXTree;
  90. TGLWindowsBitmapFont *WindowsBitmapFont;
  91. TGLScreenSaver *ScreenSaver;
  92. TGLFlatText *FTCongratulations;
  93. TGLFlatText *FTYear;
  94. TPopupMenu *PopupMenu;
  95. TMenuItem *miMerryCristmas;
  96. TMenuItem *miHappyNewYear;
  97. // TScreenSaver *ScreenSaver;
  98. void __fastcall FormCreate(TObject *Sender);
  99. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  100. int X, int Y);
  101. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  102. void __fastcall TimerTimer(TObject *Sender);
  103. void __fastcall CadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  104. void __fastcall FormResize(TObject *Sender);
  105. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  106. // void __fastcall ScreenSaverCloseQuery(TObject *Sender, bool &CanClose);
  107. // void __fastcall ScreenSaverPreview(TObject *Sender, HWND previewHwnd);
  108. // void __fastcall ScreenSaverExecute(TObject *Sender);
  109. // void __fastcall ScreenSaverPropertiesRequested(TObject *Sender);
  110. void __fastcall ViewerDblClick(TObject *Sender);
  111. void __fastcall ScreenSaverCloseQuery(TObject *Sender, bool &CanClose);
  112. void __fastcall ScreenSaverExecute(TObject *Sender);
  113. void __fastcall ScreenSaverPreview(TObject *Sender, HWND previewHwnd);
  114. void __fastcall miMerryCristmasClick(TObject *Sender);
  115. void __fastcall miHappyNewYearClick(TObject *Sender);
  116. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  117. TPoint &MousePos, bool &Handled);
  118. private: // User declarations
  119. int mx, my;
  120. float fireLight;
  121. bool inPreview, inSaver;
  122. Cardinal bStream;
  123. public: // User declarations
  124. __fastcall TForm1(TComponent* Owner);
  125. };
  126. //---------------------------------------------------------------------------
  127. extern PACKAGE TForm1 *Form1;
  128. //---------------------------------------------------------------------------
  129. #endif