fFogC.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //---------------------------------------------------------------------------
  2. #ifndef fFogCH
  3. #define fFogCH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "GLS.Cadencer.hpp"
  10. #include "GLS.Objects.hpp"
  11. #include "GLS.Scene.hpp"
  12. #include "GLS.Texture.hpp"
  13. #include "GLS.SceneViewer.hpp"
  14. #include <Dialogs.hpp>
  15. #include <ExtCtrls.hpp>
  16. #include "GLS.BaseClasses.hpp"
  17. #include "GLS.Coordinates.hpp"
  18. #include "GLS.Material.hpp"
  19. //---------------------------------------------------------------------------
  20. class TForm1 : public TForm
  21. {
  22. __published: // published declarations
  23. TGLSceneViewer *GLSceneViewer1;
  24. TGLScene *GLScene1;
  25. TGLDummyCube *GLDummyCube1;
  26. TGLLightSource *GLLightSource1;
  27. TGLCamera *GLCamera1;
  28. TGLCadencer *GLCadencer1;
  29. TColorDialog *ColorDialog1;
  30. TGLMaterialLibrary *GLMaterialLibrary1;
  31. TPanel *Panel1;
  32. TCheckBox *CBFogEnable;
  33. TLabel *LFogStart;
  34. TEdit *EFogStart;
  35. TLabel *LFogEnd;
  36. TEdit *EFogEnd;
  37. TGroupBox *GBTexture;
  38. TCheckBox *CBTextureEnabled;
  39. TCheckBox *CBTextureIgnoreFog;
  40. TShape *SFogColor;
  41. TLabel *LFogColor;
  42. TCheckBox *CBApplyToBackground;
  43. TLabel *LFogDensity;
  44. TEdit *EFogDensity;
  45. TRadioGroup *RGFogDistance;
  46. TRadioGroup *RGFogMode;
  47. void __fastcall GLSceneViewer1MouseDown(TObject *Sender,
  48. TMouseButton Button, TShiftState Shift, int X, int Y);
  49. void __fastcall GLSceneViewer1MouseMove(TObject *Sender,
  50. TShiftState Shift, int X, int Y);
  51. void __fastcall CBFogEnableClick(TObject *Sender);
  52. void __fastcall EFogStartChange(TObject *Sender);
  53. void __fastcall SFogColorMouseDown(TObject *Sender,
  54. TMouseButton Button, TShiftState Shift, int X, int Y);
  55. void __fastcall RGFogModeClick(TObject *Sender);
  56. void __fastcall CBApplyToBackgroundClick(TObject *Sender);
  57. void __fastcall CBTextureEnabledClick(TObject *Sender);
  58. void __fastcall CBTextureIgnoreFogClick(TObject *Sender);
  59. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  60. TPoint &MousePos, bool &Handled);
  61. private: // private declarations
  62. void ApplyFogSettings(void);
  63. int mx, my;
  64. public: // public declarations
  65. __fastcall TForm1(TComponent* Owner);
  66. };
  67. //---------------------------------------------------------------------------
  68. extern PACKAGE TForm1 *Form1;
  69. //---------------------------------------------------------------------------
  70. #endif