fShadedTerrainC.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //---------------------------------------------------------------------------
  2. #ifndef fShadedTerrainCH
  3. #define fShadedTerrainCH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include "GLS.BumpMapHDS.hpp"
  12. #include "GLS.LensFlare.hpp"
  13. #include "GLScene.VectorGeometry.hpp"
  14. #include "GLS.SceneViewer.hpp"
  15. #include "GLS.SkyDome.hpp"
  16. #include "GLS.Texture.hpp"
  17. #include "GLS.Cadencer.hpp"
  18. #include "GLS.HeightData.hpp"
  19. #include "GLS.Objects.hpp"
  20. #include "GLS.TerrainRenderer.hpp"
  21. #include "GLS.Scene.hpp"
  22. #include "GLS.BaseClasses.hpp"
  23. #include "GLS.Coordinates.hpp"
  24. #include "GLS.Material.hpp"
  25. #include "GLS.Keyboard.hpp"
  26. #include <jpeg.hpp>
  27. #include "GLSL.TextureShaders.hpp" // Pascal unit
  28. //---------------------------------------------------------------------------
  29. class TForm1:public TForm
  30. {
  31. __published: // IDE-managed Components
  32. TGLSceneViewer * GLSceneViewer1;
  33. TGLBitmapHDS *GLBitmapHDS1;
  34. TGLScene *GLScene1;
  35. TGLCamera *GLCamera1;
  36. TGLDummyCube *DummyCube1;
  37. TGLTerrainRenderer *TerrainRenderer1;
  38. TTimer *Timer1;
  39. TGLCadencer *GLCadencer1;
  40. TGLMaterialLibrary *GLMaterialLibrary1;
  41. TGLSkyDome *SkyDome1;
  42. TGLSprite *SPSun;
  43. TGLLensFlare *GLLensFlare;
  44. TGLDummyCube *GLDummyCube1;
  45. TGLTexCombineShader *GLTexCombineShader1;
  46. TGLBumpmapHDS *GLBumpmapHDS1;
  47. TPanel *Panel1;
  48. TLabel *Label1;
  49. TTrackBar *TBSubSampling;
  50. TLabel *LASubFactor;
  51. TLabel *Label2;
  52. TTrackBar *TBIntensity;
  53. TLabel *LABumpIntensity;
  54. void __fastcall FormShow(TObject * Sender);
  55. void __fastcall GLBumpmapHDS1NewTilePrepared(TGLBumpmapHDS * Sender,
  56. TGLHeightData * heightData,
  57. TGLLibMaterial *
  58. normalMapMaterial);
  59. void __fastcall GLCadencer1Progress(TObject * Sender,
  60. const double deltaTime,
  61. const double newTime);
  62. void __fastcall GLSceneViewer1MouseDown(TObject * Sender,
  63. TMouseButton Button,
  64. TShiftState Shift, int X, int Y);
  65. void __fastcall GLSceneViewer1MouseMove(TObject * Sender,
  66. TShiftState Shift, int X, int Y);
  67. void __fastcall Timer1Timer(TObject * Sender);
  68. void __fastcall FormKeyPress(TObject * Sender, char &Key);
  69. void __fastcall GLSceneViewer1BeforeRender(TObject * Sender);
  70. void __fastcall TBSubSamplingChange(TObject * Sender);
  71. void __fastcall TBIntensityChange(TObject * Sender);
  72. private: // User declarations
  73. public: // User declarations
  74. __fastcall TForm1(TComponent * Owner);
  75. int mx, my;
  76. bool fullScreen;
  77. float FCamHeight;
  78. };
  79. //---------------------------------------------------------------------------
  80. extern PACKAGE TForm1 *Form1;
  81. //---------------------------------------------------------------------------
  82. #endif