/
Frogush
/
LabVR
Обзор
Документация
Войти
/
Frogush
/
LabVR
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
lab_13/fxVR.h
58 строк
2 KB
Frogush
upload files
10 дек 2025, 02:22
10 дек 2025, 02:22
136fdb9
Код
Авторство
О чём код?
#ifndef fxVRH #define fxVRH #include <System.Classes.hpp> #include <System.Math.Vectors.hpp> #include <Execute.StereoViewPort.hpp> #include <FMX.Controls.hpp> #include <FMX.Forms.hpp> #include <FMX.Controls3D.hpp> #include <FMX.Objects3D.hpp> #include <FMX.Types.hpp> #include <FMX.Viewport3D.hpp> #include <FMX.Types3D.hpp> #include <FMX.MaterialSources.hpp> #include <vector> class TForm1 : public TForm { __published: Execute::Stereoviewport::TViewport3D *Viewport3D1; TDummy *Dummy1; TDummy *Dummy2; TDummy *Dummy3; TDummy *Dummy4; // ����� � ���� TLight *Light1; TGrid3D *Grid3D1; TPlane *Plane1; TCube *Cube1; TCube *Cube2; TLightMaterialSource *LightMaterialSource1; TLightMaterialSource *LightMaterialSource2; TLightMaterialSource *LightMaterialSource3; TLightMaterialSource *LightMaterialSource4; TTimer *Timer1; void __fastcall FormCreate(TObject *Sender); void __fastcall Viewport3D1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, float X, float Y); void __fastcall Viewport3D1MouseMove(TObject *Sender, TShiftState Shift, float X, float Y); void __fastcall Viewport3D1MouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta, bool &Handled); void __fastcall Timer1Timer(TObject *Sender); private: float mx, my; float orbitAngle; std::vector<TCube*> Cubes; public: __fastcall TForm1(TComponent* Owner); }; extern PACKAGE TForm1 *Form1; #endif