12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #include <tchar.h>
- //---------------------------------------------------------------------------
- #include <System.Classes.hpp>
- #include <Vcl.Controls.hpp>
- #include <Vcl.StdCtrls.hpp>
- #include <Vcl.Forms.hpp>
- #include "GLS.BaseClasses.hpp"
- #include "GLS.Cadencer.hpp"
- #include "GLS.Coordinates.hpp"
- #include "GLS.Material.hpp"
- #include "GLS.Objects.hpp"
- #include "GLS.Scene.hpp"
- #include "GLS.ShadowVolume.hpp"
- #include "GLS.SpaceText.hpp"
- #include "GLS.SceneViewer.hpp"
- #include <Vcl.ExtCtrls.hpp>
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TGLSceneViewer *GLSceneViewer1;
- TGLScene *GLScene1;
- TGLShadowVolume *GLS.ShadowVolume;
- TGLPlane *Plane1;
- TGLCube *Cube1;
- TGLCube *Cube2;
- TGLCube *Cube3;
- TGLSphere *Ball;
- TGLCube *Pad;
- TGLDummyCube *DummyCube1;
- TGLCamera *GLCamera1;
- TGLLightSource *GLLightSource1;
- TGLSpaceText *SpaceText1;
- TGLMaterialLibrary *GLMaterialLibrary1;
- TTimer *Timer1;
- TGLCadencer *GLCadencer1;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
- int Y);
- void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
- void __fastcall Timer1Timer(TObject *Sender);
- private: // User declarations
- TAffineVector ballVector;
- int score;
- bool gameOver;
- void __fastcall ResetGame();
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif
|