mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 22:59:19 +02:00
camera frustum
This commit is contained in:
10
Camera.h
10
Camera.h
@@ -11,6 +11,9 @@ http://mozilla.org/MPL/2.0/.
|
||||
#define CameraH
|
||||
|
||||
#include "dumb3d.h"
|
||||
#include "frustum.h"
|
||||
#include "dynobj.h"
|
||||
|
||||
using namespace Math3D;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -25,6 +28,8 @@ class TCamera
|
||||
{
|
||||
private:
|
||||
vector3 pOffset; // nie używane (zerowe)
|
||||
cFrustum m_frustum;
|
||||
|
||||
public: // McZapkie: potrzebuje do kiwania na boki
|
||||
double Pitch;
|
||||
double Yaw; // w środku: 0=do przodu; na zewnątrz: 0=na południe
|
||||
@@ -51,6 +56,11 @@ class TCamera
|
||||
void SetCabMatrix(vector3 &p);
|
||||
void RaLook();
|
||||
void Stop();
|
||||
inline
|
||||
void
|
||||
SetFrustum() { m_frustum.calculate(); }
|
||||
bool
|
||||
IsVisible( TDynamicObject const *Dynamic ) const;
|
||||
// bool GetMatrix(matrix4x4 &Matrix);
|
||||
vector3 PtNext, PtPrev;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user