00001
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #pragma once
00035
00036 #define K_STR_ERROR "error"
00037
00038 #define K3D_STR_SHARE_PATH "/.k3dengine/"
00039 #define K3D_STR_CONF "engine_conf.lua"
00040 #define K3D_STR_INI "K3dEngineIni.lua"
00041 #define K_STR_VAR_SCRIPT "global_var_script.lua"
00042 #define K_STR_DOT_LUA ".lua"
00043
00044 #define K_STR_OBJ_ID "ObjId"
00045 #define K_STR_IMAGE_ID "IMAGE_ID"
00046 #define K_STR_SPHERE_ID "SPHERE_ID"
00047 #define K_STR_CAMERA_ID "CAMERA_ID"
00048 #define K_STR_LINE_ID "LINE_ID"
00049 #define K_STR_RAY_ID "RAY_ID"
00050 #define K_STR_PLANE_ID "PLANE_ID"
00051 #define K_STR_NUM_OBJ_IDS "NUM_OBJ_IDS"
00052
00053 #define K_STR_GRAPHICS "Graphics"
00054 #define K_STR_FULLSCREEN "FullScreen"
00055 #define K_STR_SCREENWIDTH "ScreenWidth"
00056 #define K_STR_SCREENHEIGHT "ScreenHeight"
00057 #define K_STR_COLORBITS "ColorBits"
00058 #define K_STR_FLAGS "Flags"
00059 #define K_WIN_FLAGS SDL_FULLSCREEN|SDL_HWSURFACE
00060 #define K_STR_WIN_FLAGS "SDL_FULLSCREEN|SDL_HWSURFACE"
00061 #define K_STR_NEAR "Near"
00062 #define K_STR_FAR "Far"
00063 #define K_STR_FOVY "Fovy"
00064 #define K_NUM_GRAPHICS 8
00065
00066 #define K_STR_TEXTURE "Texture"
00067 #define K_STR_LIGHTMAP "Lightmap"
00068 #define K_STR_LINEAR "Linear"
00069 #define K_STR_MIPMAP "Mipmap"
00070 #define K_STR_MULTITEXTURE "Multitexture"
00071 #define K_STR_GAMMA "Gamma"
00072
00073 #define K_STR_FONTBMP "FontBmp"
00074 #define K_STR_FONT "Font"
00075 #define K_STR_ITALIC "Italic"
00076 #define K_STR_DRAWFPS "DrawFps"
00077 #define K_STR_DRAW_CAM_POS "DrawCamPos"
00078 #define K_STR_DRAW_NUM_FACES "DrawNumFaces"
00079
00080 #define K_STR_SCRIPT "Script"
00081 #define K_STR_DEFAULT "Default"
00082
00083 #ifndef K_WIN32
00084
00085 #endif
00086
00087 #define K_STR_NUM_2DIMAGES "num_2d_images"
00088 #define K_STR_NAME "name"
00089 #define K_STR_IMAGE_TEXTURE "texture"
00090 #define K_STR_IMAGE2D "image_2d"
00091 #define K_STR_RECTANGLE_X "rectangle_x"
00092 #define K_STR_RECTANGLE_Y "rectangle_y"
00093 #define K_STR_BLEND "blend"
00094
00095 #define K_STR_NUM_FACES "num_faces"
00096 #define K_STR_FIRST_FACE "first_face"
00097 #define K_STR_FACE "face"
00098
00099 #define K_STR_NUM_BLOCKS "num_blocks"
00100 #define K_STR_BLOCK "block"
00101
00102 #define K_STR_NUM_LINES "num_lines"
00103 #define K_STR_LINE "line"
00104 #define K_STR_ORIG_X "orig_x"
00105 #define K_STR_ORIG_Y "orig_y"
00106 #define K_STR_ORIG_Z "orig_z"
00107 #define K_STR_DIRECT_X "direct_x"
00108 #define K_STR_DIRECT_Y "direct_y"
00109 #define K_STR_DIRECT_Z "direct_z"
00110 #define K_STR_WIDTH "width"
00111
00112 #define K_STR_NUM_RAYS "num_rays"
00113 #define K_STR_RAY "ray"
00114
00115
00116 #define K_STR_NUM_SPHERES "num_spheres"
00117 #define K_STR_SPHERE "sphere"
00118 #define K_STR_RADIUS "radius"
00119
00120 #define K_STR_NUM_PLANES "num_planes"
00121 #define K_STR_PLANE "plane"
00122 #define K_STR_HEIGHT "height"
00123 #define K_STR_NUM_SLICES "num_slices"
00124 #define K_STR_NUM_STACKS "num_stacks"
00125
00126 #define K_STR_NUM_TRIANGLES "num_triangles"
00127 #define K_STR_TRIANGLE "triangle"
00128 #define K_STR_VERTEX_A "vertex_a"
00129 #define K_STR_VERTEX_B "vertex_b"
00130 #define K_STR_VERTEX_C "vertex_c"
00131 #define K_STR_R "r"
00132 #define K_STR_G "g"
00133 #define K_STR_B "b"
00134
00135 #define K_STR_NUM_VERTICES "num_vertices"
00136 #define K_STR_FIRST_VERTEX "first_vertex"
00137 #define K_STR_VERTEX "vertex"
00138 #define K_STR_POS_X "pos_x"
00139 #define K_STR_POS_Y "pos_y"
00140 #define K_STR_POS_Z "pos_z"
00141 #define K_STR_COORD_X "coord_x"
00142 #define K_STR_COORD_Y "coord_y"
00143 #define K_STR_NORMAL_X "normal_x"
00144 #define K_STR_NORMAL_Y "normal_y"
00145 #define K_STR_NORMAL_Z "normal_z"
00146
00147 #define K_STR_NUM_CAMERAS "num_cameras"
00148 #define K_STR_ACTIVECAMERA_ID "active_camera_id"
00149 #define K_STR_CAMERA "camera"
00150 #define K_STR_ROT_X "rot_x"
00151 #define K_STR_ROT_Y "rot_y"
00152 #define K_STR_ROT_Z "rot_z"
00153 #define K_STR_MOUSEMOVE "mouse_move"
00154 #define K_STR_DESCENT "descent"
00155 #define K_STR_FIRST_PERSON "first_person"
00156 #define K_STR_SPECTATE "spectate"
00157 #define K_STR_SPEED "speed"
00158
00159 #define K_STR_NUM_TEXTURES "num_textures"
00160 #define K_STR_TEXTURE_TABLE "texture"
00161 #define K_STR_PATH "path"
00162
00163 #define K_STR_NUM_BMP_FONTS "num_bmp_fonts"
00164 #define K_STR_BMPFONT "bmp_font"
00165
00166 #define K_STR_GO_FORWARD "GoForward"
00167 #define K_STR_GO_BACKWARD "GoBackward"
00168 #define K_STR_GO_UP "GoUp"
00169 #define K_STR_GO_DOWN "GoDown"
00170 #define K_STR_STRAFE_LEFT "StrafeLeft"
00171 #define K_STR_STRAFE_RIGHT "StrafeRight"
00172 #define K_STR_LURCH_LEFT "LurchLeft"
00173 #define K_STR_LURCH_RIGHT "LurchRight"
00174 #define K_STR_TURN_LEFT "TurnLeft"
00175 #define K_STR_TURN_RIGHT "TurnRight"
00176 #define K_STR_TURN_UP "TurnUp"
00177 #define K_STR_TURN_DOWN "TurnDown"
00178
00179 #define K_STR_KEY_MAP "KeyMap"
00180 #define K_STR_ESC "esc"
00181 #define K_STR_A "a"
00182 #define K_STR_B "b"
00183 #define K_STR_C "c"
00184 #define K_STR_D "d"
00185 #define K_STR_E "e"
00186 #define K_STR_F "f"
00187 #define K_STR_G "g"
00188 #define K_STR_H "h"
00189 #define K_STR_I "i"
00190 #define K_STR_J "j"
00191 #define K_STR_K "k"
00192 #define K_STR_L "l"
00193 #define K_STR_M "m"
00194 #define K_STR_N "n"
00195 #define K_STR_O "o"
00196 #define K_STR_P "p"
00197 #define K_STR_Q "q"
00198 #define K_STR_R "r"
00199 #define K_STR_S "s"
00200 #define K_STR_T "t"
00201 #define K_STR_U "u"
00202 #define K_STR_V "v"
00203 #define K_STR_W "w"
00204 #define K_STR_X "x"
00205 #define K_STR_Y "y"
00206 #define K_STR_Z "z"
00207 #define K_STR_1 "1"
00208 #define K_STR_2 "2"
00209 #define K_STR_3 "3"
00210 #define K_STR_4 "4"
00211 #define K_STR_5 "5"
00212 #define K_STR_6 "6"
00213 #define K_STR_7 "7"
00214 #define K_STR_8 "8"
00215 #define K_STR_9 "9"
00216 #define K_STR_ZERO "0"
00217 #define K_STR_F1 "f1"
00218 #define K_STR_F2 "f2"
00219 #define K_STR_F3 "f3"
00220 #define K_STR_F4 "f4"
00221 #define K_STR_F5 "f5"
00222 #define K_STR_F6 "f6"
00223 #define K_STR_F7 "f7"
00224 #define K_STR_F8 "f8"
00225 #define K_STR_F9 "f9"
00226 #define K_STR_F10 "f10"
00227 #define K_STR_F11 "f11"
00228 #define K_STR_F12 "f12"
00229 #define K_STR_LEFT "left"
00230 #define K_STR_RIGHT "right"
00231 #define K_STR_UP "up"
00232 #define K_STR_DOWN "down"
00233 #define K_STR_INSERT "insert"
00234 #define K_STR_DELETE "delete"
00235 #define K_STR_HOME "home"
00236 #define K_STR_END "end"
00237 #define K_STR_PLUS "+"
00238 #define K_STR_MINUS "-"
00239 #define K_STR_MULT "*"
00240 #define K_STR_SPACE "space"
00241 #define K_STR_LSHIFT "lshift"
00242 #define K_STR_RSHIFT "rshift"
00243 #define K_STR_LALT "lalt"
00244 #define K_STR_RALT "ralt"
00245 #define K_STR_LCTRL "lctrl"
00246 #define K_STR_RCTRL "rctrl"
00247 #define K_STR_ENTER "enter"
00248 #define K_STR_BACKSPACE "backspace"
00249 #define K_STR_SPACE "space"
00250 #define K_STR_SLASH "/"
00251 #define K_STR_CONSOLE "~"
00252 #define K_STR_LEFT_BRACKET "["
00253 #define K_STR_RIGHT_BRACKET "]"
00254 #define K_STR_SEMICOLON ";"
00255 #define K_STR_DOT "."
00256 #define K_STR_COMMA ","
00257 #define K_STR_ACUTE "'"
00258 #define K_STR_TAB "tab"
00259 #define K_STR_CAPS_LOCK "capslock"
00260 #define K_STR_PAGE_UP "pageup"
00261 #define K_STR_PAGE_DOWN "pagedown"
00262
00263 #define K_STR_MAPS_PATH "maps/"
00264 #define K_STR_SCRIPT_PATH "scripts/"
00265
00266 #define K_STR_NUM_GUI_WINS "gui_num_wins"
00267 #define K_STR_GUI_WIN "gui_win"
00268 #define K_STR_TOP "top"
00269 #define K_STR_TITLE "title"
00270 #define K_STR_NUM_GUI_IMAGES "gui_num_images"
00271 #define K_STR_GUI_IMAGE "gui_image"
00272 #define K_STR_NUM_GUI_ICONS "gui_num_icons"
00273 #define K_STR_GUI_ICON "gui_icon"
00274
00275 #define K_STR_IMAGE "image"
00276 #define K_STR_NUM_ICONS "num_icons"
00277 #define K_STR_ICON "icon"
00278 #define K_STR_RESIZE_CONTENT "resize_content"
00279 #define K_STR_NUM_GUI_FONTS "gui_num_fonts"
00280 #define K_STR_GUI_FONT "gui_font"
00281 #define K_STR_FONT_LOWER "font"
00282 #define K_STR_GLYPH "glyph"
00283 #define K_STR_NUM_GUI_LABELS "gui_num_labels"
00284 #define K_STR_GUI_LABEL "gui_label"
00285 #define K_STR_CAPTION "caption"
00286 #define K_STR_NUM_GUI_BUTTONS "gui_num_buttons"
00287 #define K_STR_GUI_BUTTON "gui_button"
00288 #define K_STR_NUM_GUI_TEXT_FIELDS "gui_num_text_fields"
00289 #define K_STR_GUI_TEXT_FIELD "gui_text_field"
00290 #define K_STR_TEXT "text"
00291 #define K_STR_NUM_GUI_TEXT_BOXES "gui_num_text_boxes"
00292 #define K_STR_GUI_TEXT_BOX "gui_text_box"
00293 #define K_STR_NUM_GUI_SCROLL_AREAS "gui_num_scroll_areas"
00294 #define K_STR_GUI_SCROLL_AREA "gui_scroll_area"
00295 #define K_STR_CONTENT "content"
00296 #define K_STR_BORDER_SIZE "bordersize"
00297 #define K_STR_NUM_GUI_LIST_MODELS "gui_num_list_models"
00298 #define K_STR_GUI_LIST_MODEL "gui_list_model"
00299 #define K_STR_GUI_NUM_ELEMENTS "num_elements"
00300 #define K_STR_ELEMENT "element"
00301 #define K_STR_NUM_GUI_LIST_BOXES "gui_num_list_boxes"
00302 #define K_STR_GUI_LIST_BOX "gui_list_box"
00303 #define K_STR_GUI_NUM_DROP_DOWN "gui_num_drop_down"
00304 #define K_STR_GUI_DROP_DOWN "gui_drop_down"
00305 #define K_STR_GUI_NUM_CHECK_BOXES "gui_num_check_boxes"
00306 #define K_STR_GUI_CHECK_BOX "gui_check_box"
00307 #define K_STR_GUI_NUM_RADIO_BUTTONS "gui_num_radio_buttons"
00308 #define K_STR_GUI_RADIO_BUTTON "gui_radio_button"
00309 #define K_STR_GROUP "group"
00310 #define K_STR_MARKED "marked"
00311 #define K_STR_NUM_GUI_SLIDERS "gui_num_sliders"
00312 #define K_STR_GUI_SLIDER "gui_slider"
00313 #define K_STR_SCALE_START "scale_start"
00314 #define K_STR_SCALE_END "scale_end"
00315 #define K_STR_NUM_GUI_CONTAINERS "gui_num_containers"
00316 #define K_STR_GUI_CONTAINER "gui_container"
00317 #define K_STR_NUM_SLIDERS "num_sliders"
00318 #define K_STR_SLIDER "slider"
00319 #define K_STR_NUM_LABELS "num_labels"
00320 #define K_STR_LABEL "label"
00321 #define K_STR_NUM_BUTTONS "num_buttons"
00322 #define K_STR_BUTTON "button"
00323 #define K_STR_NUM_TEXTFIELDS "num_text_fields"
00324 #define K_STR_TEXTFIELD "text_field"
00325 #define K_STR_NUM_SCROLL_AREAS "num_scroll_areas"
00326 #define K_STR_SCROLL_AREA "scroll_area"
00327 #define K_STR_NUM_DROP_DOWNS "num_drop_downs"
00328 #define K_STR_DROP_DOWN "drop_down"
00329 #define K_STR_NUM_CHECK_BOXES "num_check_boxes"
00330 #define K_STR_CHECK_BOX "check_box"
00331 #define K_STR_NUM_RADIO_BUTTONS "num_radio_buttons"
00332 #define K_STR_RADIO_BUTTON "radio_button"
00333 #define K_STR_NUM_SLIDERS "num_sliders"
00334 #define K_STR_SLIDER "slider"
00335 #define K_STR_NUM_WINS "num_wins"
00336 #define K_STR_WIN "win"
00337 #define K_STR_MAPS_TEST "./maps/test"
00338 #define K_STR_VISIBLE "visible"
00339 #define K_STR_LOAD_GUI "load_gui"
00340
00341 #define K_STR_RAY_NO_DEF "RayNoDef"
00342 #define K_STR_LINE_NO_DEF "LineNoDef"
00343 #define K_STR_PLANE_NO_DEF "PlaneNoDef"
00344 #define K_STR_SPHERE_NO_DEF "ShpereNoDef"
00345 #define K_STR_CAMERA_NO_DEF "CameraNoDef"
00346 #define K_STR_2D_IMAGE_NO_DEF "2dImageNoDef"
00347 #define K_STR_BMP_FONT_NO_DEF "BmpFontNoDef"
00348 #define K_STR_GUI_NO_DEF "GuiNoDef"
00349 #define K_STR_TEXTURE_NO_DEF "TextureNoDef"
00350 #define K_STR_POLY_NO_DEF "PolyhedronNoDef"
00351 #define K_STR_VERTEX_NO_DEF "VertexNoDef"
00352 #define K_STR_FACE_NO_DEF "FaceNoDef"
00353 #define K_STR_VERTEX_NO_DEF "VertexNoDef"
00354 #define K_STR_TRIANGLE_NO_DEF "TriangleNoDef"
00355 #define K_STR_BLOCK_NO_DEF "BlockNoDef"
00356
00357
00358 #define K_MAX_SCENE_LENGTH 131070
00359 #define K_EQUAL_RANGE 0.001
00360
00361