Unit1.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.ComCtrls.hpp>
  13. #include <Vcl.ExtCtrls.hpp>
  14. #include "GLBaseClasses.hpp"
  15. #include "GLCadencer.hpp"
  16. #include "GLCoordinates.hpp"
  17. #include "GLCrossPlatform.hpp"
  18. #include "GLGraph.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLSimpleNavigation.hpp"
  22. #include "GLSkydome.hpp"
  23. #include "GLThorFX.hpp"
  24. #include "GLWin32Viewer.hpp"
  25. #include "GLUtils.hpp"
  26. #include "JPeg.hpp"
  27. //---------------------------------------------------------------------------
  28. class TForm1 : public TForm
  29. {
  30. __published: // IDE-managed Components
  31. TGLSceneViewer *GLSceneViewer1;
  32. TPanel *Panel1;
  33. TLabel *Label1;
  34. TLabel *Label6;
  35. TLabel *Label4;
  36. TLabel *Label3;
  37. TLabel *Label5;
  38. TTrackBar *DistanceBar;
  39. TTrackBar *GSbar;
  40. TTrackBar *GAbar;
  41. TTrackBar *WildBar;
  42. TTrackBar *VibBar;
  43. TCheckBox *SpinBox;
  44. TCheckBox *CoreBox;
  45. TMemo *Memo1;
  46. TCheckBox *PauseBox;
  47. TGLScene *GLScene1;
  48. TGLSkyDome *SkyDome1;
  49. TGLHeightField *HeightField1;
  50. TGLDummyCube *Objects;
  51. TGLCube *TargetCube;
  52. TGLCube *ThorCube;
  53. TGLLightSource *GLLightSource1;
  54. TGLCamera *GLCamera1;
  55. TGLCadencer *GLCadencer1;
  56. TGLThorFXManager *GLThorFXManager1;
  57. TGLSimpleNavigation *GLSimpleNavigation1;
  58. void __fastcall FormCreate(TObject *Sender);
  59. void __fastcall GSbarChange(TObject *Sender);
  60. void __fastcall GAbarChange(TObject *Sender);
  61. void __fastcall WildBarChange(TObject *Sender);
  62. void __fastcall VibBarChange(TObject *Sender);
  63. void __fastcall DistanceBarChange(TObject *Sender);
  64. void __fastcall CoreBoxClick(TObject *Sender);
  65. void __fastcall GLThorFXManager1CalcPoint(TObject *Sender, int PointNo, float &x,
  66. float &y, float &z);
  67. void __fastcall PauseBoxClick(TObject *Sender);
  68. void __fastcall HeightField1GetHeight(const float x, const float y, float &z, TVector4f &Color,
  69. TTexPoint &TexPoint);
  70. private: // User declarations
  71. int mx, my;
  72. public: // User declarations
  73. __fastcall TForm1(TComponent* Owner);
  74. };
  75. //---------------------------------------------------------------------------
  76. extern PACKAGE TForm1 *Form1;
  77. //---------------------------------------------------------------------------
  78. #endif