Unit1.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.ExtCtrls.hpp>
  10. #include <Vcl.Imaging.jpeg.hpp>
  11. #include "GLBaseClasses.hpp"
  12. #include "GLCadencer.hpp"
  13. #include "GLCoordinates.hpp"
  14. #include "GLCrossPlatform.hpp"
  15. #include "GLCustomShader.hpp"
  16. #include "GLGeomObjects.hpp"
  17. #include "GLGraph.hpp"
  18. #include "GLMaterial.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLSimpleNavigation.hpp"
  22. #include "GLSLDiffuseSpecularShader.hpp"
  23. #include "GLSLShader.hpp"
  24. #include "GLVectorFileObjects.hpp"
  25. #include "GLWin32Viewer.hpp"
  26. #include "GLFileTGA.hpp"
  27. #include "GLFileSMD.hpp"
  28. #include "GLFileMD2.hpp"
  29. #include "GLFile3DS.hpp"
  30. #include "DDSImage.hpp"
  31. #include "GLFileMS3D.hpp"
  32. #include "GLUtils.hpp"
  33. //---------------------------------------------------------------------------
  34. class TForm1 : public TForm
  35. {
  36. __published: // IDE-managed Components
  37. TGLSceneViewer *Viewer;
  38. TPanel *Panel1;
  39. TCheckBox *LightMovingCheckBox;
  40. TCheckBox *ShaderEnabledCheckBox;
  41. TCheckBox *PitchRollTurnCheckBox;
  42. TCheckBox *RealisticSpecularCheckBox;
  43. TCheckBox *MultiLightShaderCheckBox;
  44. TCheckBox *EnableFogCheckBox;
  45. TGLScene *Scene;
  46. TGLDummyCube *GUICube;
  47. TGLArrowLine *GLArrowLine1;
  48. TGLXYZGrid *GLXYZGrid1;
  49. TGLDummyCube *LightCube;
  50. TGLLightSource *Light;
  51. TGLSphere *GLSphere1;
  52. TGLDummyCube *LightCube2;
  53. TGLLightSource *Light2;
  54. TGLSphere *GLSphere2;
  55. TGLDummyCube *WorldCube;
  56. TGLActor *Fighter;
  57. TGLActor *Teapot;
  58. TGLActor *Sphere_big;
  59. TGLActor *Sphere_little;
  60. TGLCamera *Camera;
  61. TGLCadencer *Cadencer;
  62. TGLMaterialLibrary *MaterialLibrary;
  63. TGLSLDiffuseSpecularShader *DiffuseSpecularShader;
  64. TGLSimpleNavigation *GLSimpleNavigation1;
  65. void __fastcall FormCreate(TObject *Sender);
  66. void __fastcall EnableFogCheckBoxClick(TObject *Sender);
  67. void __fastcall CadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  68. void __fastcall MultiLightShaderCheckBoxClick(TObject *Sender);
  69. void __fastcall RealisticSpecularCheckBoxClick(TObject *Sender);
  70. void __fastcall LightCubeProgress(TObject *Sender, const double deltaTime, const double newTime);
  71. private: // User declarations
  72. int mx,my;
  73. TGLSLMLDiffuseSpecularShader *MultiLightShader;
  74. public: // User declarations
  75. __fastcall TForm1(TComponent* Owner);
  76. };
  77. //---------------------------------------------------------------------------
  78. extern PACKAGE TForm1 *Form1;
  79. //---------------------------------------------------------------------------
  80. #endif