Unit1.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "GLGeomObjects.hpp"
  10. #include "GLObjects.hpp"
  11. #include "GLScene.hpp"
  12. #include "GLTexture.hpp"
  13. #include "GLWin32Viewer.hpp"
  14. #include "GLBaseClasses.hpp"
  15. #include "GLCoordinates.hpp"
  16. #include "GLCrossPlatform.hpp"
  17. #include "GLMaterial.hpp"
  18. //---------------------------------------------------------------------------
  19. class TForm1 : public TForm
  20. {
  21. __published: // IDE-managed Components
  22. TGLSceneViewer *GLSceneViewer1;
  23. TButton *BUBind;
  24. TGLScene *GLScene1;
  25. TGLLightSource *GLLightSource1;
  26. TGLTorus *Torus1;
  27. TGLSphere *Sphere1;
  28. TGLAnnulus *GLAnnulus1;
  29. TGLAnnulus *GLAnnulus2;
  30. TGLCube *GLCube1;
  31. TGLSphere *GLSphere1;
  32. TGLCamera *GLCamera1;
  33. TGLMaterialLibrary *GLMaterialLibrary1;
  34. void __fastcall BUBindClick(TObject *Sender);
  35. void __fastcall GLSceneViewer1MouseDown(TObject *Sender,
  36. TMouseButton Button, TShiftState Shift, int X, int Y);
  37. void __fastcall GLSceneViewer1MouseMove(TObject *Sender,
  38. TShiftState Shift, int X, int Y);
  39. private: // User declarations
  40. int mx, my;
  41. public: // User declarations
  42. __fastcall TForm1(TComponent* Owner);
  43. };
  44. //---------------------------------------------------------------------------
  45. class THiddenLineShader : public TGLShader
  46. {
  47. private:
  48. public:
  49. __fastcall virtual THiddenLineShader(TComponent* AOwner);
  50. __fastcall virtual ~THiddenLineShader(void);
  51. TColorVector BackgroundColor, LineColor;
  52. int PassCount;
  53. void __fastcall DoApply(TGLRenderContextInfo &rci, System::TObject* Sender);
  54. bool __fastcall DoUnApply(TGLRenderContextInfo &rci);
  55. };
  56. class TOutLineShader : public TGLShader
  57. {
  58. private:
  59. public:
  60. __fastcall virtual TOutLineShader(TComponent* AOwner);
  61. __fastcall virtual ~TOutLineShader(void);
  62. TColorVector BackgroundColor, LineColor;
  63. bool OutlineSmooth, Lighting;
  64. float OutlineWidth, OldlineWidth;
  65. int PassCount;
  66. void __fastcall DoApply(TGLRenderContextInfo &rci, System::TObject* Sender);
  67. bool __fastcall DoUnApply(TGLRenderContextInfo &rci);
  68. };
  69. //---------------------------------------------------------------------------
  70. extern PACKAGE TForm1 *Form1;
  71. //---------------------------------------------------------------------------
  72. #endif