-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics.h
45 lines (40 loc) · 997 Bytes
/
graphics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include "types.h"
namespace Teardown { namespace Graphics {
#pragma pack(push, 1)
struct DisplayMode {
uint32_t m_Width;
uint32_t m_Height;
uint32_t m_DisplayFrequency;
};
struct Buffers {
int32_t m_FrameBuffer;
int32_t m_RenderBuffers[2];
int32_t m_Textures[8];
int32_t m_Width;
int32_t m_Height;
int32_t m_TextureCount;
bool m_HasBuffers; uint8_t pad_3D[3];
};
struct Options {
int32_t m_RenderScale;
int32_t m_Quality;
int32_t m_Gamma;
int32_t m_FOV;
int32_t m_MotionBlur;
int32_t m_Barrel;
int32_t m_DOF;
int32_t m_VSync;
int32_t m_SoundVolume;
int32_t m_AmbienceVolume;
int32_t m_MusicVolume;
int32_t m_Smooth;
int32_t m_Sensitvity;
int32_t m_Invert;
int32_t m_HeadBob;
};
static_assert(sizeof(DisplayMode) == 0xCu, "DisplayMode size is incorrect!");
static_assert(sizeof(Buffers) == 0x3Cu, "Buffers size is incorrect!");
static_assert(sizeof(Options) == 0x3Cu, "Options size is incorrect!");
#pragma pack(pop)
} }