Unit1.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 "GLScene.hpp"
  12. #include "GLBaseClasses.hpp"
  13. #include "GLCadencer.hpp"
  14. #include "GLCoordinates.hpp"
  15. #include "GLCrossPlatform.hpp"
  16. #include "GLGraph.hpp"
  17. #include "GLObjects.hpp"
  18. #include "GLGeomObjects.hpp"
  19. #include "GLWin32Viewer.hpp"
  20. #include "GLODECustomColliders.hpp"
  21. #include "GLODEManager.hpp"
  22. //---------------------------------------------------------------------------
  23. class TForm1 : public TForm
  24. {
  25. __published: // IDE-managed Components
  26. TGLSceneViewer *GLSceneViewer1;
  27. TPanel *Panel1;
  28. TLabel *Label1;
  29. TLabel *Label2;
  30. TLabel *Label3;
  31. TButton *Spawn;
  32. TComboBox *ComboBox1;
  33. TCheckBox *CheckBox1;
  34. TCheckBox *CheckBox2;
  35. TTrackBar *TrackBar1;
  36. TComboBox *ComboBox2;
  37. TGLScene *GLScene1;
  38. TGLDummyCube *GLDummyCube1;
  39. TGLCamera *GLCamera1;
  40. TGLLightSource *GLLightSource1;
  41. TGLHeightField *GLHeightField1;
  42. TGLPlane *GLPlane1;
  43. TGLDummyCube *ODEObjects;
  44. TGLRenderPoint *GLRenderPoint1;
  45. TGLCadencer *GLCadencer1;
  46. TGLODEManager *GLODEManager1;
  47. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  48. int X, int Y);
  49. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  50. int Y);
  51. void __fastcall SpawnClick(TObject *Sender);
  52. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  53. void __fastcall GLHeightField1GetHeight(const float x, const float y, float &z,
  54. TVector4f &color, TTexPoint &texPoint);
  55. void __fastcall CheckBox1Click(TObject *Sender);
  56. void __fastcall CheckBox2Click(TObject *Sender);
  57. void __fastcall ComboBox2Change(TObject *Sender);
  58. void __fastcall TrackBar1Change(TObject *Sender);
  59. void __fastcall FormActivate(TObject *Sender);
  60. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  61. TPoint &MousePos, bool &Handled);
  62. private: // User declarations
  63. int mx,my;
  64. void DoSphere(void);
  65. void DoBox(void);
  66. void DoCapsule(void);
  67. void DoCylinder(void);
  68. void DoCone(void);
  69. public: // User declarations
  70. __fastcall TForm1(TComponent* Owner);
  71. };
  72. //---------------------------------------------------------------------------
  73. extern PACKAGE TForm1 *Form1;
  74. //---------------------------------------------------------------------------
  75. #endif