SA-MP/saco/game/camera.h

27 lines
600 B
C
Raw Normal View History

2023-10-23 22:49:42 +08:00
#pragma once
#include "game.h" // Main runtime interface base structs.
//-----------------------------------------------------------
2023-10-23 22:49:42 +08:00
class CCamera // size: 8
{
public:
int field_0;
MATRIX4X4 *m_matPos;
public:
void SetBehindPlayer();
void SetPosition(float fX, float fY, float fZ, float fRotationX, float fRotationY, float fRotationZ); // tested
void LookAtPoint(float fX, float fY, float fZ, int iType);
void Restore();
void Fade(int iInOut);
void GetMatrix(PMATRIX4X4 Matrix);
void SetMatrix(MATRIX4X4 Matrix);
2023-10-23 22:49:42 +08:00
CCamera() {
m_matPos = (MATRIX4X4 *)ADDR_CAMERA;
2023-10-23 22:49:42 +08:00
field_0 = 0;
}
};