00001 /* 00002 00003 Copyright (c) 2009-2010 Magnus Andersson 00004 00005 Permission is hereby granted, free of charge, to any person obtaining a copy 00006 of this software and associated documentation files (the "Software"), to deal 00007 in the Software without restriction, including without limitation the rights 00008 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00009 copies of the Software, and to permit persons to whom the Software is 00010 furnished to do so, subject to the following conditions: 00011 00012 The above copyright notice and this permission notice shall be included in 00013 all copies or substantial portions of the Software. 00014 00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00018 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00019 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00020 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00021 THE SOFTWARE. 00022 00023 */ 00024 00025 /* 00026 * 00027 * Run "doxygen $RENDERCHIMP$/doc/doxy" to generate HTML documentation. 00028 * 00029 */ 00030 00031 /*===========================================================================*/ 00032 00033 /* 00034 * _ 00035 * c " -[ RenderChimp ]- 00036 * (- 00037 * 00038 * 00039 */ 00040 00041 /*===========================================================================*/ 00042 00043 00044 /*===========================================================================*/ 00045 00046 #ifndef RC_RENDERCHIMP_H 00047 #define RC_RENDERCHIMP_H 00048 00049 00050 /*================================================[ Target architecture ]====*/ 00051 00052 /* 00053 * Target platform 00054 * 00055 * Only uncomment one of the possible platforms listed below. 00056 * RC_WIN32 - 32-bit Windows build flag 00057 * RC_MACOSX - 32-bit MacOS X build flag (NOT YET SUPPORTED!) 00058 * RC_IPHONE - iPhone build flag (ONLY MARGINALLY SUPPORTED!) 00059 */ 00060 #define RC_WIN32 00061 /* #define RC_MACOSX */ 00062 /* #define RC_IPHONE */ 00063 00064 /* 00065 * This determines the OpenGL version target. RC can only be built for one 00066 * OpenGL target at a time, so only uncomment one of the defines listed below. 00067 * 00068 */ 00069 //#define RC_OPENGL_ES_20 00070 //#define RC_OPENGL_20 00071 //#define RC_CUDA_TRACER 00072 00073 /* 00074 * Either use GLUT or SDL 00075 * 00076 */ 00077 #define RC_SDL 00078 //#define RC_GLUT 00079 00080 #define RC_SSE_VERSION 0 00081 00082 /*============================================[ Debugging and profiling ]====*/ 00083 00084 /* Memory debug 00085 * 00086 * Enable definition to debug memory. 00087 * This will enable tracking and validation of all memory allocated on the 00088 * heap (at enormous expense of performance). Not fool proof, but pretty good. 00089 */ 00090 //#define RC_MEMORY_DEBUG 00091 00092 /* Assert 00093 * 00094 * Enable definition to run ASSERT-statements. 00095 * Disable this for final release for a small boost in performance. Your code 00096 * must be correct if this is disabled, or errors and warnings will produce 00097 * much nastier crashes if they are not caught. 00098 */ 00099 //#define RC_ENABLE_ASSERT 00100 00101 /* Log to file 00102 * 00103 * If this definition is enabled warnings, errors and memory debug info will 00104 * be written to log.txt and mem.txt respectively. If this is disabled only 00105 * standard output will be used to log this information. 00106 */ 00107 #define RC_LOG_TO_FILE 00108 00109 /* Log frenzy 00110 * 00111 * Log everything to everywhere... 00112 */ 00113 #define RC_LOG_FRENZY 00114 00115 00116 /*=========================================================[ Tweakables ]====*/ 00117 00118 #define RC_DEFAULT_DISPLAY_WIDTH 1024 00119 #define RC_DEFAULT_DISPLAY_HEIGHT 768 00120 00121 #define RC_MAX_ATTRIBS 16 00122 00123 /*==============================================================[ Paths ]====*/ 00124 00125 #define RC_SHADER_PATH "res/shaders/" 00126 #define RC_TEXTURE_PATH "res/textures/" 00127 #define RC_CUBEMAP_PATH "res/textures/" 00128 #define RC_SCENE_PATH "res/scenes/" 00129 #define RC_FONT_PATH "res/fonts/" 00130 00131 /*===========================================================================*/ 00132 00133 #include "Resolve.h" 00134 00135 /*===========================================================================*/ 00136 00137 i32 RCMain(); 00138 i32 RCRun(); 00139 void RCEnd(); 00140 00141 #endif /* RC_RENDERCHIMP_H */ 00142 00143 /*===========================================================================*/