fCanvasC.h 1.8 KB

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