fChrismasC.h 4.4 KB

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