2
0

fTilesC.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 *LightSource;
  34. TGLDummyCube *dcTarget;
  35. TGLCamera *Camera;
  36. TGLTilePlane *TilePlane;
  37. TGLDirectOpenGL *DirectOpenGL;
  38. TGLXYZGrid *XYZGrid;
  39. TGLDummyCube *dcSelection;
  40. TGLLines *Lines;
  41. TGLMaterialLibrary *GLMaterialLibrary;
  42. TTimer *Timer1;
  43. TGLCadencer *GLCadencer1;
  44. void __fastcall FormCreate(TObject *Sender);
  45. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  46. TPoint &MousePos, bool &Handled);
  47. void __fastcall DirectOpenGLRender(TObject *Sender, TGLRenderContextInfo &rci);
  48. private: // User declarations
  49. int mx, my;
  50. int tileX, tileY;
  51. TGLVector* mip;
  52. TGLVector* translateOffset;
  53. bool translating;
  54. public: // User declarations
  55. __fastcall TForm1(TComponent* Owner);
  56. };
  57. //---------------------------------------------------------------------------
  58. extern PACKAGE TForm1 *Form1;
  59. //---------------------------------------------------------------------------
  60. #endif