fDiffuseShaderC.h 2.6 KB

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