2
0

Unit1.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include "GLVectorGeometry.hpp"
  12. #include "GLScene.hpp"
  13. #include "GLBaseClasses.hpp"
  14. #include <GLGeomObjects.hpp>
  15. #include <GLNavigator.hpp>
  16. #include <GLCadencer.hpp>
  17. #include <GLWin32Viewer.hpp>
  18. #include <GLObjects.hpp>
  19. #include <GLVectorFileObjects.hpp>
  20. #include "GLCoordinates.hpp"
  21. #include "GLCrossPlatform.hpp"
  22. #include "GLUtils.hpp"
  23. //---------------------------------------------------------------------------
  24. class TForm1:public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLScene * GLScene1;
  28. TGLLightSource *GLLightSource1;
  29. TGLDummyCube *DummyCube1;
  30. TGLFreeForm *FreeForm1;
  31. TGLSphere *Sphere1;
  32. TGLArrowLine *ArrowLine1;
  33. TGLSceneViewer *GLSceneViewer2;
  34. TGLCamera *GLCamera2;
  35. TGLCadencer *GLCadencer1;
  36. TTimer *Timer1;
  37. TGLDummyCube *DummyCube2;
  38. TGLSphere *Sphere2;
  39. TGLLightSource *GLLightSource2;
  40. TPanel *Panel1;
  41. TLabel *Label1;
  42. TLabel *Label2;
  43. TLabel *Label3;
  44. TLabel *Label4;
  45. TTrackBar *TrackBar1;
  46. TButton *Button1;
  47. TGLLines *Lines1;
  48. TLabel *LabelFPS;
  49. void __fastcall GLCadencer1Progress(TObject * Sender, const double deltaTime,
  50. const double newTime);
  51. void __fastcall Timer1Timer(TObject * Sender);
  52. void __fastcall Button1Click(TObject * Sender);
  53. private: // User declarations
  54. float colTotalTime; // for timing collision detection
  55. int colCount;
  56. void AddToTrail(const Glvectorgeometry::TVector & p);
  57. public: // User declarations
  58. __fastcall TForm1(TComponent * Owner);
  59. int mousex, mousey;
  60. };
  61. //---------------------------------------------------------------------------
  62. extern PACKAGE TForm1 *Form1;
  63. //---------------------------------------------------------------------------
  64. #endif