Unit1.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 "GLMaterial.hpp"
  14. #include "GLObjects.hpp"
  15. #include "GLScene.hpp"
  16. #include "GLWin32Viewer.hpp"
  17. #include <Vcl.ExtCtrls.hpp>
  18. //---------------------------------------------------------------------------
  19. class TForm1 : public TForm
  20. {
  21. __published: // IDE-managed Components
  22. TGLSceneViewer *Viewer;
  23. TPanel *Panel1;
  24. TLabel *Label1;
  25. TLabel *LabelFPS;
  26. TButton *Button1;
  27. TCheckBox *CheckBox1;
  28. TCheckBox *CheckBox2;
  29. TGLScene *GLScene;
  30. TGLCamera *GLCamera1;
  31. TGLLightSource *GLLightSource1;
  32. TGLLightSource *GLLightSource2;
  33. TGLDummyCube *GLDummyCube1;
  34. TGLDummyCube *DCCamTarg;
  35. TGLDummyCube *DCCube1;
  36. TGLCube *GLCube1;
  37. TGLLines *GLLines1;
  38. TGLPoints *GLPoints1;
  39. TGLCadencer *GLCadencer;
  40. TTimer *Timer1;
  41. TGLMaterialLibrary *GLMaterialLibrary;
  42. void __fastcall FormCreate(TObject *Sender);
  43. void __fastcall Button1Click(TObject *Sender);
  44. void __fastcall CheckBox1Click(TObject *Sender);
  45. void __fastcall GLCadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  46. void __fastcall Timer1Timer(TObject *Sender);
  47. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  48. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  49. TPoint &MousePos, bool &Handled);
  50. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  51. int X, int Y);
  52. void __fastcall FormResize(TObject *Sender);
  53. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  54. private: // User declarations
  55. int mdx, mdy;
  56. TAffineVector BoxPos, BoxScale, RayStart, RayDir;
  57. public: // User declarations
  58. __fastcall TForm1(TComponent* Owner);
  59. };
  60. //---------------------------------------------------------------------------
  61. extern PACKAGE TForm1 *Form1;
  62. //---------------------------------------------------------------------------
  63. #endif