Unit1.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  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 "OpenGL1x.hpp"
  12. #include "GLTexCombineShader.hpp"
  13. #include "GLBumpmapHDS.hpp"
  14. #include "GLLensFlare.hpp"
  15. #include "GLVectorGeometry.hpp"
  16. #include "GLWin32Viewer.hpp"
  17. #include "GLSkydome.hpp"
  18. #include "GLTexture.hpp"
  19. #include "GLCadencer.hpp"
  20. #include "GLHeightData.hpp"
  21. #include "GLObjects.hpp"
  22. #include "GLTerrainRenderer.hpp"
  23. #include "GLScene.hpp"
  24. #include "GLBaseClasses.hpp"
  25. #include "GLCoordinates.hpp"
  26. #include "GLCrossPlatform.hpp"
  27. #include "GLMaterial.hpp"
  28. #include "GLKeyBoard.hpp"
  29. #include <jpeg.hpp> // Pascal unit
  30. //---------------------------------------------------------------------------
  31. class TForm1:public TForm
  32. {
  33. __published: // IDE-managed Components
  34. TGLSceneViewer * GLSceneViewer1;
  35. TGLBitmapHDS *GLBitmapHDS1;
  36. TGLScene *GLScene1;
  37. TGLCamera *GLCamera1;
  38. TGLDummyCube *DummyCube1;
  39. TGLTerrainRenderer *TerrainRenderer1;
  40. TTimer *Timer1;
  41. TGLCadencer *GLCadencer1;
  42. TGLMaterialLibrary *GLMaterialLibrary1;
  43. TGLSkyDome *SkyDome1;
  44. TGLSprite *SPSun;
  45. TGLLensFlare *GLLensFlare;
  46. TGLDummyCube *GLDummyCube1;
  47. TGLTexCombineShader *GLTexCombineShader1;
  48. TGLBumpmapHDS *GLBumpmapHDS1;
  49. TPanel *Panel1;
  50. TLabel *Label1;
  51. TTrackBar *TBSubSampling;
  52. TLabel *LASubFactor;
  53. TLabel *Label2;
  54. TTrackBar *TBIntensity;
  55. TLabel *LABumpIntensity;
  56. void __fastcall FormShow(TObject * Sender);
  57. void __fastcall GLBumpmapHDS1NewTilePrepared(TGLBumpmapHDS * Sender,
  58. TGLHeightData * heightData,
  59. TGLLibMaterial *
  60. normalMapMaterial);
  61. void __fastcall GLCadencer1Progress(TObject * Sender,
  62. const double deltaTime,
  63. const double newTime);
  64. void __fastcall GLSceneViewer1MouseDown(TObject * Sender,
  65. TMouseButton Button,
  66. TShiftState Shift, int X, int Y);
  67. void __fastcall GLSceneViewer1MouseMove(TObject * Sender,
  68. TShiftState Shift, int X, int Y);
  69. void __fastcall Timer1Timer(TObject * Sender);
  70. void __fastcall FormKeyPress(TObject * Sender, char &Key);
  71. void __fastcall GLSceneViewer1BeforeRender(TObject * Sender);
  72. void __fastcall TBSubSamplingChange(TObject * Sender);
  73. void __fastcall TBIntensityChange(TObject * Sender);
  74. private: // User declarations
  75. public: // User declarations
  76. __fastcall TForm1(TComponent * Owner);
  77. int mx, my;
  78. bool fullScreen;
  79. float FCamHeight;
  80. };
  81. //---------------------------------------------------------------------------
  82. extern PACKAGE TForm1 *Form1;
  83. //---------------------------------------------------------------------------
  84. #endif