www.pudn.com > map_editor.rar > global.h
#ifndef MAP_EDITOR #define MAP_EDITOR #endif #ifndef __GLOBAL_H__ #define __GLOBAL_H__ #define true 1 #define false 0 #ifdef WINDOWS #include#endif #include #include #include #include #include #include "../elc/platform.h" #ifndef min #define min(x, y) (x y?x:y) #endif //max #include #include #ifdef LINUX #include #include "gui.h" #include "gui_callbacks.h" #include "gui_support.h" #endif #ifdef ZLIB #include #endif #include "../elc/cache.h" #include "../elc/translate.h" #include "../elc/elconfig.h" #include "../elc/colors.h" #include "errors.h" #include "init.h" #include "e3d.h" #include "2d_objects.h" #include "3d_objects.h" #include "tiles.h" #include "lights.h" #include "interface.h" #include "editor.h" #include "map_io.h" #include "shadows.h" #include "reflection.h" #include "draw_scene.h" #include "browser.h" #include "events.h" #include "frustum.h" #include "../elc/client_serv.h" #include "../elc/textures.h" #include "font.h" #include "elwindows.h" #include "o3dow.h" #include "replace_window.h" #include "edit_window.h" #include "../elc/particles.h" #include "particles_window.h" #include "gl_init.h" #define sector_size_x 15 #define sector_size_y 15 extern int map_meters_size_x; extern int map_meters_size_y; extern int elwin_mouse; extern int window_width; extern int window_height; extern int bpp; extern Uint32 cur_time, last_time; extern float camera_x_end_point; extern float camera_z_end_point; extern int last_texture; extern float gcr,gcg,gcb; //debug extern int texture2; extern int texture3; //end of debug extern Uint8 *e3d_file_mem; extern Uint8 *handle_e3d_file_mem; extern int have_multitexture; extern int have_arb_compression; extern int have_s3_compression; extern int poor_man; extern int ground_detail_text; extern float clouds_movement_u; extern float clouds_movement_v; extern Uint32 last_clear_clouds; extern float texture_scale; extern int clouds_shadows; extern int icons_text; extern int video_mode; extern int auto_save_time; extern int limit_fps; #ifndef LINUX //extensions extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB; extern PFNGLMULTITEXCOORD2FVARBPROC glMultiTexCoord2fvARB; extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB; extern PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB; #endif #ifndef POINT_SIZE_MIN_ARB #define POINT_SIZE_MIN_ARB 0x8126 #endif #ifndef COMPRESSED_RGBA_ARB #define COMPRESSED_RGBA_ARB 0x84EE #endif #ifndef COMPRESSED_RGBA_S3TC_DXT5_EXT #define COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 #endif #define CHECK_GL_ERRORS() //NOP #endif