blob: 4ae7c21e4d6174f07529009f4338a9b3d4bb7c0d (
plain) (
blame)
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
106
107
108
109
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
//
// Half-Life Model Viewer (c) 1999 by Mete Ciragan
//
// file: ViewerSettings.h
// last modified: May 29 1999, Mete Ciragan
// copyright: The programs and associated files contained in this
// distribution were developed by Mete Ciragan. The programs
// are not in the public domain, but they are freely
// distributable without licensing fees. These programs are
// provided without guarantee or warrantee expressed or
// implied.
//
// version: 1.2
//
// email: [email protected]
// web: http://www.swissquake.ch/chumbalum-soft/
//
#ifndef INCLUDED_VIEWERSETTINGS
#define INCLUDED_VIEWERSETTINGS
enum // render modes
{
RM_WIREFRAME,
RM_FLATSHADED,
RM_SMOOTHSHADED,
RM_TEXTURED
};
typedef struct
{
// model
float rot[3];
float trans[3];
// render
int renderMode;
float transparency;
bool showBackground;
bool showGround;
bool showHitBoxes;
bool showBones;
bool showTexture;
bool showAttachments;
int texture;
float textureScale;
int skin;
bool mirror;
bool useStencil; // if 3dfx fullscreen set false
// animation
int sequence;
float speedScale;
// bodyparts and bonecontrollers
int submodels[32];
float controllers[8];
// fullscreen
int width, height;
bool use3dfx;
bool cds;
// colors
float bgColor[4];
float lColor[4];
float gColor[4];
// misc
int textureLimit;
bool pause;
// only used for fullscreen mode
char modelFile[256];
char backgroundTexFile[256];
char groundTexFile[256];
} ViewerSettings;
extern ViewerSettings g_viewerSettings;
#ifdef __cplusplus
extern "C" {
#endif
void InitViewerSettings (void);
int LoadViewerSettings (const char *filename);
int SaveViewerSettings (const char *filename);
#ifdef __cplusplus
}
#endif
#endif // INCLUDED_VIEWERSETTINGS
|