fCanvasC.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //---------------------------------------------------------------------------
  2. #ifndef fCanvasCH
  3. #define fCanvasCH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <System.Uitypes.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.ExtCtrls.hpp>
  11. #include <Vcl.Graphics.hpp>
  12. #include "GLS.Coordinates.hpp"
  13. #include "GLS.Scene.hpp"
  14. #include "GLS.SceneViewer.hpp"
  15. #include "GLS.Canvas.hpp"
  16. #include "GLS.RenderContextInfo.hpp"
  17. #include "GLS.BitmapFont.hpp"
  18. #include "GLS.WindowsFont.hpp"
  19. #include "GLS.BaseClasses.hpp"
  20. //---------------------------------------------------------------------------
  21. class TFormCanvas : public TForm
  22. {
  23. __published: // IDE-managed Components
  24. TBevel *Bevel1;
  25. TGLSceneViewer *GLSceneViewer;
  26. TGLScene *GLScene1;
  27. TGLDirectOpenGL *GLDirectOpenGL1;
  28. TGLCamera *GLCamera1;
  29. TGLWindowsBitmapFont *WindowsBitmapFont;
  30. TPanel *Panel1;
  31. TButton *BULines;
  32. TButton *BUEllipses;
  33. TButton *BURects;
  34. TButton *BUArc;
  35. TButton *BUPoints;
  36. TButton *BUTextOut;
  37. TRadioButton *RBPenWidth1;
  38. TRadioButton *RBPenWidth2;
  39. TLabel *LAGLCanvas;
  40. TLabel *LAGDI;
  41. TPaintBox *PaintBox;
  42. void __fastcall BULinesClick(TObject *Sender);
  43. void __fastcall BUEllipsesClick(TObject *Sender);
  44. void __fastcall BUArcClick(TObject *Sender);
  45. void __fastcall BURectsClick(TObject *Sender);
  46. void __fastcall BUPointsClick(TObject *Sender);
  47. void __fastcall BUTextOutClick(TObject *Sender);
  48. void __fastcall GLDirectOpenGL1Render(TObject *Sender, TGLRenderContextInfo &rci);
  49. private: // User declarations
  50. void PaintTheBox();
  51. void Bench();
  52. public: // User declarations
  53. __fastcall TFormCanvas(TComponent* Owner);
  54. };
  55. //---------------------------------------------------------------------------
  56. extern PACKAGE TFormCanvas *FormCanvas;
  57. //---------------------------------------------------------------------------
  58. #endif