F4MP/tiltedcode/Code/client/Games/Skyrim/NetImmerse/NiCamera.h
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

25 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;
};