-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfigUser.h
More file actions
49 lines (33 loc) · 1.1 KB
/
ConfigUser.h
File metadata and controls
49 lines (33 loc) · 1.1 KB
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
#ifndef CONFIGUSER_H
#define CONFIGUSER_H
#include "3dmaths/f3dmath.h"
#include "Pixel.h"
namespace P3D
{
#ifndef __arm__
#define RENDER_STATS
#endif
//Type of a texture and framebuffer pixel.
typedef uint8_t pixel;
typedef Pixel<3,2,3, pixel> pixelType;
inline constexpr int LIGHT_LEVELS = 8;
inline constexpr int FOG_LEVELS = 16;
//Width & height of a texture in pixels.
inline constexpr int TEX_SIZE = 64;
//Maximum UV tiling. Increasing this will reduce bits available for perspective correct texture mapper.
inline constexpr int TEX_MAX_TILE = 8;
inline constexpr int CLIP_GUARD_BAND_SHIFT = 1;
//#define USE_FLOAT
#ifdef USE_FLOAT
typedef double fp;
#else
typedef FP16 fp;
#endif
typedef fp z_val;
inline constexpr int SUBDIVIDE_SPAN_LEN = 16;
//inline constexpr fp SUBDIVIDE_Z_THREASHOLD = fp(5);
inline constexpr fp SUBDIVIDE_Z_THREASHOLD = fp(2);
//#define no_inline __attribute__((noinline))
#define no_inline
}
#endif // CONFIGUSER_H