fShaderComponentC.h 2.4 KB

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