Unit1.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.Imaging.Jpeg.hpp>
  10. #include "GLS.BaseClasses.hpp"
  11. #include "GLS.Cadencer.hpp"
  12. #include "GLS.Coordinates.hpp"
  13. #include "GLSL.CustomShader.hpp"
  14. #include "GLS.FBORenderer.hpp"
  15. #include "GLS.GeomObjects.hpp"
  16. #include "GLS.HUDObjects.hpp"
  17. #include "GLS.Material.hpp"
  18. #include "GLS.Objects.hpp"
  19. #include "GLS.Scene.hpp"
  20. #include "GLS.SimpleNavigation.hpp"
  21. #include "GLSLShader.hpp"
  22. #include "GLS.VectorFileObjects.hpp"
  23. #include "GLS.SceneViewer.hpp"
  24. #include "OpenGLx.hpp"
  25. #include "FormatDDSImage.hpp"
  26. #include <Vcl.ExtCtrls.hpp>
  27. //---------------------------------------------------------------------------
  28. class TForm1 : public TForm
  29. {
  30. __published: // IDE-managed Components
  31. TGLSceneViewer *GLSceneViewer1;
  32. TGLScene *GLScene1;
  33. TGLCamera *GLCamera1;
  34. TGLCamera *GLCamera2;
  35. TGLLightSource *GLLightSource1;
  36. TGLSphere *GLSphere1;
  37. TGLFBORenderer *LightFBORenderer;
  38. TGLDummyCube *SceneRoot;
  39. TGLDirectOpenGL *PrepareShadowMapping;
  40. TGLPlane *GLPlane1;
  41. TGLTorus *GLTorus1;
  42. TGLCylinder *GLCylinder1;
  43. TGLFreeForm *GLFreeForm1;
  44. TGLHUDSprite *GLShadowTextureSprite;
  45. TGLMaterialLibrary *GLMaterialLibrary1;
  46. TGLCadencer *GLCadencer1;
  47. TTimer *Timer1;
  48. TGLSLShader *GLSLShader1;
  49. TGLSLShader *GLSLShader2;
  50. TGLSimpleNavigation *GLNavigation;
  51. void __fastcall GLSLShader1Apply(TGLCustomGLSLShader *Shader);
  52. void __fastcall GLSLShader1UnApply(TGLCustomGLSLShader *Shader, bool &ThereAreMorePasses);
  53. void __fastcall GLSLShader2Apply(TGLCustomGLSLShader *Shader);
  54. void __fastcall GLSLShader2Initialize(TGLCustomGLSLShader *Shader);
  55. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  56. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  57. void __fastcall FormResize(TObject *Sender);
  58. void __fastcall FormCreate(TObject *Sender);
  59. void __fastcall PrepareShadowMappingRender(TObject *Sender, TGLRenderContextInfo &rci);
  60. private: // User declarations
  61. TMatrix FBiasMatrix;
  62. TMatrix FLightModelViewMatrix;
  63. TMatrix FLightProjMatrix;
  64. TMatrix FInvCameraMatrix;
  65. TMatrix FEyeToLightMatrix;
  66. public: // User declarations
  67. __fastcall TForm1(TComponent* Owner);
  68. };
  69. //---------------------------------------------------------------------------
  70. extern PACKAGE TForm1 *Form1;
  71. //---------------------------------------------------------------------------
  72. #endif