Unit1.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 <Vcl.Imaging.jpeg.hpp>
  11. #include "GLBaseClasses.hpp"
  12. #include "GLCadencer.hpp"
  13. #include "GLCoordinates.hpp"
  14. #include "GLCrossPlatform.hpp"
  15. #include "GLCustomShader.hpp"
  16. #include "GLGeomObjects.hpp"
  17. #include "GLGraph.hpp"
  18. #include "GLMaterial.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLSimpleNavigation.hpp"
  22. #include "GLSLShader.hpp"
  23. #include "GLVectorFileObjects.hpp"
  24. #include "GLWin32Viewer.hpp"
  25. #include "GLUtils.hpp"
  26. //---------------------------------------------------------------------------
  27. class TForm1 : public TForm
  28. {
  29. __published: // IDE-managed Components
  30. TGLSceneViewer *Viewer;
  31. TPanel *Panel1;
  32. TCheckBox *LightMovingCheckBox;
  33. TCheckBox *ShadeEnabledCheckBox;
  34. TCheckBox *PitchRollTurnCheckBox;
  35. TGLScene *Scene;
  36. TGLDummyCube *GUICube;
  37. TGLArrowLine *GLArrowLine1;
  38. TGLXYZGrid *GLXYZGrid1;
  39. TGLDummyCube *LightCube;
  40. TGLLightSource *Light;
  41. TGLSphere *GLSphere1;
  42. TGLDummyCube *WorldCube;
  43. TGLActor *Fighter;
  44. TGLActor *Teapot;
  45. TGLActor *Sphere_big;
  46. TGLActor *Sphere_little;
  47. TGLCamera *Camera;
  48. TGLCadencer *Cadencer;
  49. TGLMaterialLibrary *MaterialLibrary;
  50. TGLSLShader *GLSLShader;
  51. TGLSimpleNavigation *GLSimpleNavigation1;
  52. void __fastcall FormCreate(TObject *Sender);
  53. void __fastcall ShadeEnabledCheckBoxClick(TObject *Sender);
  54. void __fastcall GLSLShaderApply(TGLCustomGLSLShader *Shader);
  55. void __fastcall GLSLShaderInitialize(TGLCustomGLSLShader *Shader);
  56. void __fastcall GLSLShaderUnApply(TGLCustomGLSLShader *Shader, bool &ThereAreMorePasses);
  57. void __fastcall CadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  58. void __fastcall LightCubeProgress(TObject *Sender, const double deltaTime, const double newTime);
  59. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  60. private: // User declarations
  61. public: // User declarations
  62. __fastcall TForm1(TComponent* Owner);
  63. };
  64. //---------------------------------------------------------------------------
  65. extern PACKAGE TForm1 *Form1;
  66. //---------------------------------------------------------------------------
  67. #endif