Unit1.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include <Vcl.ComCtrls.hpp>
  10. #include <Vcl.ExtCtrls.hpp>
  11. #include "GLS.Scene.hpp"
  12. #include "GLS.BaseClasses.hpp"
  13. #include "GLS.Cadencer.hpp"
  14. #include "GLS.Coordinates.hpp"
  15. #include "GLS.Graph.hpp"
  16. #include "GLS.Objects.hpp"
  17. #include "GLS.GeomObjects.hpp"
  18. #include "GLS.SceneViewer.hpp"
  19. #include "Physics.ODEManager.hpp"
  20. //---------------------------------------------------------------------------
  21. class TForm1 : public TForm
  22. {
  23. __published: // IDE-managed Components
  24. TGLSceneViewer *GLSceneViewer1;
  25. TPanel *Panel1;
  26. TLabel *Label1;
  27. TLabel *Label2;
  28. TLabel *Label3;
  29. TButton *Spawn;
  30. TComboBox *ComboBox1;
  31. TCheckBox *CheckBox1;
  32. TCheckBox *CheckBox2;
  33. TTrackBar *TrackBar1;
  34. TComboBox *ComboBox2;
  35. TGLScene *GLScene1;
  36. TGLDummyCube *GLDummyCube1;
  37. TGLCamera *GLCamera1;
  38. TGLLightSource *GLLightSource1;
  39. TGLHeightField *GLHeightField1;
  40. TGLPlane *GLPlane1;
  41. TGLDummyCube *ODEObjects;
  42. TGLRenderPoint *GLRenderPoint1;
  43. TGLCadencer *GLCadencer1;
  44. TGLODEManager *GLODEManager1;
  45. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  46. int X, int Y);
  47. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  48. int Y);
  49. void __fastcall SpawnClick(TObject *Sender);
  50. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  51. void __fastcall GLHeightField1GetHeight(const float x, const float y, float &z,
  52. TVector4f &color, TTexPoint &texPoint);
  53. void __fastcall CheckBox1Click(TObject *Sender);
  54. void __fastcall CheckBox2Click(TObject *Sender);
  55. void __fastcall ComboBox2Change(TObject *Sender);
  56. void __fastcall TrackBar1Change(TObject *Sender);
  57. void __fastcall FormActivate(TObject *Sender);
  58. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  59. TPoint &MousePos, bool &Handled);
  60. private: // User declarations
  61. int mx,my;
  62. void DoSphere(void);
  63. void DoBox(void);
  64. void DoCapsule(void);
  65. void DoCylinder(void);
  66. void DoCone(void);
  67. public: // User declarations
  68. __fastcall TForm1(TComponent* Owner);
  69. };
  70. //---------------------------------------------------------------------------
  71. extern PACKAGE TForm1 *Form1;
  72. //---------------------------------------------------------------------------
  73. #endif