16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 18:19:19 +02:00

maintenance: settings item refactoring, include dependencies fixes

This commit is contained in:
tmj-fstate
2018-01-26 16:44:47 +01:00
parent 9d008d2a3e
commit 0124032d3b
92 changed files with 2226 additions and 2233 deletions

View File

@@ -10,11 +10,8 @@ http://mozilla.org/MPL/2.0/.
#pragma once
#include "dumb3d.h"
#include "dynobj.h"
#include "command.h"
using namespace Math3D;
//---------------------------------------------------------------------------
enum TCameraType
{ // tryby pracy kamery
@@ -23,31 +20,30 @@ enum TCameraType
tp_Satelite // widok z góry (nie używany)
};
class TCamera
{
class TCamera {
private:
glm::dvec3 m_moverate;
glm::dvec3 m_moverate;
public: // McZapkie: potrzebuje do kiwania na boki
double Pitch;
double Yaw; // w środku: 0=do przodu; na zewnątrz: 0=na południe
double Roll;
TCameraType Type;
vector3 Pos; // współrzędne obserwatora
vector3 LookAt; // współrzędne punktu, na który ma patrzeć
vector3 vUp;
vector3 Velocity;
void Init(vector3 NPos, vector3 NAngle);
void Init( Math3D::vector3 NPos, Math3D::vector3 NAngle);
inline
void Reset() {
Pitch = Yaw = Roll = 0; };
void OnCursorMove(double const x, double const y);
bool OnCommand( command_data const &Command );
void Update();
vector3 GetDirection();
Math3D::vector3 GetDirection();
bool SetMatrix(glm::dmat4 &Matrix);
void RaLook();
void Stop();
// bool GetMatrix(matrix4x4 &Matrix);
vector3 PtNext, PtPrev;
TCameraType Type;
double Pitch;
double Yaw; // w środku: 0=do przodu; na zewnątrz: 0=na południe
double Roll;
Math3D::vector3 Pos; // współrzędne obserwatora
Math3D::vector3 LookAt; // współrzędne punktu, na który ma patrzeć
Math3D::vector3 vUp;
Math3D::vector3 Velocity;
};