Unit1.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  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 "GLBaseClasses.hpp"
  16. #include "GLCadencer.hpp"
  17. #include "GLCoordinates.hpp"
  18. #include "GLCrossPlatform.hpp"
  19. #include "GLMaterial.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLVectorFileObjects.hpp"
  22. #include "GLWin32Viewer.hpp"
  23. #include "GLMeshUtils.hpp"
  24. #include "GLVectorGeometry.hpp"
  25. #include "GLFileTGA.hpp"
  26. #include "GLFileObj.hpp"
  27. #include "GLFile3DS.hpp"
  28. #include "GLFileMD2.hpp"
  29. #include "GLFileSMD.hpp"
  30. #include "GLUtils.hpp"
  31. #include "GLMeshUtils.hpp"
  32. //---------------------------------------------------------------------------
  33. class TForm1 : public TForm
  34. {
  35. __published: // IDE-managed Components
  36. TLabel *Label1;
  37. TGLSceneViewer *GLSceneViewer1;
  38. TPanel *Panel1;
  39. TLabel *LASubdivideTime;
  40. TButton *BULoad;
  41. TButton *BUSubdivide;
  42. TTrackBar *TrackBar1;
  43. TRadioButton *RBWireFrame;
  44. TRadioButton *RBSolid;
  45. TCheckBox *CBAnimate;
  46. TGLScene *GLScene1;
  47. TGLActor *GLActor1;
  48. TGLLightSource *GLLightSource1;
  49. TGLCamera *GLCamera1;
  50. TGLMaterialLibrary *GLMaterialLibrary1;
  51. TTimer *Timer1;
  52. TGLCadencer *GLCadencer1;
  53. void __fastcall BULoadClick(TObject *Sender);
  54. void __fastcall BUSubdivideClick(TObject *Sender);
  55. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  56. int X, int Y);
  57. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  58. int Y);
  59. void __fastcall RBWireFrameClick(TObject *Sender);
  60. void __fastcall RBSolidClick(TObject *Sender);
  61. void __fastcall Timer1Timer(TObject *Sender);
  62. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  63. void __fastcall CBAnimateClick(TObject *Sender);
  64. private: // User declarations
  65. int mx, my;
  66. public: // User declarations
  67. __fastcall TForm1(TComponent* Owner);
  68. };
  69. //---------------------------------------------------------------------------
  70. extern PACKAGE TForm1 *Form1;
  71. //---------------------------------------------------------------------------
  72. #endif