doomiphone.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /*
  2. Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
  3. Copyright (C) 2009 Id Software, Inc.
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. */
  16. #ifndef _DOOM_IPHONE_H_
  17. #define _DOOM_IPHONE_H_
  18. #include <string.h>
  19. #include <stdarg.h>
  20. #include <assert.h>
  21. #include <setjmp.h>
  22. #include <math.h>
  23. #include <unistd.h>
  24. #include <stdio.h>
  25. #include <dlfcn.h>
  26. #include <dlfcn.h>
  27. #include <time.h>
  28. #include <sys/time.h>
  29. #include <sys/stat.h>
  30. #include <sys/mman.h>
  31. #include <dirent.h>
  32. #include <stdlib.h>
  33. #include <errno.h>
  34. #include <fcntl.h>
  35. #include <pthread.h>
  36. #include <semaphore.h>
  37. #include <sys/socket.h>
  38. #include <netinet/in.h>
  39. #include <sys/ioctl.h>
  40. #include <ifaddrs.h>
  41. #include <OpenGLES/ES1/gl.h>
  42. #include <OpenGLES/ES1/glext.h>
  43. #include "iphone/gles_glue.h"
  44. #include <OpenAL/al.h>
  45. #include <OpenAL/alc.h>
  46. #include <OpenAL/oalStaticBufferExtension.h>
  47. #undef ALCAPI
  48. #define ALCAPI
  49. #undef false
  50. #undef true
  51. #include "prboom/SDL_opengl.h"
  52. // prBoom code
  53. #include "prboom/m_fixed.h"
  54. #include "prboom/doomdef.h"
  55. #include "prboom/doomtype.h"
  56. #include "prboom/doomstat.h"
  57. #include "prboom/d_net.h"
  58. #include "prboom/dstrings.h"
  59. #include "prboom/sounds.h"
  60. #include "prboom/z_zone.h"
  61. #include "prboom/w_wad.h"
  62. #include "prboom/s_sound.h"
  63. #include "prboom/v_video.h"
  64. #include "prboom/f_finale.h"
  65. #include "prboom/f_wipe.h"
  66. #include "prboom/m_argv.h"
  67. #include "prboom/m_misc.h"
  68. #include "prboom/m_menu.h"
  69. #include "prboom/p_checksum.h"
  70. #include "prboom/i_main.h"
  71. #include "prboom/i_system.h"
  72. #include "prboom/i_sound.h"
  73. #include "prboom/i_video.h"
  74. #include "prboom/g_game.h"
  75. #include "prboom/hu_stuff.h"
  76. #include "prboom/wi_stuff.h"
  77. #include "prboom/st_stuff.h"
  78. #include "prboom/am_map.h"
  79. #include "prboom/p_setup.h"
  80. #include "prboom/r_draw.h"
  81. #include "prboom/r_main.h"
  82. #include "prboom/r_fps.h"
  83. #include "prboom/d_main.h"
  84. #include "prboom/d_deh.h"
  85. #include "prboom/lprintf.h"
  86. #include "prboom/am_map.h"
  87. #include "prboom/gl_intern.h"
  88. #include "prboom/p_mobj.h"
  89. #include "prboom/p_maputl.h"
  90. #include "prboom/p_map.h"
  91. // open / close name collision problem... #include "prboom/p_spec.h"
  92. #include "prboom/p_inter.h"
  93. #include "prboom/m_random.h"
  94. #include "prboom/m_bbox.h"
  95. #include "prboom/m_cheat.h"
  96. // we will now define landscapeViewport / landscapeScissor to rotate the coords
  97. #undef glViewport
  98. #undef glScissor
  99. // our vestigial system environment
  100. #include "iphone/misc.h"
  101. #include "iphone/cvar.h"
  102. // new iphone code
  103. #include "iphone/IBGlue.h"
  104. #include "iphone/ipak.h"
  105. #include "iphone/iphone_doom.h"
  106. #include "iphone/iphone_email.h" //gsh, adds support for emailing the console to id
  107. #endif