12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <System.Classes.hpp>
- #include <Vcl.Controls.hpp>
- #include <Vcl.StdCtrls.hpp>
- #include <Vcl.Forms.hpp>
- #include <Vcl.ExtCtrls.hpp>
- #include "GLS.BaseClasses.hpp"
- #include "GLS.Cadencer.hpp"
- #include "GLS.Coordinates.hpp"
- #include "GLS.GeomObjects.hpp"
- #include "GLS.HUDObjects.hpp"
- #include "GLS.Objects.hpp"
- #include "GLS.Scene.hpp"
- #include "GLS.SceneViewer.hpp"
- #include "GLS.Keyboard.hpp"
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TGLSceneViewer *GLSceneViewer;
- TPanel *Panel1;
- TGLScene *GLScene1;
- TGLLightSource *Light;
- TGLCube *Cube;
- TGLTorus *Torus;
- TGLDummyCube *DummyCube;
- TGLDodecahedron *Dodecahedron;
- TGLHUDSprite *HUD;
- TGLCamera *Camera;
- TGLCadencer *GLCadencer1;
- TTimer *Timer1;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall GLSceneViewerPostRender(TObject *Sender);
- void __fastcall FormResize(TObject *Sender);
- void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
- void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
- void __fastcall GLSceneViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
- int X, int Y);
- void __fastcall GLSceneViewerMouseMove(TObject *Sender, TShiftState Shift, int X,
- int Y);
- void __fastcall Timer1Timer(TObject *Sender);
- private: // User declarations
- int Frames;
- int mx, my;
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif
|