-
Notifications
You must be signed in to change notification settings - Fork 2
/
Settings.h
105 lines (83 loc) · 2.77 KB
/
Settings.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//-----------------------------------------------------------------------------
// File: Settings.h
//
// Desc: Definition file for the CSettings class
//
// Copyright (c) 2002 Dan
//-----------------------------------------------------------------------------
#ifndef _SETTINGS_H_
#define _SETTINGS_H_
#include "Singleton.h"
#include "main.h"
#include "enum.h"
//-----------------------------------------------------------------------------
// Name: class CSettings
// Desc: This class stores information about the current settings of the
// application.
//-----------------------------------------------------------------------------
class CSettings : public CSingleton<CSettings>
{
public:
CSettings();
virtual ~CSettings();
bool Save( const char* strFile = NULL );
bool Open( const char* strFile = NULL );
// Brush Settings
BRUSHTYPE m_eCurrentBrush;
VECT m_vBrush_Location;
float m_fBrush_Sheet_USize;
float m_fBrush_Sheet_VSize;
int m_iBrush_Sheet_Axis;
float m_fBrush_Cube_Depth;
float m_fBrush_Cube_Width;
float m_fBrush_Cube_Height;
float m_fBrush_Stairs_Height;
float m_fBrush_Stairs_Depth;
float m_fBrush_Stairs_Width;
int m_iBrush_Stairs_NumSteps;
float m_fBrush_Stairs_AddToFirst;
float m_fBrush_Spiral_Height;
float m_fBrush_Spiral_Width;
float m_fBrush_Spiral_InnerRadius;
float m_fBrush_Spiral_AddToFirst;
float m_fBrush_Spiral_Degrees;
int m_iBrush_Spiral_NumSteps;
float m_fBrush_Cylinder_Height;
float m_fBrush_Cylinder_Radius;
int m_iBrush_Cylinder_NumSides;
float m_fBrush_Circle_Radius;
float m_fBrush_Circle_Degrees;
int m_iBrush_Circle_NumSides;
bool m_bTextureTab_Texture1;
bool m_bTextureTab_Texture2;
bool m_bTextureTab_Lightmap;
bool m_bEditor_UpdatePolys;
bool m_bEditor_UpdateFaces;
bool m_bEditor_UpdateVerts;
bool m_bEditor_RenderNormals;
bool m_bEditor_RenderBrush;
bool m_bEditor_UseTexturing;
bool m_bEditor_UseLighting;
bool m_bEditor_RenderSelected;
bool m_bEditor_RenderPolygons;
bool m_bEditor_3DViewActive;
bool m_bEditor_LeftViewActive;
bool m_bEditor_CenterViewActive;
bool m_bEditor_RightViewActive;
bool m_bEditor_RenderLights;
int m_iLighting_LightmapLOD;
float m_fLighting_LightIntensity;
float m_fLighting_ReflectionIntensity;
bool m_bLighting_ShowHemicube;
bool m_bLighting_BestQuality;
bool m_bLighting_NormalQuality;
int m_fLighting_Threshold;
VECT vF, vL, vR, vU, vD, vB;
float m_fGeometry_MoveFactor;
float m_fGeometry_ExpandAmount;
int m_iGeometry_ApplyTo;
bool m_bSystem_DisplayErrorMessageBoxes;
};
#define Settings CSettings::GetSingletonPtr()
#define SE CSettings::GetSingletonPtr()
#endif