mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 06:01:00 +01:00
26 lines
542 B
C
26 lines
542 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <NetImmerse/NiAVObject.h>
|
||
|
|
|
||
|
|
struct NiNode;
|
||
|
|
|
||
|
|
template <typename T> struct NiRect
|
||
|
|
{
|
||
|
|
T left;
|
||
|
|
T right;
|
||
|
|
T top;
|
||
|
|
T bottom;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct NiCamera : public NiAVObject
|
||
|
|
{
|
||
|
|
virtual ~NiCamera() = default;
|
||
|
|
|
||
|
|
bool WorldPtToScreenPt3(const NiPoint3& in, NiPoint3& out, float zeroTolerance = 1e-5f);
|
||
|
|
|
||
|
|
static bool WorldPtToScreenPt3(float* matrix, const NiRect<float>* port, const NiPoint3* p_in, float* x_out, float* y_out, float* z_out, float zeroTolerance = 1e-5f);
|
||
|
|
|
||
|
|
NiNode* parent;
|
||
|
|
NiAVObject* unk;
|
||
|
|
};
|