Unit1.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.Classes.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include <Vcl.ExtCtrls.hpp>
  13. #include "GLBaseClasses.hpp"
  14. #include "GLCadencer.hpp"
  15. #include "GLCoordinates.hpp"
  16. #include "GLCrossPlatform.hpp"
  17. #include "GLMaterial.hpp"
  18. #include "GLObjects.hpp"
  19. #include "GLScene.hpp"
  20. #include "GLTerrainRenderer.hpp"
  21. #include "GLHeightData.hpp"
  22. #include "GLWin32Viewer.hpp"
  23. #include "Jpeg.hpp"
  24. #include "GLKeyBoard.hpp"
  25. //---------------------------------------------------------------------------
  26. class TForm1 : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TGLSceneViewer *GLSceneViewer1;
  30. TGLScene *GLScene1;
  31. TGLDummyCube *DummyCube1;
  32. TGLCamera *GLCamera1;
  33. TGLTerrainRenderer *TerrainRenderer1;
  34. TTimer *Timer1;
  35. TGLCadencer *GLCadencer1;
  36. TGLMaterialLibrary *GLMaterialLibrary1;
  37. TGLCustomHDS *GLCustomHDS;
  38. void __fastcall FormCreate(TObject *Sender);
  39. void __fastcall GLCustomHDSStartPreparingData(TGLHeightData *HeightData);
  40. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  41. int X, int Y);
  42. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  43. int Y);
  44. void __fastcall Timer1Timer(TObject *Sender);
  45. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  46. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  47. private: // User declarations
  48. int mx, my;
  49. bool fullScreen;
  50. float FCamHeight;
  51. public: // User declarations
  52. __fastcall TForm1(TComponent* Owner);
  53. };
  54. //---------------------------------------------------------------------------
  55. extern PACKAGE TForm1 *Form1;
  56. //---------------------------------------------------------------------------
  57. #endif