fArchipelagoC.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. //---------------------------------------------------------------------------
  2. #ifndef fArchipelagoCH
  3. #define fArchipelagoCH
  4. #include <System.Classes.hpp>
  5. #include <Vcl.ComCtrls.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.ExtCtrls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <System.Classes.hpp>
  10. #include <Vcl.ComCtrls.hpp>
  11. #include <Vcl.Controls.hpp>
  12. #include <Vcl.ExtCtrls.hpp>
  13. #include <Vcl.StdCtrls.hpp>
  14. #include <Vcl.Forms.hpp>
  15. #include <Vcl.Imaging.jpeg.hpp>
  16. #include "GLS.BaseClasses.hpp"
  17. #include "GLS.BitmapFont.hpp"
  18. #include "GLS.Cadencer.hpp"
  19. #include "GLS.Coordinates.hpp"
  20. #include "GLS.HeightData.hpp"
  21. #include "GLS.HeightTileFileHDS.hpp"
  22. #include "GLS.HUDObjects.hpp"
  23. #include "GLS.Material.hpp"
  24. #include "GLS.Objects.hpp"
  25. #include "GLS.Scene.hpp"
  26. #include "GLS.SceneViewer.hpp"
  27. #include "GLS.SkyDome.hpp"
  28. #include "GLS.TerrainRenderer.hpp"
  29. #include "GLS.VectorLists.hpp"
  30. #include "GLScene.VectorTypes.hpp"
  31. #include "GLScene.VectorGeometry.hpp"
  32. #include "GLS.VectorFileObjects.hpp"
  33. #include "GLS.WindowsFont.hpp"
  34. //---------------------------------------------------------------------------
  35. #include "GLS.RoamPatch.hpp"
  36. #include "GLS.RenderContextInfo.hpp"
  37. #include "GLS.Keyboard.hpp"
  38. #include "GLS.Context.hpp"
  39. #include "GLS.State.hpp"
  40. #include "GLS.TextureFormat.hpp"
  41. #include "GLS.File3DS.hpp"
  42. //---------------------------------------------------------------------------
  43. class TForm1 : public TForm
  44. {
  45. __published: // IDE-managed Components
  46. TGLSceneViewer *GLSceneViewer;
  47. TPanel *PAProgress;
  48. TLabel *Label1;
  49. TProgressBar *ProgressBar;
  50. TGLScene *GLScene1;
  51. TGLSkyDome *SkyDome;
  52. TGLDummyCube *DCCamera;
  53. TGLCamera *GLCamera;
  54. TGLTerrainRenderer *TerrainRenderer;
  55. TGLDirectOpenGL *DOWake;
  56. TGLFreeForm *FFSailBoat;
  57. TGLLightSource *LSSun;
  58. TGLHUDText *HTFPS;
  59. TGLHUDText *HTHelp;
  60. TTimer *Timer1;
  61. TGLCadencer *GLCadencer;
  62. TGLMaterialLibrary *MaterialLibrary;
  63. TGLHeightTileFileHDS *GLHeightTileFileHDS1;
  64. TGLWindowsBitmapFont *BFSmall;
  65. TGLCustomHDS *GLCustomHDS1;
  66. TGLMaterialLibrary *MLSailBoat;
  67. TGLWindowsBitmapFont *BFLarge;
  68. void __fastcall GLCadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  69. void __fastcall Timer1Timer(TObject *Sender);
  70. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  71. void __fastcall GLCustomHDS1MarkDirtyEvent(const TRect &area);
  72. void __fastcall GLCustomHDS1StartPreparingData(TGLHeightData *heightData);
  73. void __fastcall GLSceneViewerBeforeRender(TObject *Sender);
  74. void __fastcall DOWakeProgress(TObject *Sender, const double deltaTime, const double newTime);
  75. void __fastcall DOWakeRender(TObject *Sender, TGLRenderContextInfo &rci);
  76. void __fastcall TerrainRendererHeightDataPostRender(TGLRenderContextInfo &rci, TList *&HeightDatas);
  77. void __fastcall FormCreate(TObject *Sender);
  78. private: // User declarations
  79. public: // User declarations
  80. __fastcall TForm1(TComponent* Owner);
  81. bool FullScreen;
  82. float CamHeight;
  83. int WaterPolyCount;
  84. bool WaterPlane;
  85. bool WasAboveWater;
  86. float HelpOpacity;
  87. TGLAffineVectorList *WakeVertices;
  88. TGLAffineVectorList *WakeStretch;
  89. TGLSingleList *WakeTime;
  90. void ResetMousePos(void);
  91. float WaterPhase(const float px, const float py);
  92. float WaterHeight(const float px, const float py);
  93. void IssuePoint(TGLHeightData *hd, int x, int y, int s2, float t, int rx, int ry);
  94. };
  95. //---------------------------------------------------------------------------
  96. extern PACKAGE TForm1 *Form1;
  97. //---------------------------------------------------------------------------
  98. #endif