RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
constants.h
Go to the documentation of this file.
1 //--------------------------------------------------------------- @License begins
2 // RioEngine: The late night Coke -without whores- debugging sessions
3 // 2012-2015 Leopoldo Lomas Flores. Torreon, Coahuila. MEXICO
4 // leopoldolomas [at] gmail
5 // www.rioengine.com
6 // www.leopoldolomas.info
7 // "You have a problem, you face it like a man."
8 //
9 // This is free and unencumbered software released into the public domain.
10 //
11 // Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
12 // software, either in source code form or as a compiled binary, for any purpose,
13 // commercial or non-commercial, and by any means.
14 //
15 // In jurisdictions that recognize copyright laws, the author or authors of this
16 // software dedicate any and all copyright interest in the software to the public
17 // domain. We make this dedication for the benefit of the public at large and to
18 // the detriment of our heirs and successors. We intend this dedication to be
19 // an overt act of relinquishment in perpetuity of all present and future
20 // rights to this software under copyright law.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS
24 // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
26 // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 //--------------------------------------------------------------- @License ends
29 
30 #ifndef RIOENGINE_CONSTANTS_H_
31 #define RIOENGINE_CONSTANTS_H_
32 
33 static const char* k_RioEngineProjectPath = "G:\\rioengine\\";
34 static const char* k_CSoundPlayer_SoundsFolderName = "sound";
35 static const char* k_QGLViewport_ShadersFolderName = "shaders";
36 
40 static const char* k_CGameScene_DefaultExt = "rioscene";
41 
45 static const char* k_CLScene_SkyboxNodeId = "Skybox";
46 
50 static const float k_CLRenderManager_ManipulatorsScaleValue = 1.0f;
51 
55 static const int k_CLScene_MD5MaxCharactersCount = 4;
56 
57 static const float k_CLMesh_MaxAxisLength = 10.0f;
58 static const float k_QGLGameViewport_WorldAxisLength = 10000.0f;
59 static const int k_bdebugdraw_DefaultDebugMode = 22735;
60 static const float k_QGLGameViewport_CrosshairXLength = 0.01f;
61 static const float k_QGLGameViewport_CrosshairYLength = 0.016f;
62 
63 // ---------------------------------------- QGLViewport
67 static const float k_QGLViewport_fovYAngle = 45.0f;
68 
72 static const float k_QGLViewport_zNear = 0.01f;
73 
77 static const float k_QGLViewport_zFar = 10000.0f;
78 
79 // ---------------------------------------- InputManager
80 
84 static const int k_KEYS_LENGTH = 110;
85 
89 static const int k_MBUTTONS_LENGTH = 3;
90 
94 static const int k_JOYBUTTONS_LENGTH = 15;
95 
96 static const float k_InputManager_MouseSensitivity = 0.12f;
97 
98 // ---------------------------------------- QGLGameEditorViewport
99 
100 static const float k_QGLGameEditorViewport_SizeFactor = 0.2f;
101 
105 static const char* k_CDirector_DefaultCameraId = "default_camera";
106 
110 static const char* k_QGLGameEditorViewport_CameraId = "__EditorCamera__";
111 
112 static const float k_QGLGameEditorViewport_Camera_DefaultPosX = 0.0f;
113 static const float k_QGLGameEditorViewport_Camera_DefaultPosY = 0.5f;
114 static const float k_QGLGameEditorViewport_Camera_DefaultPosZ = 4.0f;
115 
119 static const float k_QGLGameEditorViewport_CameraSpeed_Level1 = 2.0f;
120 static const float k_QGLGameEditorViewport_CameraSpeed_Level2 = 4.0f;
121 static const float k_QGLGameEditorViewport_CameraSpeed_Level3 = 10.0f;
122 static const float k_QGLGameEditorViewport_DefaultCameraDisplacement = 0.02f;
123 
124 // ---------------------------------------- Time
125 
126 static const float k_Time_DeltaTimeMaxValue = 1.0f;
127 
128 // ---------------------------------------- MatrixStack
129 
130 static const int k_MatrixStack_MaxSize = 32;
131 
132 #endif // RIOENGINE_CONSTANTS_H_