Unit1.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include "GLS.SceneViewer.hpp"
  11. #include "GLS.Scene.hpp"
  12. #include "GLS.Cadencer.hpp"
  13. #include "GLS.Mirror.hpp"
  14. #include "GLS.Objects.hpp"
  15. #include "GLS.GeomObjects.hpp"
  16. #include "GLS.Extrusion.hpp"
  17. #include "GLS.MultiPolygon.hpp"
  18. #include "GLS.BaseClasses.hpp"
  19. #include "GLS.Coordinates.hpp"
  20. //---------------------------------------------------------------------------
  21. class TForm1:public TForm
  22. {
  23. __published: // IDE-managed Components
  24. TPanel * Panel1;
  25. TGLSceneViewer *GLSceneViewer1;
  26. TGLScene *GLScene1;
  27. TCheckBox *CBOpaque;
  28. TCheckBox *CBStencil;
  29. TCheckBox *CBClearZ;
  30. TCheckBox *CBPlaneClip;
  31. TGLCadencer *GLCadencer1;
  32. TTimer *Timer1;
  33. TGLCamera *GLCamera1;
  34. TGLLightSource *GLLightSource1;
  35. TGLMirror *GLMirror1;
  36. TGLDummyCube *ReflectingObjects;
  37. TGLDummyCube *NonReflectingObjects;
  38. TGLCylinder *GLCylinder1;
  39. TGLCylinder *Cylinder2;
  40. TGLTorus *Torus1;
  41. TGLExtrusionSolid *Cadre;
  42. TGLSphere *GLSphere1;
  43. TGLCylinder *GLCylinder2;
  44. TGLTeapot *GLTeapot1;
  45. TLabel *LabelFPS;
  46. void __fastcall CBOpaqueClick(TObject * Sender);
  47. void __fastcall CBStencilClick(TObject * Sender);
  48. void __fastcall CBClearZClick(TObject * Sender);
  49. void __fastcall CBPlaneClipClick(TObject * Sender);
  50. void __fastcall Timer1Timer(TObject * Sender);
  51. void __fastcall GLCadencer1Progress(TObject * Sender, const double deltaTime,
  52. const double newTime);
  53. void __fastcall FormResize(TObject * Sender);
  54. void __fastcall GLSceneViewer1MouseDown(TObject * Sender, TMouseButton Button,
  55. TShiftState Shift, int X, int Y);
  56. void __fastcall GLSceneViewer1MouseMove(TObject * Sender, TShiftState Shift,
  57. int X, int Y);
  58. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  59. TPoint &MousePos, bool &Handled);
  60. private: // User declarations
  61. public: // User declarations
  62. __fastcall TForm1(TComponent * Owner);
  63. };
  64. //---------------------------------------------------------------------------
  65. extern PACKAGE TForm1 *Form1;
  66. //---------------------------------------------------------------------------
  67. #endif