Unit1.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. #include <gl.h>
  8. #include <glext.h>
  9. //---------------------------------------------------------------------------
  10. #include <System.Classes.hpp>
  11. #include <Vcl.Controls.hpp>
  12. #include <Vcl.StdCtrls.hpp>
  13. #include <Vcl.Forms.hpp>
  14. #include "GLBaseClasses.hpp"
  15. #include "GLCoordinates.hpp"
  16. #include "GLCrossPlatform.hpp"
  17. #include "GLObjects.hpp"
  18. #include "GLScene.hpp"
  19. #include "GLTeapot.hpp"
  20. #include "GLWin32Viewer.hpp"
  21. #include "Jpeg.hpp"
  22. #include "GLColor.hpp"
  23. #include "GLContext.hpp"
  24. #include "GLTexture.hpp"
  25. //---------------------------------------------------------------------------
  26. class TForm1 : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TGLSceneViewer *GLSceneViewer1;
  30. TButton *Button1;
  31. TGLScene *GLScene1;
  32. TGLDummyCube *DummyCube1;
  33. TGLLightSource *GLLightSource1;
  34. TGLTeapot *Teapot1;
  35. TGLCamera *GLCamera1;
  36. void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
  37. void __fastcall Button1Click(TObject *Sender);
  38. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  39. int X, int Y);
  40. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  41. int Y);
  42. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  43. TPoint &MousePos, bool &Handled);
  44. private: // User declarations
  45. int mx,my;
  46. bool CubmapSupported;
  47. public: // User declarations
  48. __fastcall TForm1(TComponent* Owner);
  49. };
  50. //---------------------------------------------------------------------------
  51. extern PACKAGE TForm1 *Form1;
  52. //---------------------------------------------------------------------------
  53. #endif