fSkeletalC.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //---------------------------------------------------------------------------
  2. #ifndef fSkeletalCH
  3. #define fSkeletalCH
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.Classes.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include <Vcl.ComCtrls.hpp>
  13. #include <Vcl.ExtCtrls.hpp>
  14. #include "GLS.Graph.hpp"
  15. #include "GLS.SceneViewer.hpp"
  16. #include "GLS.Cadencer.hpp"
  17. #include "GLS.BaseClasses.hpp"
  18. #include "GLS.Coordinates.hpp"
  19. #include "GLS.Material.hpp"
  20. #include "GLS.Objects.hpp"
  21. #include "GLS.Scene.hpp"
  22. #include "GLS.VectorFileObjects.hpp"
  23. //---------------------------------------------------------------------------
  24. class TFormSkeletal : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLSceneViewer *GLSceneViewer1;
  28. TPanel *Panel1;
  29. TLabel *LabelFPS;
  30. TButton *BULongJump;
  31. TCheckBox *CheckBox1;
  32. TButton *BUHighJump;
  33. TRadioButton *RBWalk;
  34. TRadioButton *RBRun;
  35. TPanel *Panel2;
  36. TTrackBar *TrackBar1;
  37. TCheckBox *CBBlend;
  38. TGLScene *GLScene1;
  39. TGLLightSource *GLLightSource1;
  40. TGLActor *Actor1;
  41. TGLDummyCube *DummyCube1;
  42. TGLXYZGrid *XYZGrid1;
  43. TGLCamera *GLCamera1;
  44. TGLMaterialLibrary *GLMaterialLibrary1;
  45. TTimer *Timer1;
  46. TGLCadencer *GLCadencer1;
  47. TGLAnimationControler *AnimationControler1;
  48. void __fastcall FormCreate(TObject *Sender);
  49. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  50. TPoint &MousePos, bool &Handled);
  51. void __fastcall RBWalkClick(TObject *Sender);
  52. void __fastcall RBRunClick(TObject *Sender);
  53. void __fastcall BULongJumpClick(TObject *Sender);
  54. void __fastcall BUHighJumpClick(TObject *Sender);
  55. void __fastcall Actor1EndFrameReached(TObject *Sender);
  56. void __fastcall CBBlendClick(TObject *Sender);
  57. void __fastcall TrackBar1Change(TObject *Sender);
  58. void __fastcall CheckBox1Click(TObject *Sender);
  59. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  60. int X, int Y);
  61. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  62. int Y);
  63. void __fastcall Timer1Timer(TObject *Sender);
  64. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  65. private: // User declarations
  66. String baseAnimation;
  67. int mx, my;
  68. public: // User declarations
  69. __fastcall TFormSkeletal(TComponent* Owner);
  70. };
  71. //---------------------------------------------------------------------------
  72. extern PACKAGE TFormSkeletal *FormSkeletal;
  73. //---------------------------------------------------------------------------
  74. #endif