Setup.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #ifndef __SETUP_
  2. #define __SETUP_
  3. #define POCETLISTU 8
  4. #define POCETKLAVES 128
  5. #define POCETAKTICNICHKLAVES 40
  6. typedef struct
  7. {
  8. char no_sound;
  9. char no_menu;
  10. char camera_type;
  11. char log_file[256];
  12. int xres;
  13. int yres;
  14. char bpp;
  15. char fullscreen;
  16. char ditering;
  17. char barva_pozadi; //TF
  18. char strip; //TF
  19. char typ_mlhy; //0 = vertex, 1 - pixel
  20. char text_detail; //Texture-level - Uroven detailu textur (0 = max)
  21. char text_detail_light; //Uroven detailu textur lightmap (0 = max)
  22. char text_kvalita; //OpenGL - Nice = 1/Fast = 0 TF
  23. char text_komprese; //Komprese do DXT formatu, pokud to karta povoluje TF
  24. char text_mip_mapping; //Generovat pro startu mip-mapy + jejich povoleni TF
  25. char text_mip_filtr; //Filtr mip-map 0 - linearni/1 - trilinearni TF
  26. char text_bpp; //Hloubka textur 16/32 bitu
  27. char text_perspective; //Perspektivni korekce textur TF
  28. char channels;
  29. long pre_load;
  30. char soundvolume;
  31. char musicvolume;
  32. char ambientvolume;
  33. int key[POCETKLAVES];
  34. char bitmap_dir[256];
  35. char data_dir[256];
  36. char prvky_dir[256];
  37. char level_dir[256];
  38. char out_dir[256];
  39. char texture_dir[256];
  40. char material_dir[256];
  41. char game_level_dir[256];
  42. char scene_dir[256];
  43. char game_data_dir[256];
  44. char music_dir[256];
  45. char sound_dir[256];
  46. char save_dir[256];
  47. char e_ditering;
  48. char mazat_dummy;
  49. char kolize_materialu;
  50. char load_prvky;
  51. char load_textury;
  52. char load_default_materialy;
  53. char default_materialy[256];
  54. char obalky_kontejner;
  55. char obalky_objekt;
  56. char berusky_hra[256];
  57. char e_log_file[256];
  58. char debug_vypisy;
  59. char debug_light;
  60. char pohled_berusky;
  61. char kvalita_castic;
  62. char kvalita_casticv;
  63. char kvalita_casticp;
  64. char ovladani;
  65. char debug_fps;
  66. char lista_prvku;
  67. char berusky_hra_dir[256];
  68. char debug_draty;
  69. char sada[20][256];
  70. char posouvat_kameru;
  71. char extra_light_vertex;
  72. float text_ostrost;
  73. float p_kamera_alfa;
  74. float p_kamera_radius;
  75. char init_visibility;
  76. char cursor[32];
  77. char text_bpp_plocha;
  78. char hires_textury;
  79. char menu_vram_load;
  80. char zrcado_aktivni;
  81. char debug_kamery;
  82. char text_ans;
  83. float text_ans_level;
  84. char bump_mapping;
  85. int bump_mapping_typ;
  86. int text_detail2;
  87. int text_detail3;
  88. int light_dyn;
  89. int light_rychlost;
  90. int text_bump2;
  91. int text_bump3;
  92. int scene_materialy;
  93. int text_ans_stupen;
  94. int vertex_arrays;
  95. int start_zpruhlednovani;
  96. int start_zvyraznovani;
  97. int ovladani_rohy;
  98. int ovladani_rohy_default;
  99. int ovladani_rohy_smer;
  100. float ovladani_rohy_rychlost;
  101. int ovladani_pr_posun;
  102. int animace_okoli;
  103. int general_3d;
  104. char camera_intro;
  105. } SETUP;
  106. typedef struct
  107. {
  108. DWORD x;
  109. DWORD y;
  110. DWORD bpp;
  111. DWORD freq;
  112. } ROZLISENI;
  113. void Load_ini(void);
  114. void Save_ini(void);
  115. int GetResCombobox(ROZLISENI * p_roz, int roz_size);
  116. #endif