fHeightfieldC.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //---------------------------------------------------------------------------
  2. #ifndef fHeightfieldCH
  3. #define fHeightfieldCH
  4. //---------------------------------------------------------------------------
  5. #include <tchar.h>
  6. #include <System.Classes.hpp>
  7. #include <System.Math.hpp>
  8. #include <Vcl.Controls.hpp>
  9. #include <Vcl.StdCtrls.hpp>
  10. #include <Vcl.Forms.hpp>
  11. #include <Vcl.ComCtrls.hpp>
  12. #include <Vcl.ExtCtrls.hpp>
  13. #include "GLS.BaseClasses.hpp"
  14. #include "GLS.Cadencer.hpp"
  15. #include "GLS.Coordinates.hpp"
  16. #include "GLS.Graph.hpp"
  17. #include "GLS.Objects.hpp"
  18. #include "GLS.Scene.hpp"
  19. #include "GLS.Texture.hpp"
  20. #include "GLS.SceneViewer.hpp"
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer *GLSceneViewer1;
  26. TPanel *Panel1;
  27. TLabel *Label1;
  28. TLabel *Label2;
  29. TLabel *Label3;
  30. TLabel *Label4;
  31. TLabel *LabelFPS;
  32. TTrackBar *TrackBar1;
  33. TTrackBar *TrackBar2;
  34. TTrackBar *TrackBar3;
  35. TRadioGroup *RadioGroup1;
  36. TCheckBox *CheckBox1;
  37. TComboBox *ComboBox1;
  38. TCheckBox *CheckBox2;
  39. TGLScene *GLScene1;
  40. TGLHeightField *HeightField1;
  41. TGLSphere *Sphere1;
  42. TGLLines *Lines1;
  43. TGLLightSource *GLLightSource1;
  44. TGLCamera *GLCamera1;
  45. TTimer *Timer1;
  46. TGLCadencer *GLCadencer1;
  47. void __fastcall FormCreate(TObject *Sender);
  48. void __fastcall Sphere1Progress(TObject *Sender, const double deltaTime, const double newTime);
  49. void __fastcall ComboBox1Change(TObject *Sender);
  50. void __fastcall CheckBox1Click(TObject *Sender);
  51. void __fastcall TrackBar1Change(TObject *Sender);
  52. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  53. int X, int Y);
  54. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  55. int Y);
  56. void __fastcall TrackBar2Change(TObject *Sender);
  57. void __fastcall TrackBar3Change(TObject *Sender);
  58. void __fastcall RadioGroup1Click(TObject *Sender);
  59. void __fastcall CheckBox2Click(TObject *Sender);
  60. void __fastcall Timer1Timer(TObject *Sender);
  61. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  62. TPoint &MousePos, bool &Handled);
  63. private: // User declarations
  64. int mx,my;
  65. void __fastcall Formula1(const float x, const float y, float &z,
  66. TVector4f &color, TTexPoint &texPoint);
  67. void __fastcall Formula2(const float x, const float y, float &z,
  68. TVector4f &color, TTexPoint &texPoint);
  69. void __fastcall Formula3(const float x, const float y, float &z,
  70. TVector4f &color, TTexPoint &texPoint);
  71. public: // User declarations
  72. __fastcall TForm1(TComponent* Owner);
  73. };
  74. //---------------------------------------------------------------------------
  75. extern PACKAGE TForm1 *Form1;
  76. //---------------------------------------------------------------------------
  77. #endif