Unit1.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include <Vcl.ExtCtrls.hpp>
  10. #include "Jpeg.hpp"
  11. #include "GLBaseClasses.hpp"
  12. #include "GLCadencer.hpp"
  13. #include "GLCoordinates.hpp"
  14. #include "GLCrossPlatform.hpp"
  15. #include "GLHUDObjects.hpp"
  16. #include "GLObjects.hpp"
  17. #include "GLScene.hpp"
  18. #include "GLSpaceText.hpp"
  19. #include "GLWin32Viewer.hpp"
  20. #include "Unit2.h"
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer *GLSceneViewer1;
  26. TPanel *Panel1;
  27. TButton *BUSnapShot;
  28. TButton *BURenderToBitmap;
  29. TButton *BUBitmapx2;
  30. TButton *BUBitmap600;
  31. TButton *BUBitmap300;
  32. TButton *BUViewerSnapShot;
  33. TGLScene *GLScene1;
  34. TGLLightSource *GLLightSource1;
  35. TGLHUDSprite *HUDSprite1;
  36. TGLPlane *Plane1;
  37. TGLSpaceText *SpaceText1;
  38. TGLSphere *Sphere1;
  39. TGLDummyCube *DummyCube1;
  40. TGLCamera *GLCamera1;
  41. TGLCadencer *GLCadencer1;
  42. void __fastcall FormCreate(TObject *Sender);
  43. void __fastcall BUViewerSnapShotClick(TObject *Sender);
  44. void __fastcall BUSnapShotClick(TObject *Sender);
  45. void __fastcall BURenderToBitmapClick(TObject *Sender);
  46. void __fastcall BUBitmapx2Click(TObject *Sender);
  47. void __fastcall BUBitmap300Click(TObject *Sender);
  48. void __fastcall BUBitmap600Click(TObject *Sender);
  49. void __fastcall Sphere1Progress(TObject *Sender, const double deltaTime, const double newTime);
  50. void __fastcall FormResize(TObject *Sender);
  51. private: // User declarations
  52. void ViewBitmap(TBitmap *aBitmap, String caption);
  53. void RenderToBitmap(Single scale);
  54. public: // User declarations
  55. __fastcall TForm1(TComponent* Owner);
  56. };
  57. //---------------------------------------------------------------------------
  58. extern PACKAGE TForm1 *Form1;
  59. //---------------------------------------------------------------------------
  60. #endif