Unit1.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <ExtCtrls.hpp>
  9. #include <Forms.hpp>
  10. #include "GLCadencer.hpp"
  11. #include "GLObjects.hpp"
  12. #include "GLProjectedTextures.hpp"
  13. #include "GLScene.hpp"
  14. #include "GLTexture.hpp"
  15. #include "GLWin32Viewer.hpp"
  16. #include "GLBaseClasses.hpp"
  17. #include "GLCoordinates.hpp"
  18. #include "GLCrossPlatform.hpp"
  19. #include "GLMaterial.hpp"
  20. #include "GLFileTGA.hpp"
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer *viewer;
  26. TGLScene *scene;
  27. TGLProjectedTextures *ProjLight;
  28. TGLDummyCube *scenery;
  29. TGLCube *GLCube2;
  30. TGLDummyCube *light2;
  31. TGLSphere *GLSphere3;
  32. TGLTextureEmitter *emitter2;
  33. TGLDummyCube *Light;
  34. TGLLightSource *GLLightSource1;
  35. TGLSphere *GLSphere2;
  36. TGLTextureEmitter *emitter1;
  37. TGLCube *GLCube1;
  38. TGLPlane *GLPlane1;
  39. TGLPlane *GLPlane2;
  40. TGLPlane *GLPlane3;
  41. TGLSphere *GLSphere1;
  42. TGLCamera *GLCamera1;
  43. TGLCadencer *GLCadencer1;
  44. TGLMaterialLibrary *matLib;
  45. TTimer *Timer1;
  46. void __fastcall GLCadencer1Progress(TObject *Sender,
  47. const double deltaTime, const double newTime);
  48. void __fastcall FormCreate(TObject *Sender);
  49. void __fastcall Timer1Timer(TObject *Sender);
  50. void __fastcall viewerMouseDown(TObject *Sender,
  51. TMouseButton Button, TShiftState Shift, int X, int Y);
  52. void __fastcall viewerMouseUp(TObject *Sender, TMouseButton Button,
  53. TShiftState Shift, int X, int Y);
  54. void __fastcall viewerMouseMove(TObject *Sender, TShiftState Shift,
  55. int X, int Y);
  56. void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
  57. TShiftState Shift);
  58. private: // User declarations
  59. public: // User declarations
  60. __fastcall TForm1(TComponent* Owner);
  61. };
  62. //---------------------------------------------------------------------------
  63. extern PACKAGE TForm1 *Form1;
  64. //---------------------------------------------------------------------------
  65. #endif