Unit1.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 "GLWin32Viewer.hpp"
  11. #include "GLScene.hpp"
  12. #include "GLCadencer.hpp"
  13. #include "GLMirror.hpp"
  14. #include "GLObjects.hpp"
  15. #include "GLGeomObjects.hpp"
  16. #include "GLExtrusion.hpp"
  17. #include "GLMultiPolygon.hpp"
  18. #include "GLTeapot.hpp"
  19. #include "GLBaseClasses.hpp"
  20. #include "GLCoordinates.hpp"
  21. #include "GLCrossPlatform.hpp"
  22. //---------------------------------------------------------------------------
  23. class TForm1:public TForm
  24. {
  25. __published: // IDE-managed Components
  26. TPanel * Panel1;
  27. TGLSceneViewer *GLSceneViewer1;
  28. TGLScene *GLScene1;
  29. TCheckBox *CBOpaque;
  30. TCheckBox *CBStencil;
  31. TCheckBox *CBClearZ;
  32. TCheckBox *CBPlaneClip;
  33. TGLCadencer *GLCadencer1;
  34. TTimer *Timer1;
  35. TGLCamera *GLCamera1;
  36. TGLLightSource *GLLightSource1;
  37. TGLMirror *GLMirror1;
  38. TGLDummyCube *ReflectingObjects;
  39. TGLDummyCube *NonReflectingObjects;
  40. TGLCylinder *GLCylinder1;
  41. TGLCylinder *Cylinder2;
  42. TGLTorus *Torus1;
  43. TGLExtrusionSolid *Cadre;
  44. TGLSphere *GLSphere1;
  45. TGLCylinder *GLCylinder2;
  46. TGLTeapot *GLTeapot1;
  47. TLabel *LabelFPS;
  48. void __fastcall CBOpaqueClick(TObject * Sender);
  49. void __fastcall CBStencilClick(TObject * Sender);
  50. void __fastcall CBClearZClick(TObject * Sender);
  51. void __fastcall CBPlaneClipClick(TObject * Sender);
  52. void __fastcall Timer1Timer(TObject * Sender);
  53. void __fastcall GLCadencer1Progress(TObject * Sender, const double deltaTime,
  54. const double newTime);
  55. void __fastcall FormResize(TObject * Sender);
  56. void __fastcall GLSceneViewer1MouseDown(TObject * Sender, TMouseButton Button,
  57. TShiftState Shift, int X, int Y);
  58. void __fastcall GLSceneViewer1MouseMove(TObject * Sender, TShiftState Shift,
  59. int X, int Y);
  60. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  61. TPoint &MousePos, bool &Handled);
  62. private: // User declarations
  63. public: // User declarations
  64. __fastcall TForm1(TComponent * Owner);
  65. };
  66. //---------------------------------------------------------------------------
  67. extern PACKAGE TForm1 *Form1;
  68. //---------------------------------------------------------------------------
  69. #endif