Unit1.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 <Vcl.ExtCtrls.hpp>
  10. #include "GLS.BaseClasses.hpp"
  11. #include "GLS.Cadencer.hpp"
  12. #include "GLS.Coordinates.hpp"
  13. #include "GLS.GeomObjects.hpp"
  14. #include "GLS.HUDObjects.hpp"
  15. #include "GLS.Objects.hpp"
  16. #include "GLS.Scene.hpp"
  17. #include "GLS.SceneViewer.hpp"
  18. #include "GLS.Keyboard.hpp"
  19. //---------------------------------------------------------------------------
  20. class TForm1 : public TForm
  21. {
  22. __published: // IDE-managed Components
  23. TGLSceneViewer *GLSceneViewer;
  24. TPanel *Panel1;
  25. TGLScene *GLScene1;
  26. TGLLightSource *Light;
  27. TGLCube *Cube;
  28. TGLTorus *Torus;
  29. TGLDummyCube *DummyCube;
  30. TGLDodecahedron *Dodecahedron;
  31. TGLHUDSprite *HUD;
  32. TGLCamera *Camera;
  33. TGLCadencer *GLCadencer1;
  34. TTimer *Timer1;
  35. void __fastcall FormCreate(TObject *Sender);
  36. void __fastcall GLSceneViewerPostRender(TObject *Sender);
  37. void __fastcall FormResize(TObject *Sender);
  38. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  39. void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  40. void __fastcall GLSceneViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  41. int X, int Y);
  42. void __fastcall GLSceneViewerMouseMove(TObject *Sender, TShiftState Shift, int X,
  43. int Y);
  44. void __fastcall Timer1Timer(TObject *Sender);
  45. private: // User declarations
  46. int Frames;
  47. int mx, my;
  48. public: // User declarations
  49. __fastcall TForm1(TComponent* Owner);
  50. };
  51. //---------------------------------------------------------------------------
  52. extern PACKAGE TForm1 *Form1;
  53. //---------------------------------------------------------------------------
  54. #endif