Unit1.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.Dialogs.hpp>
  11. #include <Vcl.ExtCtrls.hpp>
  12. #include "GLAsyncTimer.hpp"
  13. #include "GLBaseClasses.hpp"
  14. #include "GLBumpShader.hpp"
  15. #include "GLCadencer.hpp"
  16. #include "GLCoordinates.hpp"
  17. #include "GLCrossPlatform.hpp"
  18. #include "GLMaterial.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLVectorFileObjects.hpp"
  22. #include "GLWin32Viewer.hpp"
  23. #include "OpenGLAdapter.hpp"
  24. #include "OpenGL1x.hpp"
  25. #include "JPeg.hpp"
  26. #include "GLAsyncTimer.hpp"
  27. //---------------------------------------------------------------------------
  28. class TForm1 : public TForm
  29. {
  30. __published: // IDE-managed Components
  31. TGLSceneViewer *GLSceneViewer1;
  32. TPanel *Panel1;
  33. TLabel *Label1;
  34. TLabel *Label2;
  35. TLabel *LabelFPS;
  36. TComboBox *ComboBox1;
  37. TGroupBox *GroupBox1;
  38. TShape *Shape1;
  39. TShape *Shape2;
  40. TShape *Shape3;
  41. TCheckBox *CheckBox1;
  42. TCheckBox *CheckBox2;
  43. TCheckBox *CheckBox3;
  44. TCheckBox *CheckBox4;
  45. TComboBox *ComboBox2;
  46. TGLScene *GLScene1;
  47. TGLDummyCube *DCLights;
  48. TGLLightSource *WhiteLight;
  49. TGLLightSource *RedLight;
  50. TGLLightSource *BlueLight;
  51. TGLFreeForm *Bunny;
  52. TGLCamera *Camera;
  53. TGLCadencer *GLCadencer1;
  54. TGLMaterialLibrary *GLMaterialLibrary1;
  55. TGLBumpShader *GLBumpShader1;
  56. TColorDialog *ColorDialog1;
  57. TGLAsyncTimer *AsyncTimer1;
  58. void __fastcall FormCreate(TObject *Sender);
  59. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  60. void __fastcall CheckBox1Click(TObject *Sender);
  61. void __fastcall Shape1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  62. int X, int Y);
  63. void __fastcall ComboBox1Change(TObject *Sender);
  64. void __fastcall CheckBox2Click(TObject *Sender);
  65. void __fastcall CheckBox3Click(TObject *Sender);
  66. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  67. int X, int Y);
  68. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  69. int Y);
  70. void __fastcall AsyncTimer1Timer(TObject *Sender);
  71. void __fastcall FormResize(TObject *Sender);
  72. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  73. void __fastcall ComboBox2Change(TObject *Sender);
  74. void __fastcall Shape2MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  75. int X, int Y);
  76. void __fastcall Shape3MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  77. int X, int Y);
  78. private: // User declarations
  79. int mx, my, dx, dy;
  80. bool IsInitialized;
  81. int StartHeight;
  82. public: // User declarations
  83. __fastcall TForm1(TComponent* Owner);
  84. };
  85. //---------------------------------------------------------------------------
  86. extern PACKAGE TForm1 *Form1;
  87. //---------------------------------------------------------------------------
  88. #endif