//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "GLBaseClasses"
#pragma link "GLCoordinates"
#pragma link "GLCrossPlatform"
#pragma link "GLObjects"
#pragma link "GLScene"
#pragma link "GLVectorFileObjects"
#pragma link "GLSceneViewer"
#pragma link "GLFile3DS"
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
const String
   cFileName = "polyhedron.3ds";

   SetGLSceneMediaDir();
   // left one
   FreeForm3->AutoCentering = FreeForm3->AutoCentering << macCenterX, macCenterZ;
   FreeForm3->LoadFromFile(cFileName);
   // central one
   FreeForm2->AutoCentering = FreeForm2->AutoCentering << macCenterY;
   FreeForm2->LoadFromFile(cFileName);
   // right one
   FreeForm1->AutoCentering = FreeForm1->AutoCentering << macCenterX, macCenterY, macCenterZ;
   FreeForm1->LoadFromFile(cFileName);

}
//---------------------------------------------------------------------------
void __fastcall TForm1::TrackBar1Change(TObject *Sender)
{
   DCCamera->PitchAngle = TrackBar1->Position;
}
//---------------------------------------------------------------------------
