Unit1.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.Samples.Spin.hpp>
  10. #include "GLBaseClasses.hpp"
  11. #include "GLCadencer.hpp"
  12. #include "GLCoordinates.hpp"
  13. #include "GLCrossPlatform.hpp"
  14. #include "GLGeomObjects.hpp"
  15. #include "GLHUDObjects.hpp"
  16. #include "GLNGDManager.hpp"
  17. #include "GLObjects.hpp"
  18. #include "GLScene.hpp"
  19. #include "GLSimpleNavigation.hpp"
  20. #include "GLWin32Viewer.hpp"
  21. #include "NGDImport.hpp"
  22. #include "GLBitmapFont.hpp";
  23. //---------------------------------------------------------------------------
  24. class TForm1 : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLSceneViewer *GLSceneViewer1;
  28. TSpinEdit *SpinEdit1;
  29. TSpinEdit *SpinEdit2;
  30. TSpinEdit *SpinEdit3;
  31. TGLScene *GLScene1;
  32. TGLCamera *GLCamera1;
  33. TGLLightSource *GLLightSource1;
  34. TGLPlane *GLPlane1;
  35. TGLDummyCube *Mag;
  36. TGLDummyCube *obj;
  37. TGLCylinder *GLCylinder1;
  38. TGLCone *GLCone1;
  39. TGLCube *GLCube2;
  40. TGLCube *SubMarine;
  41. TGLSphere *GLLeadSphere;
  42. TGLSphere *GLPaperSphere;
  43. TGLCapsule *GLCapsule1;
  44. TGLCube *GLCube1;
  45. TGLHUDText *GLHUDText1;
  46. TGLHUDText *GLHUDText2;
  47. TGLHUDText *GLHUDText3;
  48. TGLCadencer *GLCadencer1;
  49. TGLSimpleNavigation *GLSimpleNavigation1;
  50. TGLNGDManager *GLNGDManager1;
  51. TGLBitmapFont *GLBitmapFont1;
  52. void __fastcall FormCreate(TObject *Sender);
  53. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  54. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  55. int X, int Y);
  56. private: // User declarations
  57. int mx,my;
  58. public: // User declarations
  59. __fastcall TForm1(TComponent* Owner);
  60. void MyForceAndTorqueDensity(const PNewtonBody cbody,
  61. NGDFloat timestep, int threadIndex);
  62. void Shoot(void);
  63. };
  64. //---------------------------------------------------------------------------
  65. extern PACKAGE TForm1 *Form1;
  66. //---------------------------------------------------------------------------
  67. #endif