zenilib: zenilib/jni/external/zenilib/zeni/Zeni/Define.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Define.h
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2 * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3 *
4 * zenilib is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * zenilib is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef ZENI_DEFINE_H
19 #define ZENI_DEFINE_H
20
21 // Old SDL stuff
22 #define SDL_DEFAULT_REPEAT_DELAY 500
23 #define SDL_DEFAULT_REPEAT_INTERVAL 30
24
25 // Camera.h
26 #define ZENI_DEFAULT_CAMERA_POSITION (Point3f(0.0f, 0.0f, 0.0f))
27 #define ZENI_DEFAULT_CAMERA_ORIENTATION Quaternion()
28 #define ZENI_DEFAULT_CAMERA_NEAR_CLIP (10.0f)
29 #define ZENI_DEFAULT_CAMERA_FAR_CLIP (1000.0f)
30 #define ZENI_DEFAULT_CAMERA_FOV (Global::pi / 2)
31 #define ZENI_DEFAULT_CAMERA_TUNNEL_VISION (1.0f)
32 #define ZENI_DEFAULT_FORWARD_VECTOR (Vector3f(1.0f, 0.0f, 0.0f))
33 #define ZENI_DEFAULT_UP_VECTOR (Vector3f(0.0f, 0.0f, 1.0f))
34 #define ZENI_DEFAULT_LEFT_VECTOR (Vector3f(0.0f, 1.0f, 0.0f) /* UP % FORWARD */)
35
36 // Fog.h
37 #define ZENI_DEFAULT_FOG_COLOR (Color(1.0f, 1.0f, 1.0f, 1.0f))
38 #define ZENI_DEFAULT_FOG_DENSITY (0.01f)
39 #define ZENI_DEFAULT_FOG_TYPE (FOG_EXP)
40 #define ZENI_DEFAULT_FOG_START (10.0f)
41 #define ZENI_DEFAULT_FOG_END (1000.0f)
42
43 // Material.h
44 #define ZENI_DEFAULT_MATERIAL_DIFFUSE (Color(1.0f, 1.0f, 1.0f, 1.0f))
45 #define ZENI_DEFAULT_MATERIAL_SPECULAR (Color(1.0f, 0.2f, 0.2f, 0.2f))
46 #define ZENI_DEFAULT_MATERIAL_EMISSIVE (Color(1.0f, 0.0f, 0.0f, 0.0f))
47 #define ZENI_DEFAULT_MATERIAL_POWER (1.0f)
48
49 // Net.h
50 #define ZENI_DEFAULT_CHUNK_SIZE (64u)
51 #define ZENI_DEFAULT_CHUNK_SETS (64u)
52
53 // Sound_Source.h
54 #define ZENI_DEFAULT_PITCH (1.0f)
55 #define ZENI_DEFAULT_GAIN (1.0f)
56 #define ZENI_DEFAULT_REFERENCE_DISTANCE (10.0f)
57 #define ZENI_DEFAULT_MAX_SOUND_DISTANCE (1000.0f)
58 #define ZENI_DEFAULT_ROLLOFF (1.0f)
59 #define ZENI_DEFAULT_SOUND_PRIORITY (1024)
60 #define ZENI_DEFAULT_MUSIC_PRIORITY (4096)
61
62 // Widget.h
63 #define ZENI_DEFAULT_SLIDER_POSITION (0.5f)
64 #define ZENI_DEFAULT_TAB_SPACES (5)
65 #define ZENI_DEFAULT_JUSTIFY (ZENI_LEFT)
66 #define ZENI_DEFAULT_TEXTBOX_EDITABLE (false)
67
68 // Widget.cpp
69 #define ZENI_TEXT_CURSOR_WIDTH (0.05f)
70
71 // Video.hxx
72 #define ZENI_2D_NEAR (-1.0f)
73 #define ZENI_2D_FAR (1.0f)
74
75 // Video_DX9.hxx
76 #define ZENI_STANDARD_DPI (96.0f)
77
78 // Collision.cpp
79 #define ZENI_COLLISION_EPSILON (0.0001f)
80
81 // Configurator_Video.cpp
82 #define ZENI_REVERT_TIMEOUT 15
83
84 // Font.cpp
85 #define MINIMUM_VIRTUAL_SCREEN_HEIGHT (240.0f)
86 #define MAXIMUM_VIRTUAL_SCREEN_HEIGHT (9600.0f)
87
88 // Game.cpp
89 #define NASTY_MIN_RATE (0.5f)
90 #define NASTY_MAX_RATE (2.0f)
91 #define NASTY_RATE_CUTOFF (10)
92 #define NASTY_ZERO_STEP_FREQUENCY (10)
93
94 // Gamestate.cpp
95 #define ZENI_DEFAULT_II_JOYBALL_MIN (1)
96 #define ZENI_DEFAULT_II_JOYBALL_MAX (100)
97 #define ZENI_DEFAULT_II_JOYSTICK_MIN (0.1f)
98 #define ZENI_DEFAULT_II_JOYSTICK_MAX (1.0f)
99 #define ZENI_DEFAULT_II_MOUSE_MIN (1)
100 #define ZENI_DEFAULT_II_MOUSE_MAX (100)
101
102 // Material.cpp
103 #define ZENI_DIFFUSE_TO_SPECULAR(d) (Color(d.a, 0.5f * d.r + 0.5f, 0.5f * d.g + 0.5f, 0.5f * d.b + 0.5f))
104
105 // Net_Primitives.cpp
106 #define ZENI_SPRINTF_BUFFER_SIZE (64)
107
108 // Texture.cpp
109 #define ZENI_MAX_TEXTURE_WIDTH (2048)
110 #define ZENI_MAX_TEXTURE_HEIGHT (2048)
111
112 // Thread.cpp
113 #define NO_ERROR_STATUS (1)
114 #define ZENI_ERROR_STATUS (0x32202)
115 #define STD_ERROR_STATUS (0x253322)
116 #define OTHER_ERROR_STATUS (-1)
117
118 // Vertex_Buffer.cpp
119 #define CLOSENESS_THRESHOLD_SQUARED (0.00001f)
120 #define ALIKENESS_THRESHOLD (0.95f)
121 #define CLOSENESS_THRESHOLD (0.001f)
122
123 // Video.cpp
124 #define FAILSAFE_SCREEN_WIDTH (640)
125 #define FAILSAFE_SCREEN_HEIGHT (480)
126 #define MINIMUM_SCREEN_WIDTH (320)
127 #define MINIMUM_SCREEN_HEIGHT (200)
128
129 // Nasty Conditions
130 #define NASTY_SOUND_SOURCE_CAP (24lu)
131
132 // Miscellaney
133 #define END_OF_TIME (42)
134 #define INFINTESSIMAL(x) (fabs(x) < 0.001f)
135 #define INFINTESSIMAL_SQUARED(x) ((x) < 0.0001f)
136
137 #endif