fTilesC.h 1.7 KB

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