fPostShaderC.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //---------------------------------------------------------------------------
  2. #ifndef fPostShaderCH
  3. #define fPostShaderCH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include <Vcl.CheckLst.hpp>
  10. #include <Vcl.ExtCtrls.hpp>
  11. #include <Vcl.Imaging.jpeg.hpp>
  12. #include <Vcl.ComCtrls.hpp>
  13. #include "GLS.BaseClasses.hpp"
  14. #include "GLS.Cadencer.hpp"
  15. #include "GLS.Coordinates.hpp"
  16. #include "GLS.GeomObjects.hpp"
  17. #include "GLS.Graph.hpp"
  18. #include "GLS.Material.hpp"
  19. #include "GLS.Objects.hpp"
  20. #include "GLS.Scene.hpp"
  21. #include "GLS.SimpleNavigation.hpp"
  22. #include "GLS.VectorFileObjects.hpp"
  23. #include "GLS.SceneViewer.hpp"
  24. #include "GLS.Utils.hpp"
  25. // FileFormats
  26. #include "GLS.FileTGA.hpp"
  27. #include "GLS.FileMD2.hpp"
  28. #include "GLS.FileMS3D.hpp"
  29. #include "GLS.File3DS.hpp"
  30. // Shader headers
  31. #include "GLSL.PostShaders.hpp"
  32. #include "GLSL.PostEffects.hpp"
  33. #include "Cg.PostTransformationShader.hpp"
  34. //---------------------------------------------------------------------------
  35. class TForm1 : public TForm
  36. {
  37. __published: // IDE-managed Components
  38. TGLSceneViewer *Viewer;
  39. TPanel *Panel1;
  40. TCheckBox *LightMovingCheckBox;
  41. TCheckBox *TurnPitchrollCheckBox;
  42. TPanel *Panel2;
  43. TLabel *Label1;
  44. TCheckListBox *ShaderCheckListBox;
  45. TGLScene *Scene;
  46. TGLDummyCube *GUICube;
  47. TGLArrowLine *GLArrowLine1;
  48. TGLXYZGrid *GLXYZGrid1;
  49. TGLDummyCube *LightCube;
  50. TGLLightSource *Light;
  51. TGLSphere *GLSphere1;
  52. TGLDummyCube *WorldCube;
  53. TGLActor *Fighter;
  54. TGLActor *Teapot;
  55. TGLActor *Sphere_big;
  56. TGLActor *Sphere_little;
  57. TGLPostShaderHolder *PostShaderHolder;
  58. TGLCamera *Camera;
  59. TGLCadencer *Cadencer;
  60. TGLMaterialLibrary *MaterialLibrary;
  61. TGLSimpleNavigation *GLSimpleNavigation1;
  62. void __fastcall FormCreate(TObject *Sender);
  63. void __fastcall CadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  64. void __fastcall LightCubeProgress(TObject *Sender, const double deltaTime, const double newTime);
  65. void __fastcall ShaderCheckListBoxClick(TObject *Sender);
  66. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  67. void __fastcall tbThermalThresholdChange(TObject *Sender);
  68. void __fastcall tbBlurValueChange(TObject *Sender);
  69. void __fastcall tbDreamThresholdChange(TObject *Sender);
  70. void __fastcall tbThermalIntensityChange(TObject *Sender);
  71. private: // User declarations
  72. int mx, my;
  73. TGLSLPostBlurShader *BlurShader;
  74. TGLCGPostTransformationShader *TransformationShader;
  75. public: // User declarations
  76. __fastcall TForm1(TComponent* Owner);
  77. };
  78. //---------------------------------------------------------------------------
  79. extern PACKAGE TForm1 *Form1;
  80. //---------------------------------------------------------------------------
  81. #endif