Unit1.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 "GLBaseClasses.hpp"
  10. #include "GLBitmapFont.hpp"
  11. #include "GLCadencer.hpp"
  12. #include "GLCoordinates.hpp"
  13. #include "GLCrossPlatform.hpp"
  14. #include "GLGui.hpp"
  15. #include "GLMaterial.hpp"
  16. #include "GLScene.hpp"
  17. #include "GLWin32Viewer.hpp"
  18. #include "GLWindows.hpp"
  19. #include "GLWindowsFont.hpp"
  20. #include <Vcl.Dialogs.hpp>
  21. #include <Vcl.ExtCtrls.hpp>
  22. #include <Vcl.Menus.hpp>
  23. //---------------------------------------------------------------------------
  24. class TForm1 : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLSceneViewer *GLSceneViewer1;
  28. TGLScene *GLScene1;
  29. TGLLightSource *GLLightSource1;
  30. TGLBaseControl *GuiRoot;
  31. TGLForm *GLForm1;
  32. TGLButton *PenButton;
  33. TGLButton *BrushButton;
  34. TGLPanel *GLPanel1;
  35. TGLCustomControl *GLCanvas;
  36. TGLButton *WhiteButton;
  37. TGLButton *BlackButton;
  38. TGLButton *RedButton;
  39. TGLButton *GreenButton;
  40. TGLButton *BlueButton;
  41. TGLCamera *GLCamera1;
  42. TGLCadencer *GLCadencer1;
  43. TTimer *Timer1;
  44. TGLWindowsBitmapFont *WindowsBitmapFont1;
  45. TMainMenu *MainMenu1;
  46. TMenuItem *File1;
  47. TMenuItem *miOpen1;
  48. TMenuItem *miSave1;
  49. TMenuItem *miFont1;
  50. TMenuItem *miWindowsFont1;
  51. TMenuItem *miFPS;
  52. TFontDialog *FontDialog1;
  53. TGLGuiLayout *GLGuiLayout1;
  54. TGLMaterialLibrary *GLMaterialLibrary1;
  55. TOpenDialog *OpenDialog1;
  56. TSaveDialog *SaveDialog1;
  57. void __fastcall FormCreate(TObject *Sender);
  58. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  59. void __fastcall Timer1Timer(TObject *Sender);
  60. void __fastcall miWindowsFont1Click(TObject *Sender);
  61. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  62. int X, int Y);
  63. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  64. int Y);
  65. void __fastcall GLSceneViewer1MouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  66. int X, int Y);
  67. void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  68. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  69. void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
  70. void __fastcall GLCanvasMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  71. int X, int Y);
  72. void __fastcall GLCanvasMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  73. void __fastcall GLCanvasMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  74. int X, int Y);
  75. void __fastcall GLCanvasRender(TGLCustomControl *Sender, TBitmap *Bitmap);
  76. void __fastcall PenButtonButtonClick(TObject *Sender);
  77. void __fastcall BrushButtonButtonClick(TObject *Sender);
  78. void __fastcall WhiteButtonButtonClick(TObject *Sender);
  79. void __fastcall BlackButtonButtonClick(TObject *Sender);
  80. void __fastcall RedButtonButtonClick(TObject *Sender);
  81. void __fastcall GreenButtonButtonClick(TObject *Sender);
  82. void __fastcall BlueButtonButtonClick(TObject *Sender);
  83. void __fastcall GLCanvasAcceptMouseQuery(TGLBaseControl *Sender, TShiftState Shift,
  84. TGLMouseAction Action, TMouseButton Button, int X, int Y, bool &Accept);
  85. void __fastcall GLForm1Moving(TGLForm *Sender, float &Left, float &Top);
  86. void __fastcall miOpen1Click(TObject *Sender);
  87. void __fastcall miSave1Click(TObject *Sender);
  88. private: // User declarations
  89. int StartX;
  90. int StartY;
  91. int CurrentX;
  92. int CurrentY;
  93. public: // User declarations
  94. __fastcall TForm1(TComponent* Owner);
  95. };
  96. //---------------------------------------------------------------------------
  97. extern PACKAGE TForm1 *Form1;
  98. //---------------------------------------------------------------------------
  99. #endif