dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
unilayer
src
unilayer/src/config.h
Go to the documentation of this file.
1
2
#ifndef CONFIG_H
3
#define CONFIG_H
4
10
/* Do platform tests first, so they can force options below if they need to. */
11
12
#ifdef PLATFORM_WEB
13
#define PLATFORM_GL
14
#endif
/* PLATFORM_WEB */
15
16
#if 0
17
#ifndef NO_RESEXT
18
#include <resext.h>
19
#endif
20
#endif
21
22
/* ------ */
23
#ifdef PLATFORM_DOS
24
/* ------ */
25
26
/* ------ */
27
#elif defined( PLATFORM_SDL )
28
/* ------ */
29
30
/* ------ */
31
#elif defined( PLATFORM_XLIB )
32
/* ------ */
33
34
/* ------ */
35
#elif defined( PLATFORM_PALM )
36
/* ------ */
37
38
/*
39
#include <PalmOS.h>
40
41
#define stringify_line( line ) #line
42
43
#define assert( test ) ErrFatalDisplayIf( !(test), __FILE__ ": " stringify_line( __LINE__ ) ": assert failure" ) */
44
45
/* ------ */
46
#elif defined( PLATFORM_WIN16 )
47
/* ------ */
48
49
#define PLATFORM_WIN
50
51
/* ------ */
52
#elif defined( PLATFORM_WINCE )
53
/* ------ */
54
55
#define PLATFORM_WIN
56
57
/* ------ */
58
#elif defined( PLATFORM_WIN32 )
59
/* ------ */
60
61
#define PLATFORM_WIN
62
63
/* ------ */
64
#elif defined( PLATFORM_MAC6 )
65
/* ------ */
66
67
/* ------ */
68
#elif defined( PLATFORM_NDS )
69
/* ------ */
70
71
/* ------ */
72
#elif defined( PLATFORM_GL )
73
/* ------ */
74
75
/* ------ */
76
#endif
/* PLATFORM_DOS, PLATFORM_SDL, PLATFORM_PALM, PLATFORM_WIN16 */
77
/* ------ */
78
83
#ifndef WINDOWS_MAX
85
#define WINDOWS_MAX 100
86
#endif
/* !WINDOWS_MAX */
87
88
#ifndef WINDOW_PADDING_OUTSIDE
90
#define WINDOW_PADDING_OUTSIDE 10
91
#endif
/* !WINDOW_PADDING_OUTSIDE */
92
93
#ifndef WINDOW_PADDING_INSIDE
95
#define WINDOW_PADDING_INSIDE 2
96
#endif
/* !WINDOW_PADDING_INSIDE */
97
98
#ifndef WINDOW_SPRITE_W
99
#define WINDOW_SPRITE_W 16
100
#endif
/* !WINDOW_SPRITE_W */
101
102
#ifndef WINDOW_SPRITE_H
103
#define WINDOW_SPRITE_H 16
104
#endif
/* !WINDOW_SPRITE_H */
105
106
#ifndef WINDOW_PATTERN_W
107
#define WINDOW_PATTERN_W 16
108
#endif
/* !WINDOW_PATTERN_W */
109
110
#ifndef WINDOW_PATTERN_H
111
#define WINDOW_PATTERN_H 16
112
#endif
/* !WINDOW_PATTERN_H */
113
116
#ifndef UNILAYER_WINDOW_CLASS
117
#define UNILAYER_WINDOW_CLASS UNILAYER_PROJECT_NAME
118
#endif
/* !UNILAYER_WINDOW_CLASS */
119
120
#ifndef UNILAYER_WINDOW_TITLE
121
#define UNILAYER_WINDOW_TITLE UNILAYER_PROJECT_NAME
122
#endif
/* !UNILAYER_WINDOW_TITLE */
123
124
#ifndef JSON_BUFFER_SZ
125
#define JSON_BUFFER_SZ 8192
126
#endif
/* !JSON_BUFFER_SZ */
127
128
#ifndef SCREEN_SCALE
129
#define SCREEN_SCALE 1
130
#endif
/* !SCREEN_SCALE */
131
132
#ifndef ANIMATE_ANIMATIONS_MAX
133
#define ANIMATE_ANIMATIONS_MAX 5
134
#endif
/* !ANIMATE_ANIMATIONS_MAX */
135
136
#ifndef ANIMATE_FRAMES_MAX
137
#define ANIMATE_FRAMES_MAX 5
138
#endif
/* !ANIMATE_FRAMES_MAX */
139
140
#ifndef FPS
141
#define FPS 20
142
#endif
/* !FPS */
143
144
#ifndef MEMORY_FAKE_HEAP_SZ
145
#define MEMORY_FAKE_HEAP_SZ 112500
146
#endif
/* !MEMORY_FAKE_HEAP_S */
147
148
#ifndef DIO_READ_FILE_BLOCK_SZ
149
#define DIO_READ_FILE_BLOCK_SZ 4096
150
#endif
/* !DIO_READ_FILE_BLOCK_SZ */
151
152
#ifndef NAMEBUF_MAX
153
#define NAMEBUF_MAX 255
154
#endif
/* !NAMEBUF_MAX */
155
156
#ifndef RESOURCE_PATH_MAX
157
#define RESOURCE_PATH_MAX 48
158
#endif
/* !RESOURCE_PATH_MAX */
159
160
#ifndef DEBUG_THRESHOLD
161
#define DEBUG_THRESHOLD 2
162
#endif
/* !DEBUG_THRESHOLD */
163
164
#ifndef DIRTY_THRESHOLD
165
#define DIRTY_THRESHOLD 3
166
#endif
/* !DIRTY_THRESHOLD */
167
168
#ifndef FAKE_HEAP_SIZE
169
#define FAKE_HEAP_SIZE 524288
170
#endif
/* !FAKE_HEAP_SIZE */
171
172
#ifndef DIO_PATH_MAX
173
#define DIO_PATH_MAX 254
174
#endif
/* !DIO_PATH_MAX */
175
176
#ifndef INPUT_BLOCK_DELAY
177
#define INPUT_BLOCK_DELAY 5
178
#endif
/* !INPUT_BLOCK_DELAY */
179
180
#ifndef GRAPHICS_CACHE_INITIAL_SZ
181
#define GRAPHICS_CACHE_INITIAL_SZ 50
182
#endif
/* !GRAPHICS_CACHE_INITIAL_SZ */
183
184
#ifndef GRAPHICS_SPRITES_ONSCREEN
185
#define GRAPHICS_SPRITES_ONSCREEN 30
186
#endif
/* GRAPHICS_SPRITES_ONSCREEN */
187
188
/* Graphics Parameters */
189
190
#define FONT_W 8
191
#define FONT_H 8
192
#define FONT_SPACE 0
193
194
#endif
/* CONFIG_H */
195
Generated by
1.9.6