CommonLibSSE NG
UI3DSceneManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSAtomic.h"
4 #include "RE/B/BSTArray.h"
5 #include "RE/B/BSTSingleton.h"
6 #include "RE/N/NiColor.h"
7 #include "RE/N/NiFrustum.h"
8 #include "RE/N/NiMatrix3.h"
9 #include "RE/N/NiPoint3.h"
10 #include "RE/N/NiSmartPointer.h"
11 
12 namespace RE
13 {
14  class BSCullingProcess;
15  class BSLight;
16  class BSShaderAccumulator;
17  class NiAVObject;
18  class NiCamera;
19  class NiNode;
20  class ShadowSceneNode;
21  class TESImageSpaceModifier;
22 
24  {
25  kJournal = 0,
26  kInventory,
28  kBook,
29  kLoading,
30  kUnk05,
31  kStats,
33 
34  kTotal = 8
35  };
36 
37  class MenuLight
38  {
39  public:
40  // members
41  NiColor color; // 00
43  float radius; // 18
44  float fade; // 1C
45  bool castsShadows; // 20
47  MenuLight* last; // 30
48  };
49  static_assert(sizeof(MenuLight) == 0x38);
50 
51  class UI3DSceneManager : public BSTSingletonSDM<UI3DSceneManager>
52  {
53  public:
55 
56  void AttachChild(NiAVObject* a_obj);
58  void DetachChild(NiAVObject* a_obj);
59  void SetCameraFOV(float a_fov);
60  void SetCameraRotate(const NiMatrix3& a_rotate);
61  void SetCameraPosition(const NiPoint3& a_pos);
62 
63  // members
64  std::uint8_t pad01; // 01
65  std::uint16_t pad02; // 02
66  std::uint32_t pad04; // 04
71  mutable BSSpinLock lock; // 28
76  std::uint32_t pad94; // 94
82  };
83  static_assert(sizeof(UI3DSceneManager) == 0x118);
84 }
Definition: BSCullingProcess.h:17
Definition: BSAtomic.h:51
Definition: BSTArray.h:377
Definition: UI3DSceneManager.h:38
NiPoint3 translate
Definition: UI3DSceneManager.h:42
NiColor color
Definition: UI3DSceneManager.h:41
float radius
Definition: UI3DSceneManager.h:43
NiPointer< BSLight > light
Definition: UI3DSceneManager.h:46
MenuLight * last
Definition: UI3DSceneManager.h:47
float fade
Definition: UI3DSceneManager.h:44
bool castsShadows
Definition: UI3DSceneManager.h:45
Definition: NiAVObject.h:50
Definition: NiColor.h:11
Definition: NiFrustum.h:6
Definition: NiMatrix3.h:8
Definition: NiPoint3.h:6
Definition: NiSmartPointer.h:9
Definition: ShadowSceneNode.h:17
Definition: UI3DSceneManager.h:52
NiPointer< NiCamera > camera
Definition: UI3DSceneManager.h:70
static UI3DSceneManager * GetSingleton()
std::uint16_t pad02
Definition: UI3DSceneManager.h:65
INTERFACE_LIGHT_SCHEME currentlightScheme
Definition: UI3DSceneManager.h:75
NiPointer< NiNode > menuObjects[8]
Definition: UI3DSceneManager.h:73
NiMatrix3 cachedCameraRot
Definition: UI3DSceneManager.h:80
void SetCameraPosition(const NiPoint3 &a_pos)
std::uint8_t pad01
Definition: UI3DSceneManager.h:64
void SetCameraRotate(const NiMatrix3 &a_rotate)
ShadowSceneNode * shadowSceneNode
Definition: UI3DSceneManager.h:72
BSTArray< INTERFACE_LIGHT_SCHEME > lightSchemes
Definition: UI3DSceneManager.h:77
NiPointer< BSShaderAccumulator > unk10
Definition: UI3DSceneManager.h:68
void DetachChild(NiAVObject *a_obj)
BSSpinLock lock
Definition: UI3DSceneManager.h:71
std::uint32_t pad94
Definition: UI3DSceneManager.h:76
void SetCameraFOV(float a_fov)
void AttachChild(NiAVObject *a_obj, INTERFACE_LIGHT_SCHEME a_scheme)
BSTArray< NiPointer< TESImageSpaceModifier > > imageSpaceMods
Definition: UI3DSceneManager.h:78
NiPointer< BSShaderAccumulator > unk18
Definition: UI3DSceneManager.h:69
NiPoint3 cachedCameraPos
Definition: UI3DSceneManager.h:79
BSCullingProcess * cullingProcess
Definition: UI3DSceneManager.h:67
std::uint32_t pad04
Definition: UI3DSceneManager.h:66
BSTArray< MenuLight * > menuLights
Definition: UI3DSceneManager.h:74
void AttachChild(NiAVObject *a_obj)
NiFrustum viewFrustum
Definition: UI3DSceneManager.h:81
Definition: AbsorbEffect.h:6
INTERFACE_LIGHT_SCHEME
Definition: UI3DSceneManager.h:24
Definition: BSTSingleton.h:50