Unit1.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 "GLBaseClasses.hpp"
  11. #include "GLCadencer.hpp"
  12. #include "GLCoordinates.hpp"
  13. #include "GLCrossPlatform.hpp"
  14. #include "GLGraph.hpp"
  15. #include "GLMaterial.hpp"
  16. #include "GLObjects.hpp"
  17. #include "GLScene.hpp"
  18. #include "GLSimpleNavigation.hpp"
  19. #include "GLSkydome.hpp"
  20. #include "GLUserShader.hpp"
  21. #include "GLWin32Viewer.hpp"
  22. #include "GLTextureFormat.hpp"
  23. #include "GLColor.hpp"
  24. #include "OpenGLTokens.hpp"
  25. #include "OpenGLAdapter.hpp"
  26. #include "GLContext.hpp"
  27. #include "GLRenderContextInfo.hpp"
  28. #include "GLState.hpp"
  29. #include "GLUtils.hpp"
  30. #include "GLFileTGA.hpp"
  31. //---------------------------------------------------------------------------
  32. class TForm1 : public TForm
  33. {
  34. __published: // IDE-managed Components
  35. TGLSceneViewer *GLSceneViewer1;
  36. TGLScene *GLScene1;
  37. TGLLightSource *GLLightSource1;
  38. TGLSphere *GLSphere1;
  39. TGLDirectOpenGL *DOInitialize;
  40. TGLDirectOpenGL *DOOceanPlane;
  41. TGLHeightField *GLHeightField1;
  42. TGLSphere *GLSphere2;
  43. TGLCamera *GLCamera;
  44. TGLMaterialLibrary *MatLib;
  45. TGLCadencer *GLCadencer1;
  46. TGLUserShader *GLUserShader1;
  47. TGLMemoryViewer *GLMemoryViewer1;
  48. TGLScene *GLScene2;
  49. TGLEarthSkyDome *GLEarthSkyDome1;
  50. TGLCamera *CameraCubeMap;
  51. TGLSimpleNavigation *GLSimpleNavigation1;
  52. void __fastcall FormCreate(TObject *Sender);
  53. void __fastcall DOInitializeRender(TObject *Sender, TGLRenderContextInfo &rci);
  54. void __fastcall GLUserShader1DoApply(TObject *Sender, TGLRenderContextInfo &rci);
  55. void __fastcall GLUserShader1DoUnApply(TObject *Sender, int Pass, TGLRenderContextInfo &rci,
  56. bool &Continue);
  57. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  58. int Y);
  59. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  60. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  61. int X, int Y);
  62. void __fastcall GLHeightField1GetHeight(const float x, const float y, float &z,
  63. TVector4f &color, TTexPoint &texPoint);
  64. void __fastcall DOOceanPlaneRender(TObject *Sender, TGLRenderContextInfo &rci);
  65. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  66. private: // User declarations
  67. int mx, my, dmx, dmy;
  68. TGLProgramHandle *programObject;
  69. public: // User declarations
  70. __fastcall TForm1(TComponent* Owner);
  71. };
  72. //---------------------------------------------------------------------------
  73. extern PACKAGE TForm1 *Form1;
  74. //---------------------------------------------------------------------------
  75. #endif