Unit1.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 <Vcl.ExtCtrls.hpp>
  10. #include <Vcl.Graphics.hpp>
  11. #include "GLCoordinates.hpp"
  12. #include "GLCrossPlatform.hpp"
  13. #include "GLScene.hpp"
  14. #include "GLWin32Viewer.hpp"
  15. #include "GLCanvas.hpp"
  16. #include "GLRenderContextInfo.hpp"
  17. #include "GLBitmapFont.hpp"
  18. #include "GLWindowsFont.hpp"
  19. #include "GLBaseClasses.hpp"
  20. //---------------------------------------------------------------------------
  21. class TForm1 : 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 TForm1(TComponent* Owner);
  54. };
  55. //---------------------------------------------------------------------------
  56. extern PACKAGE TForm1 *Form1;
  57. //---------------------------------------------------------------------------
  58. #endif