Unit1.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. #include <gl.h>
  8. #include <glext.h>
  9. #include <System.Classes.hpp>
  10. #include <Vcl.Controls.hpp>
  11. #include <Vcl.StdCtrls.hpp>
  12. #include <Vcl.Forms.hpp>
  13. #include <Vcl.ExtCtrls.hpp>
  14. #include "GLBaseClasses.hpp"
  15. #include "GLCadencer.hpp"
  16. #include "GLCoordinates.hpp"
  17. #include "GLCrossPlatform.hpp"
  18. #include "GLGeomObjects.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLSkydome.hpp"
  22. #include "GLTeapot.hpp"
  23. #include "GLWin32Viewer.hpp"
  24. #include "GLTexture.hpp"
  25. //---------------------------------------------------------------------------
  26. class TForm1 : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TGLSceneViewer *GLSceneViewer1;
  30. TPanel *Panel1;
  31. TLabel *LabelFPS;
  32. TCheckBox *CBDynamic;
  33. TGLScene *GLScene1;
  34. TGLSkyDome *SkyDome1;
  35. TGLLightSource *GLLightSource1;
  36. TGLTorus *Torus1;
  37. TGLCylinder *Cylinder1;
  38. TGLSphere *Sphere1;
  39. TGLCube *Cube1;
  40. TGLTeapot *Teapot1;
  41. TGLCamera *CubeMapCamera;
  42. TGLCamera *GLCamera1;
  43. TGLMemoryViewer *GLMemoryViewer1;
  44. TGLCadencer *GLCadencer1;
  45. TTimer *Timer1;
  46. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  47. void __fastcall Timer1Timer(TObject *Sender);
  48. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  49. int X, int Y);
  50. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  51. int Y);
  52. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  53. TPoint &MousePos, bool &Handled);
  54. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  55. public: // Public declarations
  56. __fastcall TForm1(TComponent* Owner);
  57. private: // User declarations
  58. int mx, my;
  59. bool CubmapSupported;
  60. bool CubeMapWarnDone;
  61. void __fastcall GenerateCubeMap();
  62. };
  63. //---------------------------------------------------------------------------
  64. extern PACKAGE TForm1 *Form1;
  65. //---------------------------------------------------------------------------
  66. #endif