1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include "GLS.GeomObjects.hpp"
- #include "GLS.Objects.hpp"
- #include "GLS.Scene.hpp"
- #include "GLS.Texture.hpp"
- #include "GLS.SceneViewer.hpp"
- #include "GLS.BaseClasses.hpp"
- #include "GLS.Coordinates.hpp"
- #include "GLS.Material.hpp"
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TGLSceneViewer *GLSceneViewer1;
- TButton *BUBind;
- TGLScene *GLScene1;
- TGLLightSource *GLLightSource1;
- TGLTorus *Torus1;
- TGLSphere *Sphere1;
- TGLAnnulus *GLAnnulus1;
- TGLAnnulus *GLAnnulus2;
- TGLCube *GLCube1;
- TGLSphere *GLSphere1;
- TGLCamera *GLCamera1;
- TGLMaterialLibrary *GLMaterialLibrary1;
- void __fastcall BUBindClick(TObject *Sender);
- void __fastcall GLSceneViewer1MouseDown(TObject *Sender,
- TMouseButton Button, TShiftState Shift, int X, int Y);
- void __fastcall GLSceneViewer1MouseMove(TObject *Sender,
- TShiftState Shift, int X, int Y);
- private: // User declarations
- int mx, my;
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- class THiddenLineShader : public TGLShader
- {
- private:
- public:
- __fastcall virtual THiddenLineShader(TComponent* AOwner);
- __fastcall virtual ~THiddenLineShader(void);
- TColorVector BackgroundColor, LineColor;
- int PassCount;
- void __fastcall DoApply(TGLRenderContextInfo &rci, System::TObject* Sender);
- bool __fastcall DoUnApply(TGLRenderContextInfo &rci);
- };
- class TOutLineShader : public TGLShader
- {
- private:
- public:
- __fastcall virtual TOutLineShader(TComponent* AOwner);
- __fastcall virtual ~TOutLineShader(void);
-
- TColorVector BackgroundColor, LineColor;
- bool OutlineSmooth, Lighting;
- float OutlineWidth, OldlineWidth;
- int PassCount;
- void __fastcall DoApply(TGLRenderContextInfo &rci, System::TObject* Sender);
- bool __fastcall DoUnApply(TGLRenderContextInfo &rci);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif
|