fCelShadingC.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //---------------------------------------------------------------------------
  2. #ifndef fCelShadingCH
  3. #define fCelShadingCH
  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 "GLS.AsyncTimer.hpp"
  11. #include "GLS.BaseClasses.hpp"
  12. #include "GLS.Cadencer.hpp"
  13. #include "GLS.Coordinates.hpp"
  14. #include "GLS.Material.hpp"
  15. #include "GLS.Objects.hpp"
  16. #include "GLS.Scene.hpp"
  17. #include "GLS.VectorFileObjects.hpp"
  18. #include "GLS.SceneViewer.hpp"
  19. #include "GLS.FileMD2.hpp"
  20. #include "GLS.Utils.hpp"
  21. #include "Cg.GL.hpp"
  22. #include "GLS.CgShader.hpp"
  23. #include <Vcl.ComCtrls.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. TStatusBar *StatusBar1;
  39. void __fastcall FormCreate(TObject *Sender);
  40. void __fastcall CgCellShaderApplyVP(TCgProgram *CgProgram, TObject *Sender);
  41. void __fastcall CgCellShaderInitialize(TCustomCgShader *CgShader);
  42. void __fastcall CgCellShaderApplyFP(TCgProgram *CgProgram, TObject *Sender);
  43. void __fastcall CgCellShaderUnApplyFP(TCgProgram *CgProgram);
  44. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  45. int X, int Y);
  46. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  47. int Y);
  48. void __fastcall AsyncTimer1Timer(TObject *Sender);
  49. private: // User declarations
  50. int mx,my;
  51. public: // User declarations
  52. __fastcall TForm1(TComponent* Owner);
  53. };
  54. //---------------------------------------------------------------------------
  55. extern PACKAGE TForm1 *Form1;
  56. //---------------------------------------------------------------------------
  57. #endif