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 "GLBaseClasses.hpp"
  13. #include "GLCadencer.hpp"
  14. #include "GLCoordinates.hpp"
  15. #include "GLCrossPlatform.hpp"
  16. #include "GLMaterial.hpp"
  17. #include "GLObjects.hpp"
  18. #include "GLScene.hpp"
  19. #include "GLShadowVolume.hpp"
  20. #include "GLSpaceText.hpp"
  21. #include "GLWin32Viewer.hpp"
  22. #include <Vcl.ExtCtrls.hpp>
  23. //---------------------------------------------------------------------------
  24. class TForm1 : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLSceneViewer *GLSceneViewer1;
  28. TGLScene *GLScene1;
  29. TGLShadowVolume *GLShadowVolume;
  30. TGLPlane *Plane1;
  31. TGLCube *Cube1;
  32. TGLCube *Cube2;
  33. TGLCube *Cube3;
  34. TGLSphere *Ball;
  35. TGLCube *Pad;
  36. TGLDummyCube *DummyCube1;
  37. TGLCamera *GLCamera1;
  38. TGLLightSource *GLLightSource1;
  39. TGLSpaceText *SpaceText1;
  40. TGLMaterialLibrary *GLMaterialLibrary1;
  41. TTimer *Timer1;
  42. TGLCadencer *GLCadencer1;
  43. void __fastcall FormCreate(TObject *Sender);
  44. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  45. int Y);
  46. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  47. void __fastcall Timer1Timer(TObject *Sender);
  48. private: // User declarations
  49. TAffineVector ballVector;
  50. int score;
  51. bool gameOver;
  52. void __fastcall ResetGame();
  53. public: // User declarations
  54. __fastcall TForm1(TComponent* Owner);
  55. };
  56. //---------------------------------------------------------------------------
  57. extern PACKAGE TForm1 *Form1;
  58. //---------------------------------------------------------------------------
  59. #endif