Unit1.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "GLBaseClasses.hpp"
  10. #include "GLCadencer.hpp"
  11. #include "GLCoordinates.hpp"
  12. #include "GLCrossPlatform.hpp"
  13. #include "GLGraph.hpp"
  14. #include "GLMaterial.hpp"
  15. #include "GLObjects.hpp"
  16. #include "GLScene.hpp"
  17. #include "GLTilePlane.hpp"
  18. #include "GLWin32Viewer.hpp"
  19. #include <Vcl.Imaging.jpeg.hpp>
  20. #include <Vcl.ExtCtrls.hpp>
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer *GLSceneViewer1;
  26. TPanel *Panel1;
  27. TLabel *Label1;
  28. TLabel *Label2;
  29. TComboBox *CBMaterial;
  30. TButton *BUPack;
  31. TCheckBox *CBShowGrid;
  32. TCheckBox *CBSortByMaterials;
  33. TGLScene *GLScene;
  34. TGLLightSource *GLLightSource;
  35. TGLDummyCube *DCTarget;
  36. TGLCamera *GLCamera;
  37. TGLTilePlane *GLTilePlane;
  38. TGLDirectOpenGL *GLDirectOpenGL;
  39. TGLXYZGrid *GLXYZGrid;
  40. TGLDummyCube *DCSelection;
  41. TGLLines *GLLines1;
  42. TGLMaterialLibrary *GLMaterialLibrary;
  43. TTimer *Timer1;
  44. TGLCadencer *GLCadencer1;
  45. void __fastcall FormCreate(TObject *Sender);
  46. private: // User declarations
  47. int mx, my;
  48. int tileX, tileY;
  49. TVector* mip;
  50. TVector* translateOffset;
  51. bool translating;
  52. public: // User declarations
  53. __fastcall TForm1(TComponent* Owner);
  54. };
  55. //---------------------------------------------------------------------------
  56. extern PACKAGE TForm1 *Form1;
  57. //---------------------------------------------------------------------------
  58. #endif