fCameraC.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //---------------------------------------------------------------------------
  2. #ifndef fCameraCH
  3. #define fCameraCH
  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 <math.hpp>
  11. #include "GLS.BaseClasses.hpp"
  12. #include "GLS.Cadencer.hpp"
  13. #include "GLS.Coordinates.hpp"
  14. #include "GLS.Objects.hpp"
  15. #include "GLS.Scene.hpp"
  16. #include "GLS.GeomObjects.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 *GLSceneViewer1;
  24. TRadioGroup *RadioGroup1;
  25. TRadioGroup *RadioGroup2;
  26. TGLScene *GLScene1;
  27. TGLLightSource *GLLightSource1;
  28. TGLTeapot *Teapot1;
  29. TGLDummyCube *DummyCube1;
  30. TGLCamera *GLCamera1;
  31. TGLCadencer *GLCadencer1;
  32. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  33. void __fastcall RadioGroup1Click(TObject *Sender);
  34. void __fastcall RadioGroup2Click(TObject *Sender);
  35. void __fastcall GLCamera1CustomPerspective(const TRectangle &viewport, int width,
  36. int height, int DPI, float &viewPortRadius);
  37. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  38. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  39. int X, int Y);
  40. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  41. int Y);
  42. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  43. TPoint &MousePos, bool &Handled);
  44. private: // User declarations
  45. int mdx, mdy;
  46. double a;
  47. public: // User declarations
  48. __fastcall TForm1(TComponent* Owner);
  49. };
  50. //---------------------------------------------------------------------------
  51. extern PACKAGE TForm1 *Form1;
  52. //---------------------------------------------------------------------------
  53. #endif