//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include #include "GLS.BaseClasses.hpp" #include "GLS.Cadencer.hpp" #include "GLS.Coordinates.hpp" #include "GLS.Objects.hpp" #include "Physics.ODEManager.hpp" #include "GLS.Scene.hpp" #include "GLS.Utils.hpp" #include "GLS.SimpleNavigation.hpp" #include "GLS.SceneViewer.hpp" //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TGLSceneViewer *GLSceneViewer1; TPanel *Panel1; TLabel *Label1; TLabel *Label2; TLabel *FrictionFeedback; TLabel *Label3; TLabel *Label4; TLabel *Label5; TLabel *Label6; TLabel *NormZ; TLabel *NormY; TLabel *NormX; TTrackBar *TrackBarMotionSpeed; TEdit *Friction; TEdit *FDirX; TEdit *FDirY; TEdit *FDirZ; TButton *AddODECube; TGLScene *GLScene1; TGLCamera *GLCamera1; TGLLightSource *GLLightSource1; TGLCube *ConveyorBelt1; TGLCube *GLCube1; TGLRenderPoint *GLRenderPoint1; TGLDummyCube *SpawnPoint; TGLCadencer *GLCadencer1; TGLODEManager *GLODEManager1; TGLSimpleNavigation *GLSimpleNavigation1; void __fastcall FormCreate(TObject *Sender); void __fastcall FormShow(TObject *Sender); void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime); void __fastcall GLODEManager1Collision(TObject *Sender, TObject *Object1, TObject *Object2, TdContact &Contact, bool &HandleCollision); void __fastcall TrackBarMotionSpeedChange(TObject *Sender); void __fastcall AddODECubeClick(TObject *Sender); void __fastcall FrictionChange(TObject *Sender); private: // User declarations Gls::Vectorgeometry::TVector FUserDirection; Gls::Vectorgeometry::TVector FDirectionVector; public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif