Unit1.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 "GLBaseClasses.hpp"
  11. #include "GLCadencer.hpp"
  12. #include "GLCoordinates.hpp"
  13. #include "GLCrossPlatform.hpp"
  14. #include "GLGeomObjects.hpp"
  15. #include "GLHUDObjects.hpp"
  16. #include "GLObjects.hpp"
  17. #include "GLPolyhedron.hpp"
  18. #include "GLScene.hpp"
  19. #include "GLWin32Viewer.hpp"
  20. #include "GLKeyboard.hpp"
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer *GLSceneViewer;
  26. TPanel *Panel1;
  27. TGLScene *GLScene1;
  28. TGLLightSource *Light;
  29. TGLCube *Cube;
  30. TGLTorus *Torus;
  31. TGLDummyCube *DummyCube;
  32. TGLDodecahedron *Dodecahedron;
  33. TGLHUDSprite *HUD;
  34. TGLCamera *Camera;
  35. TGLCadencer *GLCadencer1;
  36. TTimer *Timer1;
  37. void __fastcall FormCreate(TObject *Sender);
  38. void __fastcall GLSceneViewerPostRender(TObject *Sender);
  39. void __fastcall FormResize(TObject *Sender);
  40. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  41. void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  42. void __fastcall GLSceneViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  43. int X, int Y);
  44. void __fastcall GLSceneViewerMouseMove(TObject *Sender, TShiftState Shift, int X,
  45. int Y);
  46. void __fastcall Timer1Timer(TObject *Sender);
  47. private: // User declarations
  48. int Frames;
  49. int mx, my;
  50. public: // User declarations
  51. __fastcall TForm1(TComponent* Owner);
  52. };
  53. //---------------------------------------------------------------------------
  54. extern PACKAGE TForm1 *Form1;
  55. //---------------------------------------------------------------------------
  56. #endif