CommonLibSSE NG
Loading...
Searching...
No Matches
State.h
Go to the documentation of this file.
1#pragma once
2
4#include "RE/N/NiTexture.h"
5
6namespace RE
7{
8 namespace BSGraphics
9 {
10 class State
11 {
12 public:
13 [[nodiscard]] static State* GetSingleton()
14 {
15 REL::Relocation<State*> singleton{ RELOCATION_ID(524998, 411479) };
16 return singleton.get();
17 }
18
19 // members
20 std::uint64_t unk00; // 000
21 std::uint64_t unk08; // 008
22 std::uint64_t unk10; // 010
23 std::uint64_t unk18; // 018
24 std::uint32_t unk20; // 020
25 std::uint32_t screenWidth; // 024
26 std::uint32_t screenHeight; // 028
27 std::uint32_t frameBufferViewport[2]; // 02C
28 std::uint32_t unk34; // 034
29 std::uint64_t unk38; // 038
30 std::uint64_t unk40; // 040
31 std::uint64_t unk48; // 048
32 bool insideFrame; // 050
33 bool letterbox; // 051
34 std::uint16_t unk52; // 052
35 std::uint32_t unk54; // 054
44 };
45 static_assert(offsetof(State, screenWidth) == 0x24);
46 static_assert(offsetof(State, frameBufferViewport) == 0x2C);
47 static_assert(offsetof(State, letterbox) == 0x51);
48 }
49}
#define RELOCATION_ID(a_se, a_ae)
Definition PCH.h:794
Definition State.h:11
static State * GetSingleton()
Definition State.h:13
std::uint32_t frameBufferViewport[2]
Definition State.h:27
std::uint64_t unk40
Definition State.h:30
NiPointer< NiTexture > unk058
Definition State.h:36
std::uint64_t unk38
Definition State.h:29
std::uint32_t unk34
Definition State.h:28
bool insideFrame
Definition State.h:32
std::uint32_t screenWidth
Definition State.h:25
NiPointer< NiTexture > defaultTextureNormalMap
Definition State.h:43
std::uint64_t unk18
Definition State.h:23
std::uint64_t unk00
Definition State.h:20
std::uint16_t unk52
Definition State.h:34
std::uint32_t unk54
Definition State.h:35
std::uint64_t unk08
Definition State.h:21
std::uint32_t unk20
Definition State.h:24
std::uint64_t unk48
Definition State.h:31
NiPointer< NiTexture > defaultTextureGrey
Definition State.h:38
std::uint64_t unk10
Definition State.h:22
NiPointer< NiTexture > defaultReflectionCubeMap
Definition State.h:40
NiPointer< NiTexture > defaultTexEffectMap
Definition State.h:42
NiPointer< NiTexture > defaultTextureWhite
Definition State.h:37
std::uint32_t screenHeight
Definition State.h:26
bool letterbox
Definition State.h:33
NiPointer< NiTexture > defaultFaceDetailMap
Definition State.h:41
NiPointer< NiTexture > defaultHeightMap
Definition State.h:39
Definition NiSmartPointer.h:9
Definition Relocation.h:1638
Definition AbsorbEffect.h:6