Unit1.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <tchar.h>
  6. #include <System.Classes.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.ComCtrls.hpp>
  11. #include <Vcl.ExtCtrls.hpp>
  12. #include "GLAsyncTimer.hpp"
  13. #include "GLBaseClasses.hpp"
  14. #include "GLBehaviours.hpp"
  15. #include "GLCadencer.hpp"
  16. #include "GLCoordinates.hpp"
  17. #include "GLCrossPlatform.hpp"
  18. #include "GLGeomObjects.hpp"
  19. #include "GLGraph.hpp"
  20. #include "GLMaterial.hpp"
  21. #include "GLObjects.hpp"
  22. #include "GLScene.hpp"
  23. #include "GLTeapot.hpp"
  24. #include "GLWin32Viewer.hpp"
  25. #include "GLzBuffer.hpp"
  26. #include "JPeg.hpp"
  27. //---------------------------------------------------------------------------
  28. class TForm1 : public TForm
  29. {
  30. __published: // IDE-managed Components
  31. TLabel *Label1;
  32. TLabel *Label2;
  33. TPanel *Panel2;
  34. TGLSceneViewer *Caster;
  35. TPanel *Panel1;
  36. TGLSceneViewer *Viewer;
  37. TPanel *Panel3;
  38. TLabel *Label4;
  39. TLabel *TimeLbl;
  40. TTrackBar *DistanceBar;
  41. TButton *CastBtn;
  42. TPanel *Panel4;
  43. TLabel *Label3;
  44. TLabel *Label5;
  45. TTrackBar *DistanceBar2;
  46. TTrackBar *Focal;
  47. TPanel *Panel5;
  48. TCheckBox *FrustBox;
  49. TCheckBox *RotateBox;
  50. TCheckBox *ShadowOnBox;
  51. TCheckBox *SoftBox;
  52. TCheckBox *SkyShadBox;
  53. TPanel *Panel6;
  54. TLabel *Label9;
  55. TCheckBox *FadeBox;
  56. TTrackBar *dovBar;
  57. TTrackBar *AlphaBar;
  58. TMemo *Memo1;
  59. TGLScene *GLScene1;
  60. TGLDummyCube *Objects;
  61. TGLHeightField *HeightField1;
  62. TGLCube *Cube1;
  63. TGLTorus *Torus1;
  64. TGLTeapot *Teapot1;
  65. TGLZShadows *Shadows1;
  66. TGLCamera *GLCamera1;
  67. TGLCamera *GLCamera2;
  68. TGLLightSource *GLLightSource1;
  69. TGLMaterialLibrary *GLMaterialLibrary1;
  70. TGLMemoryViewer *MemView;
  71. TGLAsyncTimer *AsyncTimer1;
  72. TGLCadencer *GLCadencer1;
  73. void __fastcall FormCreate(TObject *Sender);
  74. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  75. int X, int Y);
  76. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  77. void __fastcall CasterMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  78. int X, int Y);
  79. void __fastcall CasterMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  80. void __fastcall DistanceBarChange(TObject *Sender);
  81. void __fastcall DistanceBar2Change(TObject *Sender);
  82. void __fastcall CastBtnClick(TObject *Sender);
  83. void __fastcall ViewerMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  84. int X, int Y);
  85. void __fastcall CasterMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  86. int X, int Y);
  87. void __fastcall FadeBoxClick(TObject *Sender);
  88. void __fastcall HeightField1GetHeight(const float x, const float y, float &z, TVector4f &Color,
  89. TTexPoint &TexPoint);
  90. void __fastcall FrustBoxClick(TObject *Sender);
  91. void __fastcall AsyncTimer1Timer(TObject *Sender);
  92. void __fastcall RotateBoxClick(TObject *Sender);
  93. void __fastcall ShadowOnBoxClick(TObject *Sender);
  94. void __fastcall SoftBoxClick(TObject *Sender);
  95. void __fastcall SkyShadBoxClick(TObject *Sender);
  96. void __fastcall FocalChange(TObject *Sender);
  97. void __fastcall dovBarChange(TObject *Sender);
  98. void __fastcall AlphaBarChange(TObject *Sender);
  99. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  100. private: // User declarations
  101. int mx,my;
  102. int mx2,my2;
  103. TGLzBuffer *zViewer;
  104. TGLzBuffer *zCaster;
  105. public: // User declarations
  106. __fastcall TForm1(TComponent* Owner);
  107. };
  108. //---------------------------------------------------------------------------
  109. extern PACKAGE TForm1 *Form1;
  110. //---------------------------------------------------------------------------
  111. #endif