Unit1.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 <Vcl.ExtCtrls.hpp>
  10. #include <signal.h>
  11. #include "GLBaseClasses.hpp"
  12. #include "GLCadencer.hpp"
  13. #include "GLCoordinates.hpp"
  14. #include "GLCrossPlatform.hpp"
  15. #include "GLObjects.hpp"
  16. #include "GLScene.hpp"
  17. #include "GLWin32Viewer.hpp"
  18. #include "GLContext.hpp"
  19. #include "OpenGLAdapter.hpp"
  20. //---------------------------------------------------------------------------
  21. class TForm1 : public TForm
  22. {
  23. __published: // IDE-managed Components
  24. TGLSceneViewer *GLSceneViewer1;
  25. TPanel *Panel1;
  26. TLabel *Label1;
  27. TLabel *Label2;
  28. TRadioButton *RB1to1;
  29. TRadioButton *RB1to2;
  30. TRadioButton *RB1to10;
  31. TCheckBox *CheckBox1;
  32. TTimer *Timer1;
  33. TGLScene *GLScene1;
  34. TGLDummyCube *DummyCube1;
  35. TGLCube *Cube1;
  36. TGLLightSource *GLLightSource1;
  37. TGLCamera *GLCamera1;
  38. TGLMemoryViewer *GLMemoryViewer1;
  39. TGLCadencer *GLCadencer1;
  40. TLabel *LabelFPS;
  41. void __fastcall FormCreate(TObject *Sender);
  42. void __fastcall RB1to1Click(TObject *Sender);
  43. void __fastcall CheckBox1Click(TObject *Sender);
  44. void __fastcall GLSceneViewer1AfterRender(TObject *Sender);
  45. void __fastcall Timer1Timer(TObject *Sender);
  46. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  47. private: // User declarations
  48. int textureFramerateRatio, n;
  49. public: // User declarations
  50. __fastcall TForm1(TComponent* Owner);
  51. };
  52. //---------------------------------------------------------------------------
  53. extern PACKAGE TForm1 *Form1;
  54. //---------------------------------------------------------------------------
  55. #endif