- Field names from the 12340 type library (x/y/z/w, a0..d3, minY/minX/maxY/maxX, b/t, c/r, n/d, origin/dir) - Files renamed to match their class; CRay -> C3Ray; C3Segment, CRect, CiRect, C2iVector, C3iVector split out - MouseEventData, CharacterInfo, M2Bounds moved out of Tempest headers - 107 functions: C2/C3/C4Vector, C33/C34/C44Matrix, C4Quaternion, C4Plane, CAaBox, CAaSphere, C3Ray, CRect, CiRect, CImVector, NTempest - 0x4C1C40 is cdecl (q, out): ported as static C44Matrix::FromQuaternion (guessed) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
59 lines
1.6 KiB
C++
59 lines
1.6 KiB
C++
#ifndef ENGINE_SOURCE_MODEL2_M2LIGHT_H
|
|
#define ENGINE_SOURCE_MODEL2_M2LIGHT_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <windows.h>
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/C4Plane.h"
|
|
#include "Engine/Source/Tempest/CAaSphere.h"
|
|
|
|
class CM2Light;
|
|
struct CM2Scene;
|
|
|
|
class CM2Light {
|
|
public:
|
|
/* 0000 */ CM2Scene* m_scene;
|
|
/* 0004 */ uint32_t m_stamp;
|
|
/* 0008 */ uint32_t m_type;
|
|
/* 000C */ C3Vector m_pos;
|
|
/* 0018 */ C3Vector m_viewPos;
|
|
/* 0024 */ C3Vector m_dir;
|
|
/* 0030 */ C3Vector m_ambColor;
|
|
/* 003C */ C3Vector m_dirColor;
|
|
/* 0048 */ C3Vector m_specColor;
|
|
/* 0054 */ float m_constantAttenuation;
|
|
/* 0058 */ float m_linearAttenuation;
|
|
/* 005C */ float m_quadraticAttenuation;
|
|
/* 0060 */ uint32_t m_visible;
|
|
/* 0064 */ CM2Light** m_lightPrev;
|
|
/* 0068 */ CM2Light* m_lightNext;
|
|
};
|
|
|
|
class CM2Lighting {
|
|
public:
|
|
/* 0000 */ CM2Scene* m_scene;
|
|
/* 0004 */ CAaSphere m_sphere4;
|
|
/* 0014 */ uint32_t m_flags;
|
|
/* 0018 */ C3Vector m_vector18;
|
|
/* 0024 */ C3Vector m_vector24;
|
|
/* 0030 */ C3Vector m_vector30;
|
|
/* 003C */ C3Vector m_vector3C;
|
|
/* 0048 */ C3Vector m_vector48;
|
|
/* 0054 */ C3Vector m_sunAmbient;
|
|
/* 0060 */ C3Vector m_sunDiffuse;
|
|
/* 006C */ C3Vector m_sunSpecular;
|
|
/* 0078 */ C3Vector m_sunDir;
|
|
/* 0084 */ CM2Light* m_lights [4];
|
|
/* 0094 */ float m_lightDist [4];
|
|
/* 00A4 */ uint32_t m_lightCount;
|
|
/* 00A8 */ float m_fogStart;
|
|
/* 00AC */ float m_fogEnd;
|
|
/* 00B0 */ float m_fogScale;
|
|
/* 00B4 */ float m_fogDensity;
|
|
/* 00B8 */ C3Vector m_fogColor;
|
|
/* 00C4 */ C4Plane m_liquidPlane;
|
|
};
|
|
|
|
#endif
|