fDiffuseSpecularShaderC.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //---------------------------------------------------------------------------
  2. #ifndef fDiffuseSpecularShaderCH
  3. #define fDiffuseSpecularShaderCH
  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.FileTGA.hpp"
  25. #include "GLS.FileSMD.hpp"
  26. #include "GLS.FileMD2.hpp"
  27. #include "GLS.File3DS.hpp"
  28. #include "Formats.DDSImage.hpp"
  29. #include "GLS.FileMS3D.hpp"
  30. #include "GLS.Utils.hpp"
  31. #include "GLSL.DiffuseSpecularShader.hpp"
  32. //---------------------------------------------------------------------------
  33. class TForm1 : public TForm
  34. {
  35. __published: // IDE-managed Components
  36. TGLSceneViewer *Viewer;
  37. TPanel *Panel1;
  38. TCheckBox *LightMovingCheckBox;
  39. TCheckBox *ShaderEnabledCheckBox;
  40. TCheckBox *PitchRollTurnCheckBox;
  41. TCheckBox *RealisticSpecularCheckBox;
  42. TCheckBox *MultiLightShaderCheckBox;
  43. TCheckBox *EnableFogCheckBox;
  44. TGLScene *Scene;
  45. TGLDummyCube *GUICube;
  46. TGLArrowLine *GLArrowLine1;
  47. TGLXYZGrid *GLXYZGrid1;
  48. TGLDummyCube *LightCube;
  49. TGLLightSource *Light;
  50. TGLSphere *GLSphere1;
  51. TGLDummyCube *LightCube2;
  52. TGLLightSource *Light2;
  53. TGLSphere *GLSphere2;
  54. TGLDummyCube *WorldCube;
  55. TGLActor *Fighter;
  56. TGLActor *Teapot;
  57. TGLActor *Sphere_big;
  58. TGLActor *Sphere_little;
  59. TGLCamera *Camera;
  60. TGLCadencer *Cadencer;
  61. TGLMaterialLibrary *MaterialLibrary;
  62. TGLSLDiffuseSpecularShader *DiffuseSpecularShader;
  63. TGLSimpleNavigation *GLSimpleNavigation1;
  64. void __fastcall FormCreate(TObject *Sender);
  65. void __fastcall EnableFogCheckBoxClick(TObject *Sender);
  66. void __fastcall CadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  67. void __fastcall MultiLightShaderCheckBoxClick(TObject *Sender);
  68. void __fastcall RealisticSpecularCheckBoxClick(TObject *Sender);
  69. void __fastcall LightCubeProgress(TObject *Sender, const double deltaTime, const double newTime);
  70. private: // User declarations
  71. int mx,my;
  72. TGLSLMLDiffuseSpecularShader *MultiLightShader;
  73. public: // User declarations
  74. __fastcall TForm1(TComponent* Owner);
  75. };
  76. //---------------------------------------------------------------------------
  77. extern PACKAGE TForm1 *Form1;
  78. //---------------------------------------------------------------------------
  79. #endif