| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //---------------------------------------------------------------------------
- #ifndef fShadowFBOCH
- #define fShadowFBOCH
- //---------------------------------------------------------------------------
- #include <System.Classes.hpp>
- #include <Vcl.Controls.hpp>
- #include <Vcl.StdCtrls.hpp>
- #include <Vcl.Forms.hpp>
- #include <Vcl.Imaging.Jpeg.hpp>
- #include "GLS.BaseClasses.hpp"
- #include "GLS.Cadencer.hpp"
- #include "GLS.Coordinates.hpp"
- #include "GLSL.CustomShader.hpp"
- #include "GLS.FBORenderer.hpp"
- #include "GLS.GeomObjects.hpp"
- #include "GLS.HUDObjects.hpp"
- #include "GLS.Material.hpp"
- #include "GLS.Objects.hpp"
- #include "GLS.Scene.hpp"
- #include "GLS.SimpleNavigation.hpp"
- #include "GLS.VectorFileObjects.hpp"
- #include "GLS.SceneViewer.hpp"
- #include "Formats.DDSImage.hpp"
- #include <Vcl.ExtCtrls.hpp>
- #include "GLSL.Shader.hpp"
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TGLSceneViewer *GLSceneViewer1;
- TGLScene *GLScene1;
- TGLCamera *GLCamera1;
- TGLSphere *GLSphere1;
- TGLDummyCube *SceneRoot;
- TGLMaterialLibrary *GLMaterialLibrary1;
- TGLLightSource *GLLightSource1;
- TGLFBORenderer *LightFBORenderer;
- TGLDirectOpenGL *PrepareShadowMapping;
- TGLCamera *GLCamera2;
- TGLPlane *GLPlane1;
- TGLTorus *GLTorus1;
- TGLCylinder *GLCylinder1;
- TGLFreeForm *GLFreeForm1;
- TGLHUDSprite *GLShadowTextureSprite;
- TGLCadencer *GLCadencer1;
- TTimer *Timer1;
- TGLSLShader *GLSLShader1;
- TGLSLShader *GLSLShader2;
- TGLSimpleNavigation *GLNavigation;
- void __fastcall GLSLShader1Apply(TGLCustomGLSLShader *Shader);
- void __fastcall GLSLShader1UnApply(TGLCustomGLSLShader *Shader, bool &ThereAreMorePasses);
- void __fastcall GLSLShader2Apply(TGLCustomGLSLShader *Shader);
- void __fastcall GLSLShader2Initialize(TGLCustomGLSLShader *Shader);
- void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
- void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
- void __fastcall FormResize(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall PrepareShadowMappingRender(TObject *Sender, TGLRenderContextInfo &rci);
- private: // User declarations
- TGLMatrix *FBiasMatrix;
- TGLMatrix *FLightModelViewMatrix;
- TGLMatrix *FLightProjMatrix;
- TGLMatrix *FInvCameraMatrix;
- TGLMatrix *FEyeToLightMatrix;
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif
|