fcSkyShader.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //---------------------------------------------------------------------------
  2. #ifndef fcSkyShaderH
  3. #define fcSkyShaderH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "GLS.BaseClasses.hpp"
  10. #include "GLS.Cadencer.hpp"
  11. #include "GLS.Coordinates.hpp"
  12. #include "GLS.GeomObjects.hpp"
  13. #include "GLS.Objects.hpp"
  14. #include "GLS.Texture.hpp"
  15. #include "GLS.Scene.hpp"
  16. #include "GLS.SceneViewer.hpp"
  17. //---------------------------------------------------------------------------
  18. class TFormSkyShader : public TForm
  19. {
  20. __published: // IDE-managed Components
  21. TGLSceneViewer *SceneViewer;
  22. TGLScene *GLScene1;
  23. TGLDummyCube *DummyCam;
  24. TGLCamera *Camera;
  25. TGLDirectOpenGL *DirectOGL;
  26. TGLTorus *Thor;
  27. TGLSphere *Sphere;
  28. TGLSphere *Sky;
  29. TGLCadencer *Cadencer;
  30. void __fastcall FormCreate(TObject *Sender);
  31. private: // User declarations
  32. public: // User declarations
  33. TFileName Path;
  34. TGLProgramHandle *GLSL_Sky;
  35. TGLProgramHandle *GLSL_Obj;
  36. TGLTexture *Cubemap;
  37. __fastcall TFormSkyShader(TComponent* Owner);
  38. void __fastcall LoadCubemap();
  39. };
  40. //---------------------------------------------------------------------------
  41. extern PACKAGE TFormSkyShader *FormSkyShader;
  42. //---------------------------------------------------------------------------
  43. #endif