fQ3DemoC.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //---------------------------------------------------------------------------
  2. #ifndef fQ3DemoCH
  3. #define fQ3DemoCH
  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 <Vcl.Imaging.Jpeg.hpp>
  15. #include "GLS.Scene.hpp"
  16. #include "GLS.Objects.hpp"
  17. #include "GLS.SceneViewer.hpp"
  18. #include "GLS.Cadencer.hpp"
  19. #include "GLS.VectorFileObjects.hpp"
  20. #include "GLS.ShadowPlane.hpp"
  21. #include "GLS.VectorGeometry.hpp"
  22. #include "GLS.Texture.hpp"
  23. #include "GLS.ParticleFX.hpp"
  24. #include "GLS.Material.hpp"
  25. #include "GLS.Coordinates.hpp"
  26. #include "GLS.BaseClasses.hpp"
  27. #include "GLS.FileQ3MD3.hpp"
  28. //---------------------------------------------------------------------------
  29. class TForm1 : public TForm
  30. {
  31. __published: // IDE-managed Components
  32. TPanel *Panel1;
  33. TLabel *Label1;
  34. TLabel *Label2;
  35. TLabel *Label3;
  36. TLabel *Label4;
  37. TLabel *Label5;
  38. TComboBox *ComboBox1;
  39. TComboBox *ComboBox2;
  40. TTrackBar *TrackBar1;
  41. TTrackBar *TrackBar2;
  42. TTrackBar *TrackBar3;
  43. TTrackBar *TrackBar4;
  44. TComboBox *ComboSkin;
  45. TGLSceneViewer *GLSceneViewer1;
  46. TGLScene *GLScene1;
  47. TGLDummyCube *DummyCube1;
  48. TGLLightSource *GLLightSource1;
  49. TGLCamera *GLCamera1;
  50. TGLDummyCube *ModelCube;
  51. TGLActor *Legs;
  52. TGLActor *Torso;
  53. TGLActor *Head;
  54. TGLActor *Weapon;
  55. TGLDummyCube *GunSmoke;
  56. TGLShadowPlane *GLShadowPlane1;
  57. TGLParticleFXRenderer *GLParticleFXRenderer1;
  58. TGLCadencer *GLCadencer1;
  59. TTimer *Timer1;
  60. TGLMaterialLibrary *MatLib;
  61. TGLPointLightPFXManager *GLPointLightPFXManager1;
  62. void __fastcall FormCreate(TObject *Sender);
  63. void __fastcall ComboBox1Change(TObject *Sender);
  64. void __fastcall ComboBox2Change(TObject *Sender);
  65. void __fastcall ComboSkinChange(TObject *Sender);
  66. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  67. int X, int Y);
  68. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  69. int Y);
  70. void __fastcall Timer1Timer(TObject *Sender);
  71. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  72. void __fastcall FormDestroy(TObject *Sender);
  73. private: // User declarations
  74. int mx, my;
  75. int Idx;
  76. TMD3TagList *LegsTags;
  77. TMD3TagList *TorsoTags;
  78. TMD3TagList *WeaponTags;
  79. void __fastcall BuildModel();
  80. TGLMatrix __fastcall InterpolateMatrix(
  81. TGLMatrix m1, TGLMatrix m2, Single Delta);
  82. public: // User declarations
  83. __fastcall TForm1(TComponent* Owner);
  84. };
  85. //---------------------------------------------------------------------------
  86. extern PACKAGE TForm1 *Form1;
  87. //---------------------------------------------------------------------------
  88. #endif