Unit1.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.Imaging.jpeg.hpp>
  10. #include "GLAsyncTimer.hpp"
  11. #include "GLBaseClasses.hpp"
  12. #include "GLCadencer.hpp"
  13. #include "GLCgShader.hpp"
  14. #include "GLCoordinates.hpp"
  15. #include "GLCrossPlatform.hpp"
  16. #include "GLMaterial.hpp"
  17. #include "GLObjects.hpp"
  18. #include "GLScene.hpp"
  19. #include "GLVectorFileObjects.hpp"
  20. #include "GLWin32Viewer.hpp"
  21. #include "GLFileMD2.hpp"
  22. #include "GLUtils.hpp"
  23. #include "CgGL.hpp"
  24. //---------------------------------------------------------------------------
  25. class TForm1 : public TForm
  26. {
  27. __published: // IDE-managed Components
  28. TGLSceneViewer *GLSceneViewer1;
  29. TGLScene *GLScene1;
  30. TGLDummyCube *GLDummyCube1;
  31. TGLCamera *GLCamera1;
  32. TGLLightSource *GLLightSource1;
  33. TGLActor *GLActor1;
  34. TCgShader *CgCellShader;
  35. TGLMaterialLibrary *GLMaterialLibrary1;
  36. TGLCadencer *GLCadencer1;
  37. TGLAsyncTimer *AsyncTimer1;
  38. void __fastcall FormCreate(TObject *Sender);
  39. void __fastcall CgCellShaderApplyVP(TCgProgram *CgProgram, TObject *Sender);
  40. void __fastcall CgCellShaderInitialize(TCustomCgShader *CgShader);
  41. void __fastcall CgCellShaderApplyFP(TCgProgram *CgProgram, TObject *Sender);
  42. void __fastcall CgCellShaderUnApplyFP(TCgProgram *CgProgram);
  43. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  44. int X, int Y);
  45. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  46. int Y);
  47. void __fastcall AsyncTimer1Timer(TObject *Sender);
  48. private: // User declarations
  49. int mx,my;
  50. public: // User declarations
  51. __fastcall TForm1(TComponent* Owner);
  52. };
  53. //---------------------------------------------------------------------------
  54. extern PACKAGE TForm1 *Form1;
  55. //---------------------------------------------------------------------------
  56. #endif