Unit1.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.Classes.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include "GLS.BaseClasses.hpp"
  13. #include "GLS.Cadencer.hpp"
  14. #include "GLS.Coordinates.hpp"
  15. #include "GLS.Material.hpp"
  16. #include "GLS.Objects.hpp"
  17. #include "GLS.Scene.hpp"
  18. #include "GLS.ShadowVolume.hpp"
  19. #include "GLS.SpaceText.hpp"
  20. #include "GLS.SceneViewer.hpp"
  21. #include <Vcl.ExtCtrls.hpp>
  22. //---------------------------------------------------------------------------
  23. class TForm1 : public TForm
  24. {
  25. __published: // IDE-managed Components
  26. TGLSceneViewer *GLSceneViewer1;
  27. TGLScene *GLScene1;
  28. TGLShadowVolume *GLS.ShadowVolume;
  29. TGLPlane *Plane1;
  30. TGLCube *Cube1;
  31. TGLCube *Cube2;
  32. TGLCube *Cube3;
  33. TGLSphere *Ball;
  34. TGLCube *Pad;
  35. TGLDummyCube *DummyCube1;
  36. TGLCamera *GLCamera1;
  37. TGLLightSource *GLLightSource1;
  38. TGLSpaceText *SpaceText1;
  39. TGLMaterialLibrary *GLMaterialLibrary1;
  40. TTimer *Timer1;
  41. TGLCadencer *GLCadencer1;
  42. void __fastcall FormCreate(TObject *Sender);
  43. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  44. int Y);
  45. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  46. void __fastcall Timer1Timer(TObject *Sender);
  47. private: // User declarations
  48. TAffineVector ballVector;
  49. int score;
  50. bool gameOver;
  51. void __fastcall ResetGame();
  52. public: // User declarations
  53. __fastcall TForm1(TComponent* Owner);
  54. };
  55. //---------------------------------------------------------------------------
  56. extern PACKAGE TForm1 *Form1;
  57. //---------------------------------------------------------------------------
  58. #endif