Unit1.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "GLCoordinates.hpp"
  11. #include "GLCrossPlatform.hpp"
  12. #include "GLGraph.hpp"
  13. #include "GLScene.hpp"
  14. #include "GLWin32Viewer.hpp"
  15. #include <Vcl.ExtCtrls.hpp>
  16. //---------------------------------------------------------------------------
  17. class TForm1 : public TForm
  18. {
  19. __published: // IDE-managed Components
  20. TGLSceneViewer *GLSceneViewer;
  21. TPanel *Panel1;
  22. TLabel *Label1;
  23. TLabel *Label2;
  24. TLabel *Label3;
  25. TRadioButton *RBPaint;
  26. TRadioButton *RadioButton2;
  27. TGLScene *GLScene1;
  28. TGLLightSource *GLLightSource1;
  29. TGLCamera *GLCamera1;
  30. TGLHeightField *HeightField;
  31. void __fastcall FormCreate(TObject *Sender);
  32. void __fastcall HeightFieldGetHeight(const float x, const float y, float &z, TVector4f &Color,
  33. TTexPoint &TexPoint);
  34. void __fastcall GLSceneViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  35. int X, int Y);
  36. void __fastcall GLSceneViewerMouseMove(TObject *Sender, TShiftState Shift, int X,
  37. int Y);
  38. private: // User declarations
  39. int mx, my;
  40. public: // User declarations
  41. __fastcall TForm1(TComponent* Owner);
  42. };
  43. //---------------------------------------------------------------------------
  44. extern PACKAGE TForm1 *Form1;
  45. //---------------------------------------------------------------------------
  46. #endif