| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //---------------------------------------------------------------------------
- #ifndef fcBunnyBumpH
- #define fcBunnyBumpH
- //---------------------------------------------------------------------------
- #include <tchar.h>
- #include <System.Classes.hpp>
- #include <Vcl.Controls.hpp>
- #include <Vcl.StdCtrls.hpp>
- #include <Vcl.Forms.hpp>
- #include <Vcl.Dialogs.hpp>
- #include <Vcl.ExtCtrls.hpp>
- #include "GLS.AsyncTimer.hpp"
- #include "GLS.BaseClasses.hpp"
- #include "GLSL.BumpShaders.hpp"
- #include "GLS.Cadencer.hpp"
- #include "GLS.Coordinates.hpp"
- #include "GLS.Material.hpp"
- #include "GLS.Objects.hpp"
- #include "GLS.Scene.hpp"
- #include "GLS.VectorFileObjects.hpp"
- #include "GLS.SceneViewer.hpp"
- #include "GLS.OpenGLAdapter.hpp"
- #include "JPeg.hpp"
- #include "GLS.FileOBJ.hpp"
- //---------------------------------------------------------------------------
- class TFormBunny : public TForm
- {
- __published: // IDE-managed Components
- TGLSceneViewer *GLSceneViewer1;
- TPanel *Panel1;
- TLabel *Label1;
- TLabel *Label2;
- TLabel *LabelFPS;
- TComboBox *ComboBox1;
- TGroupBox *GroupBox1;
- TShape *Shape1;
- TShape *Shape2;
- TShape *Shape3;
- TCheckBox *CheckBox1;
- TCheckBox *CheckBox2;
- TCheckBox *CheckBox3;
- TCheckBox *cbSpin;
- TComboBox *ComboBox2;
- TGLScene *GLScene1;
- TGLDummyCube *DCLights;
- TGLLightSource *WhiteLight;
- TGLLightSource *RedLight;
- TGLLightSource *BlueLight;
- TGLFreeForm *Bunny;
- TGLCamera *Camera;
- TGLCadencer *GLCadencer1;
- TGLMaterialLibrary *GLMaterialLibrary1;
- TGLBumpShader *GLBumpShader1;
- TColorDialog *ColorDialog1;
- TGLAsyncTimer *AsyncTimer1;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
- void __fastcall CheckBox1Click(TObject *Sender);
- void __fastcall Shape1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
- int X, int Y);
- void __fastcall ComboBox1Change(TObject *Sender);
- void __fastcall CheckBox2Click(TObject *Sender);
- void __fastcall CheckBox3Click(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);
- void __fastcall AsyncTimer1Timer(TObject *Sender);
- void __fastcall FormResize(TObject *Sender);
- void __fastcall GLSceneViewer1BeforeRender(TObject *Sender);
- void __fastcall ComboBox2Change(TObject *Sender);
- void __fastcall Shape2MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
- int X, int Y);
- void __fastcall Shape3MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
- int X, int Y);
- private: // User declarations
- int mx, my, dx, dy;
- bool IsInitialized;
- int StartHeight;
- public: // User declarations
- __fastcall TFormBunny(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TFormBunny *FormBunny;
- //---------------------------------------------------------------------------
- #endif
|