fcBunnyBump.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //---------------------------------------------------------------------------
  2. #ifndef fcBunnyBumpH
  3. #define fcBunnyBumpH
  4. //---------------------------------------------------------------------------
  5. #include <tchar.h>
  6. #include <System.Classes.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.Dialogs.hpp>
  11. #include <Vcl.ExtCtrls.hpp>
  12. #include "GLS.AsyncTimer.hpp"
  13. #include "GLS.BaseClasses.hpp"
  14. #include "GLSL.BumpShaders.hpp"
  15. #include "GLS.Cadencer.hpp"
  16. #include "GLS.Coordinates.hpp"
  17. #include "GLS.Material.hpp"
  18. #include "GLS.Objects.hpp"
  19. #include "GLS.Scene.hpp"
  20. #include "GLS.VectorFileObjects.hpp"
  21. #include "GLS.SceneViewer.hpp"
  22. #include "GLS.OpenGLAdapter.hpp"
  23. #include "JPeg.hpp"
  24. #include "GLS.FileOBJ.hpp"
  25. //---------------------------------------------------------------------------
  26. class TFormBunny : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TGLSceneViewer *GLSceneViewer1;
  30. TPanel *Panel1;
  31. TLabel *Label1;
  32. TLabel *Label2;
  33. TLabel *LabelFPS;
  34. TComboBox *ComboBox1;
  35. TGroupBox *GroupBox1;
  36. TShape *Shape1;
  37. TShape *Shape2;
  38. TShape *Shape3;
  39. TCheckBox *CheckBox1;
  40. TCheckBox *CheckBox2;
  41. TCheckBox *CheckBox3;
  42. TCheckBox *cbSpin;
  43. TComboBox *ComboBox2;
  44. TGLScene *GLScene1;
  45. TGLDummyCube *DCLights;
  46. TGLLightSource *WhiteLight;
  47. TGLLightSource *RedLight;
  48. TGLLightSource *BlueLight;
  49. TGLFreeForm *Bunny;
  50. TGLCamera *Camera;
  51. TGLCadencer *GLCadencer1;
  52. TGLMaterialLibrary *GLMaterialLibrary1;
  53. TGLBumpShader *GLBumpShader1;
  54. TColorDialog *ColorDialog1;
  55. TGLAsyncTimer *AsyncTimer1;
  56. void __fastcall FormCreate(TObject *Sender);
  57. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  58. void __fastcall CheckBox1Click(TObject *Sender);
  59. void __fastcall Shape1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  60. int X, int Y);
  61. void __fastcall ComboBox1Change(TObject *Sender);
  62. void __fastcall CheckBox2Click(TObject *Sender);
  63. void __fastcall CheckBox3Click(TObject *Sender);
  64. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  65. int X, int Y);
  66. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  67. int Y);
  68. void __fastcall AsyncTimer1Timer(TObject *Sender);
  69. void __fastcall FormResize(TObject *Sender);
  70. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  71. void __fastcall ComboBox2Change(TObject *Sender);
  72. void __fastcall Shape2MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  73. int X, int Y);
  74. void __fastcall Shape3MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  75. int X, int Y);
  76. private: // User declarations
  77. int mx, my, dx, dy;
  78. bool IsInitialized;
  79. int StartHeight;
  80. public: // User declarations
  81. __fastcall TFormBunny(TComponent* Owner);
  82. };
  83. //---------------------------------------------------------------------------
  84. extern PACKAGE TFormBunny *FormBunny;
  85. //---------------------------------------------------------------------------
  86. #endif