fOceanC.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //---------------------------------------------------------------------------
  2. #ifndef fOceanCH
  3. #define fOceanCH
  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 "GLS.Graph.hpp"
  14. #include "GLS.Material.hpp"
  15. #include "GLS.Objects.hpp"
  16. #include "GLS.Scene.hpp"
  17. #include "GLS.SimpleNavigation.hpp"
  18. #include "GLS.SkyDome.hpp"
  19. #include "GLSL.UserShader.hpp"
  20. #include "GLS.SceneViewer.hpp"
  21. #include "GLS.TextureFormat.hpp"
  22. #include "GLS.Color.hpp"
  23. #include "GLS.OpenGLTokens.hpp"
  24. #include "GLS.OpenGLAdapter.hpp"
  25. #include "GLS.Context.hpp"
  26. #include "GLS.RenderContextInfo.hpp"
  27. #include "GLS.State.hpp"
  28. #include "GLS.Utils.hpp"
  29. #include "GLS.FileTGA.hpp"
  30. //---------------------------------------------------------------------------
  31. class TForm1 : public TForm
  32. {
  33. __published: // IDE-managed Components
  34. TGLSceneViewer *GLSceneViewer1;
  35. TGLScene *GLScene1;
  36. TGLLightSource *GLLightSource1;
  37. TGLSphere *GLSphere1;
  38. TGLDirectOpenGL *DOInitialize;
  39. TGLDirectOpenGL *DOOceanPlane;
  40. TGLHeightField *GLHeightField1;
  41. TGLSphere *GLSphere2;
  42. TGLCamera *GLCamera;
  43. TGLMaterialLibrary *MatLib;
  44. TGLCadencer *GLCadencer1;
  45. TGLUserShader *GLUserShader1;
  46. TGLMemoryViewer *GLMemoryViewer1;
  47. TGLScene *GLScene2;
  48. TGLEarthSkyDome *GLEarthSkyDome1;
  49. TGLCamera *CameraCubeMap;
  50. TGLSimpleNavigation *GLSimpleNavigation1;
  51. void __fastcall FormCreate(TObject *Sender);
  52. void __fastcall DOInitializeRender(TObject *Sender, TGLRenderContextInfo &rci);
  53. void __fastcall GLUserShader1DoApply(TObject *Sender, TGLRenderContextInfo &rci);
  54. void __fastcall GLUserShader1DoUnApply(TObject *Sender, int Pass, TGLRenderContextInfo &rci,
  55. bool &Continue);
  56. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  57. int Y);
  58. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  59. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  60. int X, int Y);
  61. void __fastcall GLHeightField1GetHeight(const float x, const float y, float &z,
  62. TVector4f &color, TTexPoint &texPoint);
  63. void __fastcall DOOceanPlaneRender(TObject *Sender, TGLRenderContextInfo &rci);
  64. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  65. private: // User declarations
  66. int mx, my, dmx, dmy;
  67. TGLProgramHandle *programObject;
  68. public: // User declarations
  69. __fastcall TForm1(TComponent* Owner);
  70. };
  71. //---------------------------------------------------------------------------
  72. extern PACKAGE TForm1 *Form1;
  73. //---------------------------------------------------------------------------
  74. #endif