├── code
├── .svn
│ ├── format
│ ├── dir-prop-base
│ └── entries
├── iphone
│ ├── .svn
│ │ ├── format
│ │ ├── dir-prop-base
│ │ ├── prop-base
│ │ │ ├── SoundEngine.cpp.svn-base
│ │ │ ├── SoundEngine.h.svn-base
│ │ │ ├── arialGlyphRects.h.svn-base
│ │ │ ├── doomAppDelegate.h.svn-base
│ │ │ ├── doomAppDelegate.m.svn-base
│ │ │ ├── doom_Prefix.pch.svn-base
│ │ │ ├── doom_icon.png.svn-base
│ │ │ └── default.png.svn-base
│ │ └── text-base
│ │ │ ├── default.png.svn-base
│ │ │ ├── doom_icon.png.svn-base
│ │ │ ├── doom_Prefix.pch.svn-base
│ │ │ ├── dist.plist.svn-base
│ │ │ ├── gles_glue.h.svn-base
│ │ │ ├── misc.c.svn-base
│ │ │ ├── iphone_qgl_enumerants.h.svn-base
│ │ │ ├── Info.plist.svn-base
│ │ │ ├── doomAppDelegate.h.svn-base
│ │ │ ├── main.m.svn-base
│ │ │ ├── iphone_sys.c.svn-base
│ │ │ ├── EAGLView.h.svn-base
│ │ │ └── misc.h.svn-base
│ ├── Doom.xcodeproj
│ │ ├── .svn
│ │ │ ├── format
│ │ │ ├── prop-base
│ │ │ │ └── project.pbxproj.svn-base
│ │ │ ├── dir-prop-base
│ │ │ └── entries
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcuserdata
│ │ │ │ └── jeff.farrand.xcuserdatad
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── xcuserdata
│ │ │ └── jeff.farrand.xcuserdatad
│ │ │ ├── xcschemes
│ │ │ └── xcschememanagement.plist
│ │ │ └── xcdebugger
│ │ │ └── Breakpoints.xcbkptlist
│ ├── .DS_Store
│ ├── default.png
│ ├── Doom_icon.png
│ ├── dist.plist
│ ├── UICustomSlider.h
│ ├── UIFontLabel.h
│ ├── MenuViewController.h
│ ├── UICustomSwitch.h
│ ├── IBGlue.m
│ ├── UIFontLabel.m
│ ├── IBGlue.h
│ ├── MenuViewController.mm
│ ├── UICustomSlider.m
│ ├── UIFontButton.h
│ ├── doom_Prefix.pch
│ ├── iphone_email.h
│ ├── UICustomSwitch.m
│ ├── iphone_qgl_enumerants.h
│ ├── GenericMenuView.h
│ ├── SettingsMenuView.h
│ ├── ControlsMenuView.h
│ ├── gles_glue.h
│ ├── main.m
│ ├── EAGLView.h
│ ├── iphone_sys.c
│ ├── MainMenuView.h
│ ├── Info.plist
│ ├── misc.c
│ └── doomAppDelegate.h
├── libtess
│ ├── .svn
│ │ ├── format
│ │ ├── prop-base
│ │ │ ├── README.svn-base
│ │ │ ├── dict.c.svn-base
│ │ │ ├── dict.h.svn-base
│ │ │ ├── geom.c.svn-base
│ │ │ ├── geom.h.svn-base
│ │ │ ├── mesh.c.svn-base
│ │ │ ├── mesh.h.svn-base
│ │ │ ├── tess.c.svn-base
│ │ │ ├── tess.h.svn-base
│ │ │ ├── alg-outline.svn-base
│ │ │ ├── dict-list.h.svn-base
│ │ │ ├── memalloc.c.svn-base
│ │ │ ├── memalloc.h.svn-base
│ │ │ ├── normal.c.svn-base
│ │ │ ├── normal.h.svn-base
│ │ │ ├── priorityq.c.svn-base
│ │ │ ├── priorityq.h.svn-base
│ │ │ ├── render.c.svn-base
│ │ │ ├── render.h.svn-base
│ │ │ ├── sweep.c.svn-base
│ │ │ ├── sweep.h.svn-base
│ │ │ ├── tessmono.c.svn-base
│ │ │ ├── tessmono.h.svn-base
│ │ │ ├── priorityq-heap.c.svn-base
│ │ │ ├── priorityq-heap.h.svn-base
│ │ │ └── priorityq-sort.h.svn-base
│ │ └── text-base
│ │ │ ├── normal.h.svn-base
│ │ │ ├── memalloc.c.svn-base
│ │ │ ├── memalloc.h.svn-base
│ │ │ └── render.h.svn-base
│ ├── normal.h
│ ├── memalloc.c
│ ├── memalloc.h
│ └── render.h
├── prboom
│ ├── .svn
│ │ ├── format
│ │ └── text-base
│ │ │ ├── r_data.c.svn-base
│ │ │ ├── r_draw.c.svn-base
│ │ │ ├── p_checksum.h.svn-base
│ │ │ ├── version.c.svn-base
│ │ │ ├── version.h.svn-base
│ │ │ ├── md5.h.svn-base
│ │ │ ├── f_wipe.h.svn-base
│ │ │ ├── i_main.h.svn-base
│ │ │ ├── r_segs.h.svn-base
│ │ │ ├── i_joy.h.svn-base
│ │ │ ├── m_argv.h.svn-base
│ │ │ ├── r_demo.h.svn-base
│ │ │ ├── doomdef.c.svn-base
│ │ │ ├── p_user.h.svn-base
│ │ │ ├── f_finale.h.svn-base
│ │ │ ├── m_bbox.h.svn-base
│ │ │ ├── r_sky.h.svn-base
│ │ │ ├── d_items.h.svn-base
│ │ │ ├── r_sky.c.svn-base
│ │ │ ├── m_cheat.h.svn-base
│ │ │ ├── m_bbox.c.svn-base
│ │ │ ├── wi_stuff.h.svn-base
│ │ │ ├── m_argv.c.svn-base
│ │ │ ├── r_drawcolpipeline.inl.svn-base
│ │ │ ├── d_ticcmd.h.svn-base
│ │ │ ├── z_bmalloc.h.svn-base
│ │ │ ├── p_setup.h.svn-base
│ │ │ ├── r_bsp.h.svn-base
│ │ │ ├── r_plane.h.svn-base
│ │ │ └── r_fps.h.svn-base
│ ├── r_data.c
│ ├── r_draw.c
│ ├── p_checksum.h
│ ├── version.c
│ ├── version.h
│ ├── md5.h
│ ├── f_wipe.h
│ ├── i_main.h
│ ├── r_segs.h
│ ├── i_joy.h
│ ├── m_argv.h
│ ├── r_demo.h
│ ├── doomdef.c
│ ├── p_user.h
│ ├── f_finale.h
│ ├── m_bbox.h
│ ├── r_sky.h
│ ├── d_items.h
│ ├── r_sky.c
│ ├── m_cheat.h
│ ├── m_bbox.c
│ ├── wi_stuff.h
│ ├── m_argv.c
│ ├── r_drawcolpipeline.inl
│ ├── d_ticcmd.h
│ ├── z_bmalloc.h
│ ├── p_setup.h
│ ├── r_bsp.h
│ ├── r_plane.h
│ └── r_fps.h
└── .DS_Store
├── __MACOSX
├── ._code
└── code
│ ├── ._iphone
│ ├── ._libtess
│ ├── ._prboom
│ ├── ._.DS_Store
│ ├── ._doomiphone.h
│ ├── iphone
│ ├── ._cmd.c
│ ├── ._hud.c
│ ├── ._cvar.c
│ ├── ._cvar.h
│ ├── ._ipak.c
│ ├── ._ipak.h
│ ├── ._misc.c
│ ├── ._misc.h
│ ├── ._.DS_Store
│ ├── ._EAGLView.m
│ ├── ._Info.plist
│ ├── ._dist.plist
│ ├── ._Doom_icon.png
│ ├── ._default.png
│ ├── ._gles_glue.c
│ ├── ._gles_glue.h
│ ├── ._iphone_doom.h
│ ├── ._iphone_loop.c
│ ├── ._iphone_main.c
│ ├── ._iphone_net.c
│ ├── ._iphone_qgl.h
│ ├── ._iphone_sys.c
│ ├── ._MainWindow.xib
│ ├── ._doom_Prefix.pch
│ ├── ._iphone_async.c
│ ├── ._iphone_email.h
│ ├── ._iphone_email.m
│ ├── ._iphone_menus.c
│ ├── ._iphone_render.c
│ ├── ._iphone_sound.c
│ ├── ._iphone_start.c
│ ├── ._arialGlyphRects.h
│ ├── ._doomAppDelegate.h
│ ├── ._doomAppDelegate.m
│ ├── ._iphone_mapSelect.c
│ ├── ._prboomInterface.c
│ ├── ._BackgroundMusic.cpp
│ ├── ._iphone_qgl_enumerants.h
│ └── Doom.xcodeproj
│ │ ├── ._johnc.pbxuser
│ │ ├── .__backup_project.bak
│ │ └── ._johnc.perspectivev3
│ ├── libtess
│ ├── ._README
│ └── ._alg-outline
│ └── prboom
│ ├── ._am_map.c
│ ├── ._d_main.c
│ ├── ._g_game.c
│ ├── ._m_misc.c
│ ├── ._p_mobj.c
│ ├── ._p_pspr.c
│ ├── ._p_spec.c
│ ├── ._r_bsp.c
│ ├── ._r_defs.h
│ ├── ._r_main.h
│ ├── ._d_englsh.h
│ ├── ._doomstat.h
│ ├── ._f_finale.c
│ ├── ._gl_main.c
│ ├── ._hu_stuff.c
│ ├── ._m_fixed.h
│ ├── ._m_random.c
│ ├── ._p_inter.c
│ ├── ._p_switch.c
│ ├── ._r_things.c
│ ├── ._s_sound.c
│ ├── ._st_stuff.c
│ ├── ._Makefile.am
│ ├── ._SDL_opengl.h
│ ├── ._gl_intern.h
│ ├── ._gl_struct.h
│ ├── ._gl_texture.c
│ ├── ._r_drawflush.inl
│ ├── ._r_drawspan.inl
│ ├── ._r_drawcolumn.inl
│ └── ._r_drawcolpipeline.inl
├── base
├── .DS_Store
├── prboom.wad
└── .svn
│ ├── prop-base
│ ├── base.iPack.svn-base
│ ├── prboom.wad.svn-base
│ └── doom.wad.svn-base
│ ├── text-base
│ ├── doom.wad.svn-base
│ ├── base.iPack.svn-base
│ └── prboom.wad.svn-base
│ └── entries
├── README.txt
└── DOOM CLASSIC IOS v.2.1 README.txt
/code/.svn/format:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/code/iphone/.svn/format:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/code/libtess/.svn/format:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/code/prboom/.svn/format:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/.svn/format:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/code/.svn/dir-prop-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mergeinfo
3 | V 0
4 |
5 | END
6 |
--------------------------------------------------------------------------------
/__MACOSX/._code:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/._code
--------------------------------------------------------------------------------
/base/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/base/.DS_Store
--------------------------------------------------------------------------------
/base/prboom.wad:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/base/prboom.wad
--------------------------------------------------------------------------------
/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/.DS_Store
--------------------------------------------------------------------------------
/code/iphone/.svn/dir-prop-base:
--------------------------------------------------------------------------------
1 | K 10
2 | svn:ignore
3 | V 6
4 | build
5 |
6 | END
7 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/README.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/dict.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/dict.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/geom.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/geom.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/mesh.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/mesh.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/tess.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/tess.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/iphone/.DS_Store
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/alg-outline.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/dict-list.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/memalloc.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/memalloc.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/normal.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/normal.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/priorityq.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/priorityq.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/render.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/render.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/sweep.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/sweep.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/tessmono.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/tessmono.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/prboom/r_data.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/prboom/r_data.c
--------------------------------------------------------------------------------
/code/prboom/r_draw.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/prboom/r_draw.c
--------------------------------------------------------------------------------
/__MACOSX/code/._iphone:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/._iphone
--------------------------------------------------------------------------------
/__MACOSX/code/._libtess:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/._libtess
--------------------------------------------------------------------------------
/__MACOSX/code/._prboom:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/._prboom
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/SoundEngine.cpp.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/SoundEngine.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/arialGlyphRects.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/doomAppDelegate.h.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mergeinfo
3 | V 0
4 |
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/doomAppDelegate.m.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mergeinfo
3 | V 0
4 |
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/doom_Prefix.pch.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mergeinfo
3 | V 0
4 |
5 | END
6 |
--------------------------------------------------------------------------------
/code/iphone/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/iphone/default.png
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/priorityq-heap.c.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/priorityq-heap.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/code/libtess/.svn/prop-base/priorityq-sort.h.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/__MACOSX/code/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/._.DS_Store
--------------------------------------------------------------------------------
/code/iphone/Doom_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/iphone/Doom_icon.png
--------------------------------------------------------------------------------
/__MACOSX/code/._doomiphone.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/._doomiphone.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._cmd.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._cmd.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._hud.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._hud.c
--------------------------------------------------------------------------------
/base/.svn/prop-base/base.iPack.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | END
6 |
--------------------------------------------------------------------------------
/base/.svn/prop-base/prboom.wad.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | END
6 |
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._cvar.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._cvar.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._cvar.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._cvar.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._ipak.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._ipak.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._ipak.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._ipak.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._misc.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._misc.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._misc.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._misc.h
--------------------------------------------------------------------------------
/__MACOSX/code/libtess/._README:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/libtess/._README
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._am_map.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._am_map.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._d_main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._d_main.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._g_game.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._g_game.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._m_misc.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._m_misc.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._p_mobj.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._p_mobj.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._p_pspr.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._p_pspr.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._p_spec.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._p_spec.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_bsp.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_bsp.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_defs.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_defs.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_main.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_main.h
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/.svn/prop-base/project.pbxproj.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | END
6 |
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._.DS_Store
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._EAGLView.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._EAGLView.m
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._Info.plist
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._dist.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._dist.plist
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._d_englsh.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._d_englsh.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._doomstat.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._doomstat.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._f_finale.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._f_finale.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._gl_main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._gl_main.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._hu_stuff.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._hu_stuff.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._m_fixed.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._m_fixed.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._m_random.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._m_random.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._p_inter.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._p_inter.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._p_switch.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._p_switch.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_things.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_things.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._s_sound.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._s_sound.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._st_stuff.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._st_stuff.c
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/doom_icon.png.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | END
6 |
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._Doom_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._Doom_icon.png
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._default.png
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._gles_glue.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._gles_glue.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._gles_glue.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._gles_glue.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_doom.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_doom.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_loop.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_loop.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_main.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_net.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_net.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_qgl.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_qgl.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_sys.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_sys.c
--------------------------------------------------------------------------------
/__MACOSX/code/libtess/._alg-outline:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/libtess/._alg-outline
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._Makefile.am:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._Makefile.am
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._SDL_opengl.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._SDL_opengl.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._gl_intern.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._gl_intern.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._gl_struct.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._gl_struct.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._gl_texture.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._gl_texture.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._MainWindow.xib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._MainWindow.xib
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._doom_Prefix.pch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._doom_Prefix.pch
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_async.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_async.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_email.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_email.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_email.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_email.m
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_menus.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_menus.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_render.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_render.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_sound.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_sound.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_start.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_start.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_drawflush.inl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_drawflush.inl
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_drawspan.inl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_drawspan.inl
--------------------------------------------------------------------------------
/base/.svn/text-base/doom.wad.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/base/.svn/text-base/doom.wad.svn-base
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._arialGlyphRects.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._arialGlyphRects.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._doomAppDelegate.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._doomAppDelegate.h
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._doomAppDelegate.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._doomAppDelegate.m
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_mapSelect.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_mapSelect.c
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._prboomInterface.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._prboomInterface.c
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_drawcolumn.inl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_drawcolumn.inl
--------------------------------------------------------------------------------
/base/.svn/text-base/base.iPack.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/base/.svn/text-base/base.iPack.svn-base
--------------------------------------------------------------------------------
/base/.svn/text-base/prboom.wad.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/base/.svn/text-base/prboom.wad.svn-base
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._BackgroundMusic.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._BackgroundMusic.cpp
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/._iphone_qgl_enumerants.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/._iphone_qgl_enumerants.h
--------------------------------------------------------------------------------
/__MACOSX/code/prboom/._r_drawcolpipeline.inl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/prboom/._r_drawcolpipeline.inl
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_data.c.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/prboom/.svn/text-base/r_data.c.svn-base
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_draw.c.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/prboom/.svn/text-base/r_draw.c.svn-base
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/default.png.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/iphone/.svn/text-base/default.png.svn-base
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/Doom.xcodeproj/._johnc.pbxuser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/Doom.xcodeproj/._johnc.pbxuser
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/doom_icon.png.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/code/iphone/.svn/text-base/doom_icon.png.svn-base
--------------------------------------------------------------------------------
/base/.svn/prop-base/doom.wad.svn-base:
--------------------------------------------------------------------------------
1 | K 14
2 | svn:executable
3 | V 1
4 | *
5 | K 13
6 | svn:mime-type
7 | V 24
8 | application/octet-stream
9 | END
10 |
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/Doom.xcodeproj/.__backup_project.bak:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/Doom.xcodeproj/.__backup_project.bak
--------------------------------------------------------------------------------
/__MACOSX/code/iphone/Doom.xcodeproj/._johnc.perspectivev3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/id-Software/DOOM-iOS/HEAD/__MACOSX/code/iphone/Doom.xcodeproj/._johnc.perspectivev3
--------------------------------------------------------------------------------
/code/iphone/.svn/prop-base/default.png.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | K 14
6 | svn:executable
7 | V 1
8 | *
9 | END
10 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/.svn/dir-prop-base:
--------------------------------------------------------------------------------
1 | K 10
2 | svn:ignore
3 | V 32
4 | cass.pbxuser
5 | cass.perspectivev3
6 |
7 | K 13
8 | svn:mergeinfo
9 | V 0
10 |
11 | END
12 |
--------------------------------------------------------------------------------
/code/prboom/p_checksum.h:
--------------------------------------------------------------------------------
1 | extern void (*P_Checksum)(int);
2 | extern void P_ChecksumFinal(void);
3 | void P_RecordChecksum(const char *file);
4 | //void P_VerifyChecksum(const char *file);
5 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/p_checksum.h.svn-base:
--------------------------------------------------------------------------------
1 | extern void (*P_Checksum)(int);
2 | extern void P_ChecksumFinal(void);
3 | void P_RecordChecksum(const char *file);
4 | //void P_VerifyChecksum(const char *file);
5 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/doom_Prefix.pch.svn-base:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'doom' target in the 'doom' project
3 | //
4 |
5 | #ifdef __OBJC__
6 | #import
7 | #import
8 | #endif
9 |
--------------------------------------------------------------------------------
/code/iphone/dist.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | get-task-allow
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/dist.plist.svn-base:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | get-task-allow
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/project.xcworkspace/xcuserdata/jeff.farrand.xcuserdatad/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEWorkspaceUserSettings_HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges
6 |
7 | IDEWorkspaceUserSettings_SnapshotAutomaticallyBeforeSignificantChanges
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/code/iphone/UICustomSlider.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 | #import
12 |
13 |
14 | @interface UICustomSlider : UISlider {
15 |
16 | }
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/code/iphone/UIFontLabel.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 | #import
13 |
14 |
15 | @interface UIFontLabel : UILabel {
16 |
17 | }
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/code/iphone/MenuViewController.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #import
14 | #import
15 |
16 | @interface MenuViewController : UIViewController {
17 |
18 | }
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/code/iphone/UICustomSwitch.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #import
14 |
15 |
16 | @interface UICustomSwitch : UIButton {
17 | BOOL on;
18 | }
19 |
20 | @property(nonatomic,getter=isOn) BOOL on;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/code/iphone/IBGlue.m:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #include "IBGlue.h"
14 | #import "doomAppDelegate.h"
15 | #include "doomiphone.h"
16 |
17 | // Tells Interface Builder to go to the Main Menu.
18 | void IB_GotoMainMenu() {
19 | [ gAppDelegate MainMenu];
20 | }
21 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/xcuserdata/jeff.farrand.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Doom.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 1D6058900D05DD3D006BFB54
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/code/iphone/UIFontLabel.m:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #import "UIFontLabel.h"
14 |
15 |
16 | @implementation UIFontLabel
17 |
18 | - (void)awakeFromNib {
19 | CGFloat points = self.font.pointSize;
20 |
21 | self.font = [UIFont fontWithName:@"idGinza Narrow" size:points];
22 | }
23 |
24 | @end
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/gles_glue.h.svn-base:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ifndef __GLES_GLUE_H__
4 | #define __GLES_GLUE_H__
5 |
6 | #define GL_QUADS 888
7 |
8 | void GLCheckError( const char *message );
9 |
10 | void glBegin( GLenum prim );
11 | void glVertex3f( float x, float y, float z );
12 | void glVertex2i( GLint x, GLint y );
13 | void glColor4ub( GLubyte r, GLubyte g, GLubyte b, GLubyte a );
14 | void glColor4ubv( GLubyte *rgba );
15 | void glColor3f( GLfloat r, GLfloat g, GLfloat b );
16 | void glColor4f( GLfloat r, GLfloat g, GLfloat b, GLfloat a );
17 | void glColor4fv( GLfloat *rgba );
18 | void glTexCoord2i( GLint s, GLint t );
19 | void glTexCoord2f( GLfloat s, GLfloat t );
20 | void glEnd();
21 |
22 | #endif
--------------------------------------------------------------------------------
/code/iphone/IBGlue.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | // Tells Interface Builder to go to the Main Menu.
14 | void IB_GotoMainMenu();
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/.svn/entries:
--------------------------------------------------------------------------------
1 | 9
2 |
3 | dir
4 | 119
5 | svn://svn.eden.idsoftware.com/iphone/trunk/doom/code/iphone/doom.xcodeproj
6 | svn://svn.eden.idsoftware.com/iphone
7 |
8 |
9 |
10 | 2009-07-09T01:53:18.542124Z
11 | 115
12 | johnc
13 | has-props
14 |
15 | svn:special svn:externals svn:needs-lock
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | b138b6a2-c55d-40dd-9022-e27c2c4ed457
28 |
29 | project.pbxproj
30 | file
31 |
32 |
33 |
34 |
35 | 2009-07-09T01:33:43.000000Z
36 | 78569cb9feb1c9c991c2d5376879d32a
37 | 2009-07-09T01:53:18.542124Z
38 | 115
39 | johnc
40 | has-props
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | 84338
62 |
63 |
--------------------------------------------------------------------------------
/code/iphone/MenuViewController.mm:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 | #import "MenuViewController.h"
13 |
14 | @implementation MenuViewController
15 |
16 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
17 |
18 | return interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight;
19 | }
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/README.txt:
--------------------------------------------------------------------------------
1 | DOOM Classic iOS v2.1 GPL source release
2 | ===============================================
3 |
4 | This file contains the following sections:
5 |
6 | GENERAL NOTES
7 | LICENSE
8 |
9 | GENERAL NOTES
10 | =============
11 |
12 | DOOM Classic iOS v2.1 is a free release, and can be downloaded from
13 | http://http://www.idsoftware.com/idstuff/doom/doomclassic_ios_v21_src.zip
14 |
15 | This source release does not contain any game data, the game data remains subject to the original EULA and applicable law.
16 |
17 |
18 | LICENSE
19 | =======
20 |
21 | See COPYING.txt for the GNU GENERAL PUBLIC LICENSE. If COPYING.txt does not accompany, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/DOOM CLASSIC IOS v.2.1 README.txt:
--------------------------------------------------------------------------------
1 | DOOM Classic iOS v2.1 GPL source release
2 | ===============================================
3 |
4 | This file contains the following sections:
5 |
6 | GENERAL NOTES
7 | LICENSE
8 |
9 | GENERAL NOTES
10 | =============
11 |
12 | DOOM Classic iOS v2.1 is a free release, and can be downloaded from
13 | http://http://www.idsoftware.com/idstuff/doom/doomclassic_ios_v21_src.zip
14 |
15 | This source release does not contain any game data, the game data remains subject to the original EULA and applicable law.
16 |
17 |
18 | LICENSE
19 | =======
20 |
21 | See COPYING.txt for the GNU GENERAL PUBLIC LICENSE. If COPYING.txt does not accompany, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/code/iphone/UICustomSlider.m:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 | #import "UICustomSlider.h"
12 |
13 |
14 | @implementation UICustomSlider
15 |
16 | - (CGRect)trackRectForBounds:(CGRect)bounds {
17 |
18 | UIImage* trackImage = [self minimumTrackImageForState:UIControlStateNormal];
19 |
20 | CGFloat trackImageHeight = trackImage.size.height;
21 |
22 | return CGRectMake(bounds.origin.x, bounds.origin.y, self.bounds.size.width, trackImageHeight);
23 | }
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/code/iphone/UIFontButton.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 | #import
13 | #import
14 | #import "UIFontLabel.h"
15 |
16 | @interface UIFontButton : UIButton {
17 | @public
18 |
19 | IBOutlet UIFontLabel * label;
20 | IBOutlet UIFontLabel * label2;
21 |
22 | UIColor * labelColor;
23 | UIColor * label2Color;
24 | }
25 |
26 | @property (nonatomic, retain) IBOutlet UIFontLabel *label;
27 | @property (nonatomic, retain) IBOutlet UIFontLabel *label2;
28 |
29 | - (void) Hide;
30 | - (void) Show;
31 | - (void) Enable;
32 | - (void) Disable;
33 | @end
34 |
--------------------------------------------------------------------------------
/code/iphone/doom_Prefix.pch:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | //
22 | // Prefix header for all source files of the 'doom' target in the 'doom' project
23 | //
24 |
25 | #ifdef __OBJC__
26 | #import
27 | #import
28 | #endif
29 |
--------------------------------------------------------------------------------
/code/iphone/iphone_email.h:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
4 | Copyright (C) 2009 Id Software, Inc.
5 |
6 | This program is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU General Public License
8 | as published by the Free Software Foundation; either version 2
9 | of the License, or (at your option) any later version.
10 |
11 | This program is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | GNU General Public License for more details.
15 |
16 | You should have received a copy of the GNU General Public License
17 | along with this program; if not, write to the Free Software
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 |
20 | */
21 |
22 |
23 |
24 | //Appends the console buffer while replacings non-URLscheme compatible text
25 | void AppendConsoleBuffer(const char *buf);
26 |
27 | //Emails the console buffer to id software
28 | void EmailConsole();
--------------------------------------------------------------------------------
/code/.svn/entries:
--------------------------------------------------------------------------------
1 | 9
2 |
3 | dir
4 | 119
5 | svn://svn.eden.idsoftware.com/iphone/trunk/doom/code
6 | svn://svn.eden.idsoftware.com/iphone
7 |
8 |
9 |
10 | 2009-07-10T19:42:59.113299Z
11 | 119
12 | johnc
13 | has-props
14 |
15 | svn:special svn:externals svn:needs-lock
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | b138b6a2-c55d-40dd-9022-e27c2c4ed457
28 |
29 | doomiphone.h
30 | file
31 |
32 |
33 |
34 |
35 | 2009-07-07T20:07:39.000000Z
36 | 228271d33cc005bbe9cc1f60acc11970
37 | 2009-07-07T21:22:16.723278Z
38 | 114
39 | johnc
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | 2410
62 |
63 | iphone
64 | dir
65 |
66 | libtess
67 | dir
68 |
69 | prboom
70 | dir
71 |
72 | wolfiphone.h
73 | file
74 |
75 |
76 |
77 |
78 | 2009-05-15T16:26:33.625000Z
79 | d7f126798bae7ceaafc3b12d5277dcc1
80 | 2009-04-30T17:26:10.292183Z
81 | 75
82 | johnc
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | 2301
105 |
106 |
--------------------------------------------------------------------------------
/code/iphone/UICustomSwitch.m:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 | #import "UICustomSwitch.h"
13 |
14 |
15 | @implementation UICustomSwitch
16 |
17 | @synthesize on;
18 |
19 | - (void)setOn:(BOOL)turnOn;
20 | {
21 | on = turnOn;
22 |
23 | if (on)
24 | {
25 | [ self setHighlighted: YES ];
26 | }
27 | else
28 | {
29 | [ self setHighlighted: NO ];
30 | }
31 | }
32 |
33 |
34 | - (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
35 | {
36 | [super touchesBegan:touches withEvent:event];
37 | [self setOn: !on ];
38 |
39 | }
40 |
41 | - (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
42 | {
43 | [super touchesEnded:touches withEvent:event];
44 |
45 | if (on)
46 | {
47 | [ self setHighlighted: YES ];
48 | }
49 | else
50 | {
51 | [ self setHighlighted: NO ];
52 | }
53 | }
54 |
55 |
56 | @end
57 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/misc.c.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * misc.c
3 | * doom
4 | *
5 | * Created by John Carmack on 4/13/09.
6 | * Copyright 2009 idSoftware. All rights reserved.
7 | *
8 | */
9 |
10 | #include "../doomiphone.h"
11 |
12 | void Com_Printf( const char *fmt, ... ) {
13 | va_list argptr;
14 |
15 | va_start( argptr, fmt );
16 | vprintf( fmt, argptr );
17 | va_end( argptr );
18 | }
19 |
20 | void Com_Error( const char *fmt, ... ) {
21 | va_list argptr;
22 |
23 | va_start( argptr, fmt );
24 | vprintf( fmt, argptr );
25 | va_end( argptr );
26 |
27 | // drop into the editor
28 | abort();
29 | exit( 1 );
30 | }
31 |
32 | char *va( const char *format, ... ) {
33 | va_list argptr;
34 | static char string[ 1024 ];
35 |
36 | va_start( argptr, format );
37 | (void)vsnprintf( string, sizeof( string ), format, argptr );
38 | va_end( argptr );
39 |
40 | string[ sizeof( string ) - 1 ] = '\0';
41 |
42 | return string;
43 | }
44 |
45 | int HashString( const char *string ) {
46 | int hash = *string;
47 |
48 | if( hash ) {
49 | for( string += 1; *string != '\0'; ++string ) {
50 | hash = (hash << 5) - hash + tolower(*string);
51 | }
52 | }
53 |
54 | return hash;
55 | }
56 |
57 |
--------------------------------------------------------------------------------
/code/iphone/iphone_qgl_enumerants.h:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #ifndef IPHONE_QGL_ENUMERANTS_H
22 | #define IPHONE_QGL_ENUMERANTS_H
23 |
24 | #ifdef QGL_LOG_GL_CALLS
25 |
26 | #include
27 |
28 | #ifdef __cplusplus
29 | extern "C" {
30 | #endif
31 |
32 | const char *StringFromGLEnumerant( GLenum enumerant );
33 |
34 | #ifdef __cplusplus
35 | }
36 | #endif
37 |
38 | #endif // QGL_LOG_GL_CALLS
39 |
40 | #endif // IPHONE_QGL_ENUMERANTS_H
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/iphone_qgl_enumerants.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #ifndef IPHONE_QGL_ENUMERANTS_H
22 | #define IPHONE_QGL_ENUMERANTS_H
23 |
24 | #ifdef QGL_LOG_GL_CALLS
25 |
26 | #include
27 |
28 | #ifdef __cplusplus
29 | extern "C" {
30 | #endif
31 |
32 | const char *StringFromGLEnumerant( GLenum enumerant );
33 |
34 | #ifdef __cplusplus
35 | }
36 | #endif
37 |
38 | #endif // QGL_LOG_GL_CALLS
39 |
40 | #endif // IPHONE_QGL_ENUMERANTS_H
--------------------------------------------------------------------------------
/code/iphone/GenericMenuView.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 | #import
13 | #import
14 | #import "UIFontButton.h"
15 |
16 | @interface GenericMenuView : UIView {
17 |
18 | IBOutlet UIScrollView * scrollView;
19 | IBOutlet UILabel * lastItem;
20 |
21 |
22 | IBOutlet UIFontButton * epi1Button;
23 | IBOutlet UIFontButton * epi2Button;
24 | IBOutlet UIFontButton * epi3Button;
25 | IBOutlet UIFontButton * epi4Button;
26 |
27 | int episodeSelection;
28 | IBOutlet UIFontButton * nextButton;
29 | IBOutlet UIFontLabel * nextLabel;
30 |
31 | }
32 |
33 | - (IBAction) BackToMain;
34 | - (IBAction) NextToMissions;
35 |
36 |
37 | - (IBAction) SelectEpisode1;
38 | - (IBAction) SelectEpisode2;
39 | - (IBAction) SelectEpisode3;
40 | - (IBAction) SelectEpisode4;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/Info.plist.svn-base:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleDisplayName
10 | ${PRODUCT_NAME}
11 | CFBundleExecutable
12 | ${EXECUTABLE_NAME}
13 | CFBundleIconFile
14 | ${PRODUCT_NAME}_icon.png
15 | CFBundleIdentifier
16 | ${PROFILE_PREFIX}.${PRODUCT_NAME:identifier}
17 | CFBundleInfoDictionaryVersion
18 | 6.0
19 | CFBundleName
20 | ${PRODUCT_NAME}
21 | CFBundlePackageType
22 | APPL
23 | CFBundleSignature
24 | ????
25 | CFBundleVersion
26 | 1.0
27 | LSRequiresIPhoneOS
28 |
29 | NSMainNibFile
30 | MainWindow
31 | UIInterfaceOrientation
32 | UIInterfaceOrientationLandscapeLeft
33 | UIRequiresPersistentWiFi
34 |
35 | UIStatusBarHidden
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/doomAppDelegate.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #import
22 | #import
23 |
24 |
25 | @class EAGLView;
26 |
27 | @interface gameAppDelegate : NSObject {
28 | UIWindow *window;
29 | EAGLView *glView;
30 | int lastAccelUpdateMsec;
31 | }
32 |
33 | @property (nonatomic, retain) IBOutlet UIWindow *window;
34 | @property (nonatomic, retain) IBOutlet EAGLView *glView;
35 |
36 | - (void)restartAccelerometerIfNeeded;
37 |
38 | @end
39 |
40 |
--------------------------------------------------------------------------------
/code/iphone/Doom.xcodeproj/xcuserdata/jeff.farrand.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
17 |
18 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/code/iphone/SettingsMenuView.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #import
14 | #import
15 | #import "UICustomSwitch.h"
16 |
17 | @interface SettingsMenuView : UIImageView {
18 |
19 | IBOutlet UICustomSwitch * autoUseSwitch;
20 | IBOutlet UICustomSwitch * statusbarSwitch;
21 | IBOutlet UICustomSwitch * touchclickSwitch;
22 | IBOutlet UICustomSwitch * textMessageSwitch;
23 | IBOutlet UICustomSwitch * drawControlsSwitch;
24 | IBOutlet UICustomSwitch * musicSwitch;
25 | IBOutlet UICustomSwitch * centerSticksSwitch;
26 | IBOutlet UICustomSwitch * rampTurnSwitch;
27 |
28 |
29 |
30 | }
31 |
32 | - (void) resetSwitches;
33 |
34 | - (IBAction) BackToMain;
35 | - (IBAction) ResetToDefaults;
36 | - (IBAction) AutoUseChanged;
37 | - (IBAction) StatusBarChanged;
38 | - (IBAction) TouchClickChanged;
39 | - (IBAction) TextMessagesChanged;
40 | - (IBAction) DrawControlsChanged;
41 | - (IBAction) MusicChanged;
42 | - (IBAction) CenterSticksChanged;
43 | - (IBAction) RampTurnChanged;
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/code/iphone/ControlsMenuView.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #import
14 | #import
15 |
16 | @interface ControlsMenuView : UIView {
17 |
18 | IBOutlet UISlider * movestickSize;
19 | IBOutlet UISlider * turnstickSize;
20 | IBOutlet UISlider * tiltMoveSpeed;
21 | IBOutlet UISlider * tiltTurnSpeed;
22 |
23 |
24 | IBOutlet UIButton * singleThumbButton;
25 | IBOutlet UIButton * dualThumbButton;
26 | IBOutlet UIButton * dirWheelButton;
27 |
28 | }
29 |
30 |
31 | - (void) SetupSlider:(UISlider*)slider minimumTrack:(UIImage*)minImage
32 | maximumTrack:(UIImage*)maxImage
33 | thumb:(UIImage*)thumbImage;
34 |
35 | - (void) SetOptions;
36 | - (IBAction) BackToMain;
37 | - (IBAction) HudLayoutPressed;
38 | - (IBAction) SingleThumbpadPressed;
39 | - (IBAction) DualThumbpadPressed;
40 | - (IBAction) DirWheelPressed;
41 |
42 | - (IBAction) MoveStickValChanged;
43 | - (IBAction) TurnStickValChanged;
44 | - (IBAction) TiltMoveValChanged;
45 | - (IBAction) TiltTurnValChanged;
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/base/.svn/entries:
--------------------------------------------------------------------------------
1 | 10
2 |
3 | dir
4 | 126
5 | svn://svn.eden.idsoftware.com/iphone/trunk/doom/base
6 | svn://svn.eden.idsoftware.com/iphone
7 |
8 |
9 |
10 | 2009-07-10T19:42:59.113299Z
11 | 119
12 | johnc
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | b138b6a2-c55d-40dd-9022-e27c2c4ed457
28 |
29 | music
30 | dir
31 |
32 | base.iPack
33 | file
34 |
35 |
36 |
37 |
38 | 2009-10-02T16:01:00.000000Z
39 | 6faa1d952e42454c38a637052aa9a533
40 | 2009-07-10T19:42:59.113299Z
41 | 119
42 | johnc
43 | has-props
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | 6541360
65 |
66 | doom.wad
67 | file
68 |
69 |
70 |
71 |
72 | 2009-10-02T16:01:00.000000Z
73 | c4fe9fd920207691a9f493668e0a2083
74 | 2009-05-04T22:48:10.686458Z
75 | 85
76 | johnc
77 | has-props
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 | 12408292
99 |
100 | prboom.wad
101 | file
102 |
103 |
104 |
105 |
106 | 2009-10-02T16:01:00.000000Z
107 | 20a751b0bd1bff212f2e320db1db82bb
108 | 2009-04-17T15:12:57.371339Z
109 | 55
110 | johnc
111 | has-props
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 | 281020
133 |
134 |
--------------------------------------------------------------------------------
/code/iphone/gles_glue.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 |
22 | #ifndef __GLES_GLUE_H__
23 | #define __GLES_GLUE_H__
24 |
25 | #define GL_QUADS 888
26 |
27 | void GLCheckError( const char *message );
28 |
29 | void glBegin( GLenum prim );
30 | void glVertex3f( float x, float y, float z );
31 | void glVertex2i( GLint x, GLint y );
32 | void glColor4ub( GLubyte r, GLubyte g, GLubyte b, GLubyte a );
33 | void glColor4ubv( GLubyte *rgba );
34 | void glColor3f( GLfloat r, GLfloat g, GLfloat b );
35 | void glColor4f( GLfloat r, GLfloat g, GLfloat b, GLfloat a );
36 | void glColor4fv( GLfloat *rgba );
37 | void glTexCoord2i( GLint s, GLint t );
38 | void glTexCoord2f( GLfloat s, GLfloat t );
39 | void glEnd();
40 |
41 | #endif
--------------------------------------------------------------------------------
/code/prboom/version.c:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Date stamp
31 | *
32 | *-----------------------------------------------------------------------------
33 | */
34 |
35 |
36 | #include "version.h"
37 |
38 | const char version_date[] = __DATE__;
39 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/version.c.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Date stamp
31 | *
32 | *-----------------------------------------------------------------------------
33 | */
34 |
35 |
36 | #include "version.h"
37 |
38 | const char version_date[] = __DATE__;
39 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/main.m.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #import
22 | #include
23 | #include
24 |
25 | extern char iphoneAppDirectory[1024];
26 | extern int myargc;
27 | extern char **myargv;
28 |
29 | int main(int argc, char *argv[]) {
30 | // save for doom
31 | myargc = argc;
32 | myargv = argv;
33 |
34 | // get the app directory based on argv[0]
35 | strcpy( iphoneAppDirectory, argv[0] );
36 | int len = strlen( iphoneAppDirectory );
37 | for( int i = len-1; i >= 0; i-- ) {
38 | if ( iphoneAppDirectory[i] == '/' ) {
39 | iphoneAppDirectory[i] = 0;
40 | break;
41 | }
42 | iphoneAppDirectory[i] = 0;
43 | }
44 |
45 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
46 | int retVal = UIApplicationMain(argc, argv, nil, nil);
47 | [pool release];
48 | return retVal;
49 | }
50 |
--------------------------------------------------------------------------------
/code/prboom/version.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Doom version indicators.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __DOOMVERSION__
36 | #define __DOOMVERSION__
37 |
38 | extern const char version_date[];
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/version.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Doom version indicators.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __DOOMVERSION__
36 | #define __DOOMVERSION__
37 |
38 | extern const char version_date[];
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/code/prboom/md5.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This is the header file for the MD5 message-digest algorithm.
3 | * The algorithm is due to Ron Rivest. This code was
4 | * written by Colin Plumb in 1993, no copyright is claimed.
5 | * This code is in the public domain; do with it what you wish.
6 | *
7 | * Equivalent code is available from RSA Data Security, Inc.
8 | * This code has been tested against that, and is equivalent,
9 | * except that you don't need to include two pages of legalese
10 | * with every copy.
11 | *
12 | * To compute the message digest of a chunk of bytes, declare an
13 | * MD5Context structure, pass it to MD5Init, call MD5Update as
14 | * needed on buffers full of bytes, and then call MD5Final, which
15 | * will fill a supplied 16-byte array with the digest.
16 | *
17 | * Changed so as no longer to depend on Colin Plumb's `usual.h'
18 | * header definitions; now uses stuff from dpkg's config.h
19 | * - Ian Jackson .
20 | * Still in the public domain.
21 | */
22 |
23 | #ifndef MD5_H
24 | #define MD5_H
25 |
26 | #ifdef _MSC_VER
27 | #define WIN32_LEAN_AND_MEAN
28 | #include
29 | #define UWORD32 DWORD
30 | #else
31 | #include
32 | #define UWORD32 uint32_t
33 | #endif
34 | #define md5byte unsigned char
35 |
36 | struct MD5Context {
37 | UWORD32 buf[4];
38 | UWORD32 bytes[2];
39 | UWORD32 in[16];
40 | };
41 |
42 | void MD5Init(struct MD5Context *context);
43 | void MD5Update(struct MD5Context *context, md5byte const *buf, unsigned len);
44 | void MD5Final(unsigned char digest[16], struct MD5Context *context);
45 | void MD5Transform(UWORD32 buf[4], UWORD32 const in[16]);
46 |
47 | #endif /* !MD5_H */
48 |
--------------------------------------------------------------------------------
/code/iphone/main.m:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #import
22 | #include
23 | #include
24 |
25 | extern char iphoneAppDirectory[1024];
26 | extern int myargc;
27 | extern char **myargv;
28 |
29 | int main(int argc, char *argv[]) {
30 | // save for doom
31 | myargc = argc;
32 | myargv = argv;
33 |
34 | // get the app directory based on argv[0]
35 | strcpy( iphoneAppDirectory, argv[0] );
36 | int len = strlen( iphoneAppDirectory );
37 | for( int i = len-1; i >= 0; i-- ) {
38 | if ( iphoneAppDirectory[i] == '/' ) {
39 | iphoneAppDirectory[i] = 0;
40 | break;
41 | }
42 | iphoneAppDirectory[i] = 0;
43 | }
44 |
45 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
46 | int retVal = UIApplicationMain(argc, argv, nil, nil);
47 | [pool release];
48 | return retVal;
49 | }
50 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/md5.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * This is the header file for the MD5 message-digest algorithm.
3 | * The algorithm is due to Ron Rivest. This code was
4 | * written by Colin Plumb in 1993, no copyright is claimed.
5 | * This code is in the public domain; do with it what you wish.
6 | *
7 | * Equivalent code is available from RSA Data Security, Inc.
8 | * This code has been tested against that, and is equivalent,
9 | * except that you don't need to include two pages of legalese
10 | * with every copy.
11 | *
12 | * To compute the message digest of a chunk of bytes, declare an
13 | * MD5Context structure, pass it to MD5Init, call MD5Update as
14 | * needed on buffers full of bytes, and then call MD5Final, which
15 | * will fill a supplied 16-byte array with the digest.
16 | *
17 | * Changed so as no longer to depend on Colin Plumb's `usual.h'
18 | * header definitions; now uses stuff from dpkg's config.h
19 | * - Ian Jackson .
20 | * Still in the public domain.
21 | */
22 |
23 | #ifndef MD5_H
24 | #define MD5_H
25 |
26 | #ifdef _MSC_VER
27 | #define WIN32_LEAN_AND_MEAN
28 | #include
29 | #define UWORD32 DWORD
30 | #else
31 | #include
32 | #define UWORD32 uint32_t
33 | #endif
34 | #define md5byte unsigned char
35 |
36 | struct MD5Context {
37 | UWORD32 buf[4];
38 | UWORD32 bytes[2];
39 | UWORD32 in[16];
40 | };
41 |
42 | void MD5Init(struct MD5Context *context);
43 | void MD5Update(struct MD5Context *context, md5byte const *buf, unsigned len);
44 | void MD5Final(unsigned char digest[16], struct MD5Context *context);
45 | void MD5Transform(UWORD32 buf[4], UWORD32 const in[16]);
46 |
47 | #endif /* !MD5_H */
48 |
--------------------------------------------------------------------------------
/code/iphone/EAGLView.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 |
22 | #import
23 | #import
24 | #import
25 | #import
26 |
27 | /*
28 | This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
29 | The view content is basically an EAGL surface you render your OpenGL scene into.
30 | Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
31 | */
32 | @interface EAGLView : UIView {
33 | @public
34 | UITextField *textField;
35 |
36 | GLuint mViewRenderbuffer;
37 | GLuint mViewFramebuffer;
38 | GLuint mDepthRenderbuffer;
39 |
40 | @private
41 | /* The pixel dimensions of the backbuffer */
42 | GLint backingWidth;
43 | GLint backingHeight;
44 |
45 |
46 | }
47 |
48 | @end
49 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/iphone_sys.c.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #include "../doomiphone.h"
22 | #import
23 |
24 | int SysIphoneMicroseconds() {
25 | struct timeval tp;
26 | struct timezone tzp;
27 | static int secbase;
28 |
29 | gettimeofday( &tp, &tzp );
30 |
31 | if( ! secbase ) {
32 | secbase = tp.tv_sec;
33 | return tp.tv_usec;
34 | }
35 |
36 | int curtime = (tp.tv_sec - secbase) * 1000000 + tp.tv_usec;
37 |
38 | return curtime;
39 | }
40 |
41 | int SysIphoneMilliseconds() {
42 | return SysIphoneMicroseconds()/1000;
43 | }
44 |
45 |
46 | extern char iphoneDocDirectory[1024];
47 | extern char iphoneAppDirectory[1024];
48 |
49 | const char *SysIphoneGetAppDir() {
50 | return iphoneAppDirectory;
51 | }
52 |
53 | const char *SysIphoneGetDocDir() {
54 | return iphoneDocDirectory;
55 | }
56 |
57 | void SysIPhoneVibrate() {
58 | AudioServicesPlaySystemSound( kSystemSoundID_Vibrate );
59 | }
60 |
61 |
62 |
--------------------------------------------------------------------------------
/code/prboom/f_wipe.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Mission start screen wipe/melt, special effects.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __F_WIPE_H__
35 | #define __F_WIPE_H__
36 |
37 | /*
38 | * SCREEN WIPE PACKAGE
39 | */
40 |
41 | int wipe_ScreenWipe (int ticks);
42 | int wipe_StartScreen(void);
43 | int wipe_EndScreen (void);
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/code/prboom/i_main.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * General system functions. Signal related stuff, exit function
31 | * prototypes, and programmable Doom clock.
32 | *
33 | *-----------------------------------------------------------------------------
34 | */
35 |
36 | #ifndef __I_MAIN__
37 | #define __I_MAIN__
38 |
39 | void I_Init(void);
40 | void I_SafeExit(int rc);
41 |
42 | extern int (*I_GetTime)(void);
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/code/iphone/iphone_sys.c:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 |
22 | #include "../doomiphone.h"
23 | #import
24 |
25 | int SysIphoneMicroseconds() {
26 | struct timeval tp;
27 | struct timezone tzp;
28 | static int secbase;
29 |
30 | gettimeofday( &tp, &tzp );
31 |
32 | if( ! secbase ) {
33 | secbase = tp.tv_sec;
34 | return tp.tv_usec;
35 | }
36 |
37 | int curtime = (tp.tv_sec - secbase) * 1000000 + tp.tv_usec;
38 |
39 | return curtime;
40 | }
41 |
42 | int SysIphoneMilliseconds() {
43 | return SysIphoneMicroseconds()/1000;
44 | }
45 |
46 |
47 | extern char iphoneDocDirectory[1024];
48 | extern char iphoneAppDirectory[1024];
49 |
50 | const char *SysIphoneGetAppDir() {
51 | return iphoneAppDirectory;
52 | }
53 |
54 | const char *SysIphoneGetDocDir() {
55 | return iphoneDocDirectory;
56 | }
57 |
58 | void SysIPhoneVibrate() {
59 | AudioServicesPlaySystemSound( kSystemSoundID_Vibrate );
60 | }
61 |
62 |
63 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/f_wipe.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Mission start screen wipe/melt, special effects.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __F_WIPE_H__
35 | #define __F_WIPE_H__
36 |
37 | /*
38 | * SCREEN WIPE PACKAGE
39 | */
40 |
41 | int wipe_ScreenWipe (int ticks);
42 | int wipe_StartScreen(void);
43 | int wipe_EndScreen (void);
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/code/prboom/r_segs.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Refresh module, drawing LineSegs from BSP.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_SEGS__
35 | #define __R_SEGS__
36 |
37 | #ifdef __GNUG__
38 | #pragma interface
39 | #endif
40 |
41 | void R_RenderMaskedSegRange(drawseg_t *ds, int x1, int x2);
42 | void R_StoreWallRange(const int start, const int stop);
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/i_main.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * General system functions. Signal related stuff, exit function
31 | * prototypes, and programmable Doom clock.
32 | *
33 | *-----------------------------------------------------------------------------
34 | */
35 |
36 | #ifndef __I_MAIN__
37 | #define __I_MAIN__
38 |
39 | void I_Init(void);
40 | void I_SafeExit(int rc);
41 |
42 | extern int (*I_GetTime)(void);
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_segs.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Refresh module, drawing LineSegs from BSP.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_SEGS__
35 | #define __R_SEGS__
36 |
37 | #ifdef __GNUG__
38 | #pragma interface
39 | #endif
40 |
41 | void R_RenderMaskedSegRange(drawseg_t *ds, int x1, int x2);
42 | void R_StoreWallRange(const int start, const int stop);
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/code/prboom/i_joy.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Joystick interface.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | extern int joybfire;
35 | extern int joybstrafe;
36 | extern int joybuse;
37 | extern int joybspeed;
38 |
39 | extern int joyleft;
40 | extern int joyright;
41 | extern int joyup;
42 | extern int joydown;
43 |
44 | extern int usejoystick;
45 |
46 | void I_InitJoystick(void);
47 | void I_PollJoystick(void);
48 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/EAGLView.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 |
22 | #import
23 | #import
24 | #import
25 | #import
26 |
27 | /*
28 | This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
29 | The view content is basically an EAGL surface you render your OpenGL scene into.
30 | Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
31 | */
32 | @interface EAGLView : UIView {
33 | @public
34 | UITextField *textField;
35 |
36 | @private
37 | /* The pixel dimensions of the backbuffer */
38 | GLint backingWidth;
39 | GLint backingHeight;
40 |
41 | /* OpenGL names for the renderbuffer and framebuffers used to render to this view */
42 | GLuint viewRenderbuffer, viewFramebuffer;
43 |
44 | /* OpenGL name for the depth buffer that is attached to viewFramebuffer, if it exists (0 if it does not exist) */
45 | GLuint depthRenderbuffer;
46 | }
47 |
48 | @end
49 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/i_joy.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Joystick interface.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | extern int joybfire;
35 | extern int joybstrafe;
36 | extern int joybuse;
37 | extern int joybspeed;
38 |
39 | extern int joyleft;
40 | extern int joyright;
41 | extern int joyup;
42 | extern int joydown;
43 |
44 | extern int usejoystick;
45 |
46 | void I_InitJoystick(void);
47 | void I_PollJoystick(void);
48 |
--------------------------------------------------------------------------------
/code/prboom/m_argv.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Argument handling.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __M_ARGV__
36 | #define __M_ARGV__
37 |
38 | /*
39 | * MISC
40 | */
41 | extern int myargc;
42 | extern const char * const * myargv; /* CPhipps - const * const * */
43 |
44 | /* Returns the position of the given parameter in the arg list (0 if not found). */
45 | int M_CheckParm(const char *check);
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/m_argv.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Argument handling.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __M_ARGV__
36 | #define __M_ARGV__
37 |
38 | /*
39 | * MISC
40 | */
41 | extern int myargc;
42 | extern const char * const * myargv; /* CPhipps - const * const * */
43 |
44 | /* Returns the position of the given parameter in the arg list (0 if not found). */
45 | int M_CheckParm(const char *check);
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/code/prboom/r_demo.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze, Andrey Budko
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Demo stuff
31 | *
32 | *---------------------------------------------------------------------
33 | */
34 |
35 | #include "doomstat.h"
36 |
37 | #define SMOOTH_PLAYING_MAXFACTOR 16
38 |
39 | extern int demo_smoothturns;
40 | extern int demo_smoothturnsfactor;
41 |
42 | void R_SmoothPlaying_Reset(player_t *player);
43 | void R_SmoothPlaying_Add(int delta);
44 | angle_t R_SmoothPlaying_Get(angle_t defangle);
45 | void R_ResetAfterTeleport(player_t *player);
46 |
--------------------------------------------------------------------------------
/code/iphone/MainMenuView.h:
--------------------------------------------------------------------------------
1 | /*
2 | =======================================================================================
3 |
4 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
5 |
6 | This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
7 |
8 | =======================================================================================
9 | */
10 |
11 |
12 |
13 | #import
14 | #import
15 | #import "UIFontLabel.h"
16 | #import "UIFontButton.h"
17 |
18 | @interface Banner_SubItem : UIFontButton {
19 | @public
20 |
21 | }
22 | @end
23 |
24 | @interface Banner_SubMenu: UIView {
25 | @public
26 |
27 | BOOL isHidden;
28 | }
29 |
30 | - (void) Hide;
31 | - (void) Show;
32 |
33 | @end
34 |
35 | @interface MainMenuView : UIView {
36 |
37 | @public
38 |
39 | IBOutlet UIFontButton * mPlayButton;
40 | IBOutlet UIFontButton * mSettingsButton;
41 | IBOutlet UIFontButton * mAboutButton;
42 | IBOutlet UIFontButton * mExtrasButton;
43 |
44 | IBOutlet Banner_SubMenu * mPlaySubMenu;
45 | IBOutlet Banner_SubMenu * mSettingsSubMenu;
46 | IBOutlet Banner_SubMenu * mAboutSubMenu;
47 | IBOutlet Banner_SubMenu * mExtrasSubMenu;
48 | }
49 |
50 | // Sub Menu Banner Actions
51 | - (IBAction) ShowPlayBanner;
52 | - (IBAction) ShowSettingsBanner;
53 | - (IBAction) ShowAboutBanner;
54 | - (IBAction) ShowExtrasBanner;
55 |
56 | - (void) ResetMenu;
57 |
58 | // Interface Builder Actions ( Connected through IB )
59 | - (IBAction) ResumeGamePressed;
60 | - (IBAction) NewGamePressed;
61 | - (IBAction) MultiplayerPressed;
62 | - (IBAction) CreditsPressed;
63 | - (IBAction) SupportPressed;
64 | - (IBAction) LegalPressed;
65 | - (IBAction) DemoPressed;
66 | - (IBAction) OtherIdGamesPressed;
67 | - (IBAction) ControlsOptionsPressed;
68 | - (IBAction) SettingsOptionsPressed;
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_demo.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze, Andrey Budko
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Demo stuff
31 | *
32 | *---------------------------------------------------------------------
33 | */
34 |
35 | #include "doomstat.h"
36 |
37 | #define SMOOTH_PLAYING_MAXFACTOR 16
38 |
39 | extern int demo_smoothturns;
40 | extern int demo_smoothturnsfactor;
41 |
42 | void R_SmoothPlaying_Reset(player_t *player);
43 | void R_SmoothPlaying_Add(int delta);
44 | angle_t R_SmoothPlaying_Get(angle_t defangle);
45 | void R_ResetAfterTeleport(player_t *player);
46 |
--------------------------------------------------------------------------------
/code/prboom/doomdef.c:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * DoomDef - basic defines for DOOM, e.g. Version, game mode
31 | * and skill level, and display parameters.
32 | *
33 | *-----------------------------------------------------------------------------
34 | */
35 |
36 | #ifdef __GNUG__
37 | #pragma implementation "doomdef.h"
38 | #endif
39 |
40 | #include "doomdef.h"
41 |
42 | // Location for any defines turned variables.
43 | // None.
44 |
45 | // proff 08/17/98: Changed for high-res
46 | int SCREENWIDTH=320;
47 | int SCREENHEIGHT=200;
48 | int SCREENPITCH=320;
49 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/doomdef.c.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * DoomDef - basic defines for DOOM, e.g. Version, game mode
31 | * and skill level, and display parameters.
32 | *
33 | *-----------------------------------------------------------------------------
34 | */
35 |
36 | #ifdef __GNUG__
37 | #pragma implementation "doomdef.h"
38 | #endif
39 |
40 | #include "doomdef.h"
41 |
42 | // Location for any defines turned variables.
43 | // None.
44 |
45 | // proff 08/17/98: Changed for high-res
46 | int SCREENWIDTH=320;
47 | int SCREENHEIGHT=200;
48 | int SCREENPITCH=320;
49 |
--------------------------------------------------------------------------------
/code/prboom/p_user.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Player related stuff.
31 | * Bobbing POV/weapon, movement.
32 | * Pending weapon.
33 | *
34 | *-----------------------------------------------------------------------------*/
35 |
36 | #ifndef __P_USER__
37 | #define __P_USER__
38 |
39 | #include "d_player.h"
40 |
41 | void P_PlayerThink(player_t *player);
42 | void P_CalcHeight(player_t *player);
43 | void P_DeathThink(player_t *player);
44 | void P_MovePlayer(player_t *player);
45 | void P_Thrust(player_t *player, angle_t angle, fixed_t move);
46 |
47 | #endif /* __P_USER__ */
48 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/p_user.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Player related stuff.
31 | * Bobbing POV/weapon, movement.
32 | * Pending weapon.
33 | *
34 | *-----------------------------------------------------------------------------*/
35 |
36 | #ifndef __P_USER__
37 | #define __P_USER__
38 |
39 | #include "d_player.h"
40 |
41 | void P_PlayerThink(player_t *player);
42 | void P_CalcHeight(player_t *player);
43 | void P_DeathThink(player_t *player);
44 | void P_MovePlayer(player_t *player);
45 | void P_Thrust(player_t *player, angle_t angle, fixed_t move);
46 |
47 | #endif /* __P_USER__ */
48 |
--------------------------------------------------------------------------------
/code/prboom/f_finale.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Related to f_finale.c, which is called at the end of a level
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __F_FINALE__
36 | #define __F_FINALE__
37 |
38 | #include "doomtype.h"
39 | #include "d_event.h"
40 |
41 | /*
42 | * FINALE
43 | */
44 |
45 | /* Called by main loop. */
46 | boolean F_Responder (event_t* ev);
47 |
48 | /* Called by main loop. */
49 | void F_Ticker (void);
50 |
51 | /* Called by main loop. */
52 | void F_Drawer (void);
53 |
54 | void F_StartFinale (void);
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/code/prboom/m_bbox.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Simple bounding box datatype and functions.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __M_BBOX__
36 | #define __M_BBOX__
37 |
38 | #include
39 | #include "m_fixed.h"
40 |
41 | /* Bounding box coordinate storage. */
42 | enum
43 | {
44 | BOXTOP,
45 | BOXBOTTOM,
46 | BOXLEFT,
47 | BOXRIGHT
48 | }; /* bbox coordinates */
49 |
50 | /* Bounding box functions. */
51 |
52 | void M_ClearBox(fixed_t* box);
53 |
54 | void M_AddToBox(fixed_t* box,fixed_t x,fixed_t y);
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/code/iphone/.svn/text-base/misc.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * misc.h
3 | * doom
4 | *
5 | * Created by John Carmack on 4/13/09.
6 | * Copyright 2009 idSoftware. All rights reserved.
7 | *
8 | */
9 |
10 | char *va( const char *format, ... );
11 | void Com_Printf( const char *fmt, ... );
12 | void Com_Error( const char *fmt, ... );
13 | int HashString( const char *string );
14 |
15 | /*
16 |
17 | Command execution takes a NUL-terminated string, breaks it into tokens,
18 | then searches for a command or variable that matches the first token.
19 |
20 | */
21 |
22 | typedef void (*xcommand_t) (void);
23 |
24 | // called by the init functions of other parts of the program to
25 | // register commands and functions to call for them.
26 | // The cmd_name is referenced later, so it should not be in temp memory
27 | // if function is NULL, the command will be forwarded to the server
28 | // as a clc_stringcmd instead of executed locally
29 | void Cmd_AddCommand( const char *cmd_name, xcommand_t function );
30 |
31 | // print all the added commands
32 | void Cmd_ListCommands_f();
33 |
34 | // attempts to match a partial command for automatic command line completion
35 | // returns NULL if nothing fits
36 | char *Cmd_CompleteCommand( const char *partial );
37 |
38 | // The functions that execute commands get their parameters with these
39 | // functions. Cmd_Argv () will return an empty string, not a NULL
40 | // if arg > argc, so string operations are always safe.
41 | int Cmd_Argc( void );
42 | const char *Cmd_Argv( int arg );
43 |
44 | // Takes a NUL-terminated string. Does not need to be /n terminated.
45 | // breaks the string up into argc / argv tokens.
46 | void Cmd_TokenizeString( const char *text );
47 |
48 | // Parses a single line of text into arguments and tries to execute it
49 | // as if it was typed at the console
50 | void Cmd_ExecuteString( const char *text );
51 |
52 | // execute each line of the config file
53 | void Cmd_ExecuteFile( const char *fullPathName );
54 |
55 |
--------------------------------------------------------------------------------
/code/prboom/r_sky.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Sky rendering.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_SKY__
35 | #define __R_SKY__
36 |
37 | #include "m_fixed.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | /* SKY, store the number for name. */
44 | #define SKYFLATNAME "F_SKY1"
45 |
46 | /* The sky map is 256*128*4 maps. */
47 | #define ANGLETOSKYSHIFT 22
48 |
49 | extern int skytexture;
50 | extern int skytexturemid;
51 |
52 | /* Called whenever the view size changes. */
53 | void R_InitSkyMap(void);
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/f_finale.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Related to f_finale.c, which is called at the end of a level
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __F_FINALE__
36 | #define __F_FINALE__
37 |
38 | #include "doomtype.h"
39 | #include "d_event.h"
40 |
41 | /*
42 | * FINALE
43 | */
44 |
45 | /* Called by main loop. */
46 | boolean F_Responder (event_t* ev);
47 |
48 | /* Called by main loop. */
49 | void F_Ticker (void);
50 |
51 | /* Called by main loop. */
52 | void F_Drawer (void);
53 |
54 | void F_StartFinale (void);
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/m_bbox.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Simple bounding box datatype and functions.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __M_BBOX__
36 | #define __M_BBOX__
37 |
38 | #include
39 | #include "m_fixed.h"
40 |
41 | /* Bounding box coordinate storage. */
42 | enum
43 | {
44 | BOXTOP,
45 | BOXBOTTOM,
46 | BOXLEFT,
47 | BOXRIGHT
48 | }; /* bbox coordinates */
49 |
50 | /* Bounding box functions. */
51 |
52 | void M_ClearBox(fixed_t* box);
53 |
54 | void M_AddToBox(fixed_t* box,fixed_t x,fixed_t y);
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_sky.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Sky rendering.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_SKY__
35 | #define __R_SKY__
36 |
37 | #include "m_fixed.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | /* SKY, store the number for name. */
44 | #define SKYFLATNAME "F_SKY1"
45 |
46 | /* The sky map is 256*128*4 maps. */
47 | #define ANGLETOSKYSHIFT 22
48 |
49 | extern int skytexture;
50 | extern int skytexturemid;
51 |
52 | /* Called whenever the view size changes. */
53 | void R_InitSkyMap(void);
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/code/libtess/normal.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #ifndef __normal_h_
36 | #define __normal_h_
37 |
38 | #include "tess.h"
39 |
40 | /* __gl_projectPolygon( tess ) determines the polygon normal
41 | * and project vertices onto the plane of the polygon.
42 | */
43 | void __gl_projectPolygon( GLUtesselator *tess );
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/code/libtess/.svn/text-base/normal.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #ifndef __normal_h_
36 | #define __normal_h_
37 |
38 | #include "tess.h"
39 |
40 | /* __gl_projectPolygon( tess ) determines the polygon normal
41 | * and project vertices onto the plane of the polygon.
42 | */
43 | void __gl_projectPolygon( GLUtesselator *tess );
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/code/prboom/d_items.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Items: key cards, artifacts, weapon, ammunition.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __D_ITEMS__
36 | #define __D_ITEMS__
37 |
38 | #include "doomdef.h"
39 |
40 | #ifdef __GNUG__
41 | #pragma interface
42 | #endif
43 |
44 |
45 | /* Weapon info: sprite frames, ammunition use. */
46 | typedef struct
47 | {
48 | ammotype_t ammo;
49 | int upstate;
50 | int downstate;
51 | int readystate;
52 | int atkstate;
53 | int flashstate;
54 |
55 | } weaponinfo_t;
56 |
57 | extern weaponinfo_t weaponinfo[NUMWEAPONS];
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/code/prboom/r_sky.c:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Sky rendering. The DOOM sky is a texture map like any
31 | * wall, wrapping around. A 1024 columns equal 360 degrees.
32 | * The default sky map is 256 columns and repeats 4 times
33 | * on a 320 screen?
34 | *
35 | *-----------------------------------------------------------------------------*/
36 |
37 | #ifdef __GNUG__
38 | #pragma implementation "r_sky.h"
39 | #endif
40 | #include "r_sky.h"
41 |
42 | //
43 | // sky mapping
44 | //
45 | int skyflatnum;
46 | int skytexture;
47 | int skytexturemid;
48 |
49 | //
50 | // R_InitSkyMap
51 | // Called whenever the view size changes.
52 | //
53 | void R_InitSkyMap (void)
54 | {
55 | skytexturemid = 100*FRACUNIT;
56 | }
57 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/d_items.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Items: key cards, artifacts, weapon, ammunition.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 |
35 | #ifndef __D_ITEMS__
36 | #define __D_ITEMS__
37 |
38 | #include "doomdef.h"
39 |
40 | #ifdef __GNUG__
41 | #pragma interface
42 | #endif
43 |
44 |
45 | /* Weapon info: sprite frames, ammunition use. */
46 | typedef struct
47 | {
48 | ammotype_t ammo;
49 | int upstate;
50 | int downstate;
51 | int readystate;
52 | int atkstate;
53 | int flashstate;
54 |
55 | } weaponinfo_t;
56 |
57 | extern weaponinfo_t weaponinfo[NUMWEAPONS];
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/code/prboom/m_cheat.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Cheat code checking.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __M_CHEAT__
35 | #define __M_CHEAT__
36 |
37 | /* killough 4/16/98: Cheat table structure */
38 |
39 | extern struct cheat_s {
40 | const char * cheat;
41 | const char *const deh_cheat;
42 | enum {
43 | always = 0,
44 | not_dm = 1,
45 | not_coop = 2,
46 | not_demo = 4,
47 | not_menu = 8,
48 | not_deh = 16,
49 | not_net = not_dm | not_coop
50 | } const when;
51 | void (*const func)();
52 | const int arg;
53 | uint_64_t code, mask;
54 | } cheat[];
55 |
56 | boolean M_FindCheats(int key);
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_sky.c.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Sky rendering. The DOOM sky is a texture map like any
31 | * wall, wrapping around. A 1024 columns equal 360 degrees.
32 | * The default sky map is 256 columns and repeats 4 times
33 | * on a 320 screen?
34 | *
35 | *-----------------------------------------------------------------------------*/
36 |
37 | #ifdef __GNUG__
38 | #pragma implementation "r_sky.h"
39 | #endif
40 | #include "r_sky.h"
41 |
42 | //
43 | // sky mapping
44 | //
45 | int skyflatnum;
46 | int skytexture;
47 | int skytexturemid;
48 |
49 | //
50 | // R_InitSkyMap
51 | // Called whenever the view size changes.
52 | //
53 | void R_InitSkyMap (void)
54 | {
55 | skytexturemid = 100*FRACUNIT;
56 | }
57 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/m_cheat.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Cheat code checking.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __M_CHEAT__
35 | #define __M_CHEAT__
36 |
37 | /* killough 4/16/98: Cheat table structure */
38 |
39 | extern struct cheat_s {
40 | const char * cheat;
41 | const char *const deh_cheat;
42 | enum {
43 | always = 0,
44 | not_dm = 1,
45 | not_coop = 2,
46 | not_demo = 4,
47 | not_menu = 8,
48 | not_deh = 16,
49 | not_net = not_dm | not_coop
50 | } const when;
51 | void (*const func)();
52 | const int arg;
53 | uint_64_t code, mask;
54 | } cheat[];
55 |
56 | boolean M_FindCheats(int key);
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/code/libtess/memalloc.c:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #include "memalloc.h"
36 | #include "string.h"
37 |
38 | int __gl_memInit( size_t maxFast )
39 | {
40 | #ifndef NO_MALLOPT
41 | /* mallopt( M_MXFAST, maxFast );*/
42 | #ifdef MEMORY_DEBUG
43 | mallopt( M_DEBUG, 1 );
44 | #endif
45 | #endif
46 | return 1;
47 | }
48 |
49 | #ifdef MEMORY_DEBUG
50 | void *__gl_memAlloc( size_t n )
51 | {
52 | return memset( malloc( n ), 0xa5, n );
53 | }
54 | #endif
55 |
56 |
--------------------------------------------------------------------------------
/code/prboom/m_bbox.c:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Main loop menu stuff.
31 | * Random number LUT.
32 | * Default Config File.
33 | * PCX Screenshots.
34 | *
35 | *-----------------------------------------------------------------------------*/
36 |
37 | #ifdef __GNUG__
38 | #pragma implementation "m_bbox.h"
39 | #endif
40 | #include "m_bbox.h"
41 |
42 | void M_ClearBox (fixed_t *box)
43 | {
44 | box[BOXTOP] = box[BOXRIGHT] = INT_MIN;
45 | box[BOXBOTTOM] = box[BOXLEFT] = INT_MAX;
46 | }
47 |
48 | void M_AddToBox(fixed_t* box,fixed_t x,fixed_t y)
49 | {
50 | if (xbox[BOXRIGHT])
53 | box[BOXRIGHT] = x;
54 | if (ybox[BOXTOP])
57 | box[BOXTOP] = y;
58 | }
59 |
--------------------------------------------------------------------------------
/code/libtess/.svn/text-base/memalloc.c.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #include "memalloc.h"
36 | #include "string.h"
37 |
38 | int __gl_memInit( size_t maxFast )
39 | {
40 | #ifndef NO_MALLOPT
41 | /* mallopt( M_MXFAST, maxFast );*/
42 | #ifdef MEMORY_DEBUG
43 | mallopt( M_DEBUG, 1 );
44 | #endif
45 | #endif
46 | return 1;
47 | }
48 |
49 | #ifdef MEMORY_DEBUG
50 | void *__gl_memAlloc( size_t n )
51 | {
52 | return memset( malloc( n ), 0xa5, n );
53 | }
54 | #endif
55 |
56 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/m_bbox.c.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Main loop menu stuff.
31 | * Random number LUT.
32 | * Default Config File.
33 | * PCX Screenshots.
34 | *
35 | *-----------------------------------------------------------------------------*/
36 |
37 | #ifdef __GNUG__
38 | #pragma implementation "m_bbox.h"
39 | #endif
40 | #include "m_bbox.h"
41 |
42 | void M_ClearBox (fixed_t *box)
43 | {
44 | box[BOXTOP] = box[BOXRIGHT] = INT_MIN;
45 | box[BOXBOTTOM] = box[BOXLEFT] = INT_MAX;
46 | }
47 |
48 | void M_AddToBox(fixed_t* box,fixed_t x,fixed_t y)
49 | {
50 | if (xbox[BOXRIGHT])
53 | box[BOXRIGHT] = x;
54 | if (ybox[BOXTOP])
57 | box[BOXTOP] = y;
58 | }
59 |
--------------------------------------------------------------------------------
/code/prboom/wi_stuff.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Intermission screens.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __WI_STUFF__
35 | #define __WI_STUFF__
36 |
37 | //#include "v_video.h"
38 |
39 | #include "doomdef.h"
40 |
41 | // States for the intermission
42 |
43 | typedef enum
44 | {
45 | NoState = -1,
46 | StatCount,
47 | ShowNextLoc
48 |
49 | } stateenum_t;
50 |
51 | // Called by main loop, animate the intermission.
52 | void WI_Ticker (void);
53 |
54 | // Called by main loop,
55 | // draws the intermission directly into the screen buffer.
56 | void WI_Drawer (void);
57 |
58 | // Setup for an intermission screen.
59 | void WI_Start(wbstartstruct_t* wbstartstruct);
60 |
61 | // Release intermission screen memory
62 | void WI_End(void);
63 |
64 | #endif
65 |
--------------------------------------------------------------------------------
/code/prboom/m_argv.c:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Some argument handling.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #include
35 | // CPhipps - include the correct header
36 | #include "doomtype.h"
37 | #include "m_argv.h"
38 |
39 | int myargc;
40 | const char * const * myargv; // CPhipps - not sure if ANSI C allows you to
41 | // modify contents of argv, but I can't imagine it does.
42 |
43 | //
44 | // M_CheckParm
45 | // Checks for the given parameter
46 | // in the program's command line arguments.
47 | // Returns the argument number (1 to argc-1)
48 | // or 0 if not present
49 | //
50 |
51 | int M_CheckParm(const char *check)
52 | {
53 | signed int i = myargc;
54 | while (--i>0)
55 | if (!strcasecmp(check, myargv[i]))
56 | return i;
57 | return 0;
58 | }
59 |
--------------------------------------------------------------------------------
/code/libtess/memalloc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #ifndef __memalloc_simple_h_
36 | #define __memalloc_simple_h_
37 |
38 | #include
39 |
40 | #define memRealloc realloc
41 | #define memFree free
42 |
43 | #define memInit __gl_memInit
44 | /*extern void __gl_memInit( size_t );*/
45 | extern int __gl_memInit( size_t );
46 |
47 | #ifndef MEMORY_DEBUG
48 | #define memAlloc malloc
49 | #else
50 | #define memAlloc __gl_memAlloc
51 | extern void * __gl_memAlloc( size_t );
52 | #endif
53 |
54 | #endif
55 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/wi_stuff.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Intermission screens.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __WI_STUFF__
35 | #define __WI_STUFF__
36 |
37 | //#include "v_video.h"
38 |
39 | #include "doomdef.h"
40 |
41 | // States for the intermission
42 |
43 | typedef enum
44 | {
45 | NoState = -1,
46 | StatCount,
47 | ShowNextLoc
48 |
49 | } stateenum_t;
50 |
51 | // Called by main loop, animate the intermission.
52 | void WI_Ticker (void);
53 |
54 | // Called by main loop,
55 | // draws the intermission directly into the screen buffer.
56 | void WI_Drawer (void);
57 |
58 | // Setup for an intermission screen.
59 | void WI_Start(wbstartstruct_t* wbstartstruct);
60 |
61 | // Release intermission screen memory
62 | void WI_End(void);
63 |
64 | #endif
65 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/m_argv.c.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Some argument handling.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #include
35 | // CPhipps - include the correct header
36 | #include "doomtype.h"
37 | #include "m_argv.h"
38 |
39 | int myargc;
40 | const char * const * myargv; // CPhipps - not sure if ANSI C allows you to
41 | // modify contents of argv, but I can't imagine it does.
42 |
43 | //
44 | // M_CheckParm
45 | // Checks for the given parameter
46 | // in the program's command line arguments.
47 | // Returns the argument number (1 to argc-1)
48 | // or 0 if not present
49 | //
50 |
51 | int M_CheckParm(const char *check)
52 | {
53 | signed int i = myargc;
54 | while (--i>0)
55 | if (!strcasecmp(check, myargv[i]))
56 | return i;
57 | return 0;
58 | }
59 |
--------------------------------------------------------------------------------
/code/libtess/.svn/text-base/memalloc.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #ifndef __memalloc_simple_h_
36 | #define __memalloc_simple_h_
37 |
38 | #include
39 |
40 | #define memRealloc realloc
41 | #define memFree free
42 |
43 | #define memInit __gl_memInit
44 | /*extern void __gl_memInit( size_t );*/
45 | extern int __gl_memInit( size_t );
46 |
47 | #ifndef MEMORY_DEBUG
48 | #define memAlloc malloc
49 | #else
50 | #define memAlloc __gl_memAlloc
51 | extern void * __gl_memAlloc( size_t );
52 | #endif
53 |
54 | #endif
55 |
--------------------------------------------------------------------------------
/code/iphone/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIconFile
12 | DOOM_57.png
13 | CFBundleIconFiles
14 |
15 | DOOM_57.png
16 | DOOM_114.png
17 | DOOM_72.png
18 |
19 | CFBundleIdentifier
20 | com.idsoftware.${PRODUCT_NAME:identifier}
21 | CFBundleInfoDictionaryVersion
22 | 6.0
23 | CFBundleName
24 | ${PRODUCT_NAME}
25 | CFBundlePackageType
26 | APPL
27 | CFBundleSignature
28 | ????
29 | CFBundleVersion
30 | 2.1
31 | LSRequiresIPhoneOS
32 |
33 | NSMainNibFile
34 | MainWindow
35 | NSMainNibFile~ipad
36 | MainWindow-iPad
37 | UIAppFonts
38 |
39 | idGinzaNar-Md2.otf
40 |
41 | UIInterfaceOrientation
42 | UIInterfaceOrientationLandscapeLeft
43 | UIPrerenderedIcon
44 |
45 | UIRequiresPersistentWiFi
46 |
47 | UIStatusBarHidden
48 |
49 | UISupportedInterfaceOrientations
50 |
51 | UIInterfaceOrientationLandscapeLeft
52 | UIInterfaceOrientationLandscapeRight
53 | UIInterfaceOrientationPortraitUpsideDown
54 | UIInterfaceOrientationPortrait
55 |
56 | UISupportedInterfaceOrientations~ipad
57 |
58 | UIInterfaceOrientationLandscapeLeft
59 | UIInterfaceOrientationLandscapeRight
60 | UIInterfaceOrientationPortraitUpsideDown
61 | UIInterfaceOrientationPortrait
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/code/prboom/r_drawcolpipeline.inl:
--------------------------------------------------------------------------------
1 |
2 | // no color mapping
3 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_PointUV)
4 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_NOCOLMAP)
5 | #include "r_drawcolumn.inl"
6 |
7 | // simple depth color mapping
8 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_PointUV_PointZ)
9 | #define R_DRAWCOLUMN_PIPELINE R_DRAWCOLUMN_PIPELINE_BASE
10 | #include "r_drawcolumn.inl"
11 |
12 | // z-dither
13 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_PointUV_LinearZ)
14 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_DITHERZ)
15 | #include "r_drawcolumn.inl"
16 |
17 | // bilinear with no color mapping
18 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_LinearUV)
19 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_BILINEAR | RDC_NOCOLMAP)
20 | #include "r_drawcolumn.inl"
21 |
22 | // bilinear with simple depth color mapping
23 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_LinearUV_PointZ)
24 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_BILINEAR)
25 | #include "r_drawcolumn.inl"
26 |
27 | // bilinear + z-dither
28 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_LinearUV_LinearZ)
29 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_BILINEAR | RDC_DITHERZ)
30 | #include "r_drawcolumn.inl"
31 |
32 | // rounded with no color mapping
33 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_RoundedUV)
34 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_ROUNDED | RDC_NOCOLMAP)
35 | #include "r_drawcolumn.inl"
36 |
37 | // rounded with simple depth color mapping
38 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_RoundedUV_PointZ)
39 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_ROUNDED)
40 | #include "r_drawcolumn.inl"
41 |
42 | // rounded + z-dither
43 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_RoundedUV_LinearZ)
44 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_ROUNDED | RDC_DITHERZ)
45 | #include "r_drawcolumn.inl"
46 |
47 | #undef R_FLUSHWHOLE_FUNCNAME
48 | #undef R_FLUSHHEADTAIL_FUNCNAME
49 | #undef R_FLUSHQUAD_FUNCNAME
50 | #undef R_DRAWCOLUMN_FUNCNAME_COMPOSITE
51 | #undef R_DRAWCOLUMN_PIPELINE_BITS
52 |
--------------------------------------------------------------------------------
/code/iphone/misc.c:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 |
22 | #include "../doomiphone.h"
23 |
24 | void Com_Printf( const char *fmt, ... ) {
25 | va_list argptr;
26 |
27 | va_start( argptr, fmt );
28 |
29 | //gsh, send output to the console buffer
30 | char buffer[1024];
31 | vsnprintf( buffer, sizeof( buffer ), fmt, argptr );
32 | AppendConsoleBuffer(buffer);
33 |
34 | vprintf( fmt, argptr );
35 | va_end( argptr );
36 | }
37 |
38 | void Com_Error( const char *fmt, ... ) {
39 | va_list argptr;
40 |
41 | va_start( argptr, fmt );
42 |
43 | //gsh, send output to the console buffer
44 | char buffer[1024];
45 | vsnprintf( buffer, sizeof( buffer ), fmt, argptr );
46 | AppendConsoleBuffer(buffer);
47 |
48 | vprintf( fmt, argptr );
49 | va_end( argptr );
50 |
51 | //gsh, email the console to id
52 | EmailConsole();
53 |
54 | // drop into the editor
55 | abort();
56 | exit( 1 );
57 | }
58 |
59 | char *va( const char *format, ... ) {
60 | va_list argptr;
61 | static char string[ 1024 ];
62 |
63 | va_start( argptr, format );
64 | (void)vsnprintf( string, sizeof( string ), format, argptr );
65 | va_end( argptr );
66 |
67 | string[ sizeof( string ) - 1 ] = '\0';
68 |
69 | return string;
70 | }
71 |
72 | int HashString( const char *string ) {
73 | int hash = *string;
74 |
75 | if( hash ) {
76 | for( string += 1; *string != '\0'; ++string ) {
77 | hash = (hash << 5) - hash + tolower(*string);
78 | }
79 | }
80 |
81 | return hash;
82 | }
83 |
84 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_drawcolpipeline.inl.svn-base:
--------------------------------------------------------------------------------
1 |
2 | // no color mapping
3 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_PointUV)
4 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_NOCOLMAP)
5 | #include "r_drawcolumn.inl"
6 |
7 | // simple depth color mapping
8 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_PointUV_PointZ)
9 | #define R_DRAWCOLUMN_PIPELINE R_DRAWCOLUMN_PIPELINE_BASE
10 | #include "r_drawcolumn.inl"
11 |
12 | // z-dither
13 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_PointUV_LinearZ)
14 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_DITHERZ)
15 | #include "r_drawcolumn.inl"
16 |
17 | // bilinear with no color mapping
18 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_LinearUV)
19 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_BILINEAR | RDC_NOCOLMAP)
20 | #include "r_drawcolumn.inl"
21 |
22 | // bilinear with simple depth color mapping
23 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_LinearUV_PointZ)
24 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_BILINEAR)
25 | #include "r_drawcolumn.inl"
26 |
27 | // bilinear + z-dither
28 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_LinearUV_LinearZ)
29 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_BILINEAR | RDC_DITHERZ)
30 | #include "r_drawcolumn.inl"
31 |
32 | // rounded with no color mapping
33 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_RoundedUV)
34 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_ROUNDED | RDC_NOCOLMAP)
35 | #include "r_drawcolumn.inl"
36 |
37 | // rounded with simple depth color mapping
38 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_RoundedUV_PointZ)
39 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_ROUNDED)
40 | #include "r_drawcolumn.inl"
41 |
42 | // rounded + z-dither
43 | #define R_DRAWCOLUMN_FUNCNAME R_DRAWCOLUMN_FUNCNAME_COMPOSITE(_RoundedUV_LinearZ)
44 | #define R_DRAWCOLUMN_PIPELINE (R_DRAWCOLUMN_PIPELINE_BASE | RDC_ROUNDED | RDC_DITHERZ)
45 | #include "r_drawcolumn.inl"
46 |
47 | #undef R_FLUSHWHOLE_FUNCNAME
48 | #undef R_FLUSHHEADTAIL_FUNCNAME
49 | #undef R_FLUSHQUAD_FUNCNAME
50 | #undef R_DRAWCOLUMN_FUNCNAME_COMPOSITE
51 | #undef R_DRAWCOLUMN_PIPELINE_BITS
52 |
--------------------------------------------------------------------------------
/code/prboom/d_ticcmd.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * System specific interface stuff.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __D_TICCMD__
35 | #define __D_TICCMD__
36 |
37 | #include "doomtype.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | /* The data sampled per tick (single player)
44 | * and transmitted to other peers (multiplayer).
45 | * Mainly movements/button commands per game tick,
46 | * plus a checksum for internal state consistency.
47 | * CPhipps - explicitely signed the elements, since they have to be signed to work right
48 | */
49 | typedef struct
50 | {
51 | signed char forwardmove; /* *2048 for move */
52 | signed char sidemove; /* *2048 for move */
53 | signed short angleturn; /* <<16 for angle delta */
54 | short consistancy; /* checks for net game */
55 | byte chatchar;
56 | byte buttons;
57 | } ticcmd_t;
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/code/prboom/z_bmalloc.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Block memory allocator
31 | * This is designed to be a fast allocator for small, regularly used block sizes
32 | *-----------------------------------------------------------------------------*/
33 |
34 | struct block_memory_alloc_s {
35 | void *firstpool;
36 | size_t size;
37 | size_t perpool;
38 | int tag;
39 | const char *desc;
40 | };
41 |
42 | #define DECLARE_BLOCK_MEMORY_ALLOC_ZONE(name) extern struct block_memory_alloc_s name
43 | #define IMPLEMENT_BLOCK_MEMORY_ALLOC_ZONE(name, size, tag, num, desc) \
44 | struct block_memory_alloc_s name = { NULL, size, num, tag, desc}
45 | #define NULL_BLOCK_MEMORY_ALLOC_ZONE(name) name.firstpool = NULL
46 |
47 | void* Z_BMalloc(struct block_memory_alloc_s *pzone);
48 |
49 | inline static void* Z_BCalloc(struct block_memory_alloc_s *pzone)
50 | { void *p = Z_BMalloc(pzone); memset(p,0,pzone->size); return p; }
51 |
52 | void Z_BFree(struct block_memory_alloc_s *pzone, void* p);
53 |
--------------------------------------------------------------------------------
/code/prboom/p_setup.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Setup a game, startup stuff.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __P_SETUP__
35 | #define __P_SETUP__
36 |
37 | #include "p_mobj.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | void P_SetupLevel(int episode, int map, int playermask, skill_t skill);
44 | void P_Init(void); /* Called by startup code. */
45 |
46 | extern const byte *rejectmatrix; /* for fast sight rejection - cph - const* */
47 |
48 | /* killough 3/1/98: change blockmap from "short" to "long" offsets: */
49 | extern long *blockmaplump; /* offsets in blockmap are from here */
50 | extern long *blockmap;
51 | extern int bmapwidth;
52 | extern int bmapheight; /* in mapblocks */
53 | extern fixed_t bmaporgx;
54 | extern fixed_t bmaporgy; /* origin of block map */
55 | extern mobj_t **blocklinks; /* for thing chains */
56 |
57 | #endif
58 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/d_ticcmd.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * System specific interface stuff.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __D_TICCMD__
35 | #define __D_TICCMD__
36 |
37 | #include "doomtype.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | /* The data sampled per tick (single player)
44 | * and transmitted to other peers (multiplayer).
45 | * Mainly movements/button commands per game tick,
46 | * plus a checksum for internal state consistency.
47 | * CPhipps - explicitely signed the elements, since they have to be signed to work right
48 | */
49 | typedef struct
50 | {
51 | signed char forwardmove; /* *2048 for move */
52 | signed char sidemove; /* *2048 for move */
53 | signed short angleturn; /* <<16 for angle delta */
54 | short consistancy; /* checks for net game */
55 | byte chatchar;
56 | byte buttons;
57 | } ticcmd_t;
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/z_bmalloc.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Block memory allocator
31 | * This is designed to be a fast allocator for small, regularly used block sizes
32 | *-----------------------------------------------------------------------------*/
33 |
34 | struct block_memory_alloc_s {
35 | void *firstpool;
36 | size_t size;
37 | size_t perpool;
38 | int tag;
39 | const char *desc;
40 | };
41 |
42 | #define DECLARE_BLOCK_MEMORY_ALLOC_ZONE(name) extern struct block_memory_alloc_s name
43 | #define IMPLEMENT_BLOCK_MEMORY_ALLOC_ZONE(name, size, tag, num, desc) \
44 | struct block_memory_alloc_s name = { NULL, size, num, tag, desc}
45 | #define NULL_BLOCK_MEMORY_ALLOC_ZONE(name) name.firstpool = NULL
46 |
47 | void* Z_BMalloc(struct block_memory_alloc_s *pzone);
48 |
49 | inline static void* Z_BCalloc(struct block_memory_alloc_s *pzone)
50 | { void *p = Z_BMalloc(pzone); memset(p,0,pzone->size); return p; }
51 |
52 | void Z_BFree(struct block_memory_alloc_s *pzone, void* p);
53 |
--------------------------------------------------------------------------------
/code/prboom/r_bsp.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Refresh module, BSP traversal and handling.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_BSP__
35 | #define __R_BSP__
36 |
37 | #ifdef __GNUG__
38 | #pragma interface
39 | #endif
40 |
41 | extern seg_t *curline;
42 | extern side_t *sidedef;
43 | extern line_t *linedef;
44 | extern sector_t *frontsector;
45 | extern sector_t *backsector;
46 |
47 | /* old code -- killough:
48 | * extern drawseg_t drawsegs[MAXDRAWSEGS];
49 | * new code -- killough: */
50 | extern drawseg_t *drawsegs;
51 | extern unsigned maxdrawsegs;
52 |
53 | extern byte solidcol[MAX_SCREENWIDTH];
54 |
55 | extern drawseg_t *ds_p;
56 |
57 | void R_ClearClipSegs(void);
58 | void R_ClearDrawSegs(void);
59 | void R_RenderBSPNode(int bspnum);
60 |
61 | /* killough 4/13/98: fake floors/ceilings for deep water / fake ceilings: */
62 | sector_t *R_FakeFlat(sector_t *, sector_t *, int *, int *, boolean);
63 |
64 | #endif
65 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/p_setup.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Setup a game, startup stuff.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __P_SETUP__
35 | #define __P_SETUP__
36 |
37 | #include "p_mobj.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | void P_SetupLevel(int episode, int map, int playermask, skill_t skill);
44 | void P_Init(void); /* Called by startup code. */
45 |
46 | extern const byte *rejectmatrix; /* for fast sight rejection - cph - const* */
47 |
48 | /* killough 3/1/98: change blockmap from "short" to "long" offsets: */
49 | extern long *blockmaplump; /* offsets in blockmap are from here */
50 | extern long *blockmap;
51 | extern int bmapwidth;
52 | extern int bmapheight; /* in mapblocks */
53 | extern fixed_t bmaporgx;
54 | extern fixed_t bmaporgy; /* origin of block map */
55 | extern mobj_t **blocklinks; /* for thing chains */
56 |
57 | #endif
58 |
--------------------------------------------------------------------------------
/code/libtess/render.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #ifndef __render_h_
36 | #define __render_h_
37 |
38 | #include "mesh.h"
39 |
40 | /* __gl_renderMesh( tess, mesh ) takes a mesh and breaks it into triangle
41 | * fans, strips, and separate triangles. A substantial effort is made
42 | * to use as few rendering primitives as possible (ie. to make the fans
43 | * and strips as large as possible).
44 | *
45 | * The rendering output is provided as callbacks (see the api).
46 | */
47 | void __gl_renderMesh( GLUtesselator *tess, GLUmesh *mesh );
48 | void __gl_renderBoundary( GLUtesselator *tess, GLUmesh *mesh );
49 |
50 | GLboolean __gl_renderCache( GLUtesselator *tess );
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_bsp.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Refresh module, BSP traversal and handling.
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_BSP__
35 | #define __R_BSP__
36 |
37 | #ifdef __GNUG__
38 | #pragma interface
39 | #endif
40 |
41 | extern seg_t *curline;
42 | extern side_t *sidedef;
43 | extern line_t *linedef;
44 | extern sector_t *frontsector;
45 | extern sector_t *backsector;
46 |
47 | /* old code -- killough:
48 | * extern drawseg_t drawsegs[MAXDRAWSEGS];
49 | * new code -- killough: */
50 | extern drawseg_t *drawsegs;
51 | extern unsigned maxdrawsegs;
52 |
53 | extern byte solidcol[MAX_SCREENWIDTH];
54 |
55 | extern drawseg_t *ds_p;
56 |
57 | void R_ClearClipSegs(void);
58 | void R_ClearDrawSegs(void);
59 | void R_RenderBSPNode(int bspnum);
60 |
61 | /* killough 4/13/98: fake floors/ceilings for deep water / fake ceilings: */
62 | sector_t *R_FakeFlat(sector_t *, sector_t *, int *, int *, boolean);
63 |
64 | #endif
65 |
--------------------------------------------------------------------------------
/code/libtess/.svn/text-base/render.h.svn-base:
--------------------------------------------------------------------------------
1 | /*
2 | * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3 | * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining a
6 | * copy of this software and associated documentation files (the "Software"),
7 | * to deal in the Software without restriction, including without limitation
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | * and/or sell copies of the Software, and to permit persons to whom the
10 | * Software is furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice including the dates of first publication and
13 | * either this permission notice or a reference to
14 | * http://oss.sgi.com/projects/FreeB/
15 | * shall be included in all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 | * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | * SOFTWARE.
24 | *
25 | * Except as contained in this notice, the name of Silicon Graphics, Inc.
26 | * shall not be used in advertising or otherwise to promote the sale, use or
27 | * other dealings in this Software without prior written authorization from
28 | * Silicon Graphics, Inc.
29 | */
30 | /*
31 | ** Author: Eric Veach, July 1994.
32 | **
33 | */
34 |
35 | #ifndef __render_h_
36 | #define __render_h_
37 |
38 | #include "mesh.h"
39 |
40 | /* __gl_renderMesh( tess, mesh ) takes a mesh and breaks it into triangle
41 | * fans, strips, and separate triangles. A substantial effort is made
42 | * to use as few rendering primitives as possible (ie. to make the fans
43 | * and strips as large as possible).
44 | *
45 | * The rendering output is provided as callbacks (see the api).
46 | */
47 | void __gl_renderMesh( GLUtesselator *tess, GLUmesh *mesh );
48 | void __gl_renderBoundary( GLUtesselator *tess, GLUmesh *mesh );
49 |
50 | GLboolean __gl_renderCache( GLUtesselator *tess );
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/code/iphone/doomAppDelegate.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
3 | Copyright (C) 2009 Id Software, Inc.
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | as published by the Free Software Foundation; either version 2
8 | of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | */
20 |
21 | #import
22 | #import
23 | #import "MenuViewController.h"
24 |
25 | @class EAGLView;
26 |
27 | @interface gameAppDelegate : NSObject {
28 | UIWindow *window;
29 | EAGLView *glView;
30 | CADisplayLink * displayLink;
31 |
32 | int lastAccelUpdateMsec;
33 |
34 |
35 | IBOutlet MenuViewController * mainMenuViewController;
36 | IBOutlet MenuViewController * mapMenuViewController;
37 | IBOutlet MenuViewController * creditsMenuViewController;
38 | IBOutlet MenuViewController * legalMenuViewController;
39 | IBOutlet MenuViewController * settingsMenuViewController;
40 | IBOutlet MenuViewController * controlsMenuViewController;
41 | IBOutlet MenuViewController * episodeMenuViewController;
42 |
43 | BOOL IBMenuVisible;
44 | }
45 |
46 | @property (nonatomic, retain) IBOutlet UIWindow *window;
47 | @property (nonatomic, retain) IBOutlet EAGLView *glView;
48 | @property (nonatomic, retain) IBOutlet CADisplayLink *displayLink;
49 |
50 | - (void)restartAccelerometerIfNeeded;
51 |
52 | - (void) SelectEpisode: (int) episode;
53 | - (void) PrepareForViewSwap;
54 | - (void) ResumeGame;
55 | - (void) NewGame;
56 | - (void) DemoGame;
57 | - (void) MainMenu;
58 | - (void) CreditsMenu;
59 | - (void) LegalMenu;
60 | - (void) playMap: (int) dataset: (int) episode: (int) map: (int) skill;
61 | - (void) GotoSupport;
62 | - (void) idSoftwareApps;
63 | - (void) SettingsMenu;
64 | - (void) ControlsMenu;
65 | - (void) HUDLayout;
66 | - (void) HideIB;
67 |
68 | extern gameAppDelegate * gAppDelegate;
69 |
70 | @end
71 |
72 |
--------------------------------------------------------------------------------
/code/prboom/r_plane.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Refresh, visplane stuff (floor, ceilings).
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_PLANE__
35 | #define __R_PLANE__
36 |
37 | #include "r_data.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | /* killough 10/98: special mask indicates sky flat comes from sidedef */
44 | #define PL_SKYFLAT (0x80000000)
45 |
46 | /* Visplane related. */
47 | extern int *lastopening; // dropoff overflow
48 |
49 | extern int floorclip[], ceilingclip[]; // dropoff overflow
50 | extern fixed_t yslope[], distscale[];
51 |
52 | void R_InitPlanes(void);
53 | void R_ClearPlanes(void);
54 | void R_DrawPlanes (void);
55 |
56 | visplane_t *R_FindPlane(
57 | fixed_t height,
58 | int picnum,
59 | int lightlevel,
60 | fixed_t xoffs, /* killough 2/28/98: add x-y offsets */
61 | fixed_t yoffs
62 | );
63 |
64 | visplane_t *R_CheckPlane(visplane_t *pl, int start, int stop);
65 | visplane_t *R_DupPlane(const visplane_t *pl, int start, int stop);
66 |
67 | #endif
68 |
--------------------------------------------------------------------------------
/code/prboom/r_fps.h:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze, Andrey Budko
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Uncapped framerate stuff
31 | *
32 | *---------------------------------------------------------------------
33 | */
34 |
35 | #ifndef __R_FPS__
36 | #define __R_FPS__
37 |
38 | #include "doomstat.h"
39 |
40 | extern int movement_smooth;
41 |
42 | typedef struct {
43 | fixed_t viewx;
44 | fixed_t viewy;
45 | fixed_t viewz;
46 | angle_t viewangle;
47 | angle_t viewpitch;
48 | } view_vars_t;
49 |
50 | extern view_vars_t original_view_vars;
51 |
52 | typedef struct {
53 | unsigned int start;
54 | unsigned int next;
55 | unsigned int step;
56 | fixed_t frac;
57 | float msec;
58 | } tic_vars_t;
59 |
60 | extern tic_vars_t tic_vars;
61 |
62 | void R_InitInterpolation(void);
63 | void R_InterpolateView (player_t *player, fixed_t frac);
64 |
65 | extern boolean WasRenderedInTryRunTics;
66 |
67 | void R_ResetViewInterpolation ();
68 | void R_UpdateInterpolations();
69 | void R_StopAllInterpolations(void);
70 | void R_DoInterpolations(fixed_t smoothratio);
71 | void R_RestoreInterpolations();
72 | void R_ActivateSectorInterpolations();
73 | void R_ActivateThinkerInterpolations(thinker_t *th);
74 | void R_StopInterpolationIfNeeded(thinker_t *th);
75 |
76 | #endif
77 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_plane.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Refresh, visplane stuff (floor, ceilings).
31 | *
32 | *-----------------------------------------------------------------------------*/
33 |
34 | #ifndef __R_PLANE__
35 | #define __R_PLANE__
36 |
37 | #include "r_data.h"
38 |
39 | #ifdef __GNUG__
40 | #pragma interface
41 | #endif
42 |
43 | /* killough 10/98: special mask indicates sky flat comes from sidedef */
44 | #define PL_SKYFLAT (0x80000000)
45 |
46 | /* Visplane related. */
47 | extern int *lastopening; // dropoff overflow
48 |
49 | extern int floorclip[], ceilingclip[]; // dropoff overflow
50 | extern fixed_t yslope[], distscale[];
51 |
52 | void R_InitPlanes(void);
53 | void R_ClearPlanes(void);
54 | void R_DrawPlanes (void);
55 |
56 | visplane_t *R_FindPlane(
57 | fixed_t height,
58 | int picnum,
59 | int lightlevel,
60 | fixed_t xoffs, /* killough 2/28/98: add x-y offsets */
61 | fixed_t yoffs
62 | );
63 |
64 | visplane_t *R_CheckPlane(visplane_t *pl, int start, int stop);
65 | visplane_t *R_DupPlane(const visplane_t *pl, int start, int stop);
66 |
67 | #endif
68 |
--------------------------------------------------------------------------------
/code/prboom/.svn/text-base/r_fps.h.svn-base:
--------------------------------------------------------------------------------
1 | /* Emacs style mode select -*- C++ -*-
2 | *-----------------------------------------------------------------------------
3 | *
4 | *
5 | * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 | * based on BOOM, a modified and improved DOOM engine
7 | * Copyright (C) 1999 by
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 | * Copyright (C) 1999-2000 by
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze, Andrey Budko
11 | * Copyright 2005, 2006 by
12 | * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 | *
14 | * This program is free software; you can redistribute it and/or
15 | * modify it under the terms of the GNU General Public License
16 | * as published by the Free Software Foundation; either version 2
17 | * of the License, or (at your option) any later version.
18 | *
19 | * This program is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU General Public License
25 | * along with this program; if not, write to the Free Software
26 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 | * 02111-1307, USA.
28 | *
29 | * DESCRIPTION:
30 | * Uncapped framerate stuff
31 | *
32 | *---------------------------------------------------------------------
33 | */
34 |
35 | #ifndef __R_FPS__
36 | #define __R_FPS__
37 |
38 | #include "doomstat.h"
39 |
40 | extern int movement_smooth;
41 |
42 | typedef struct {
43 | fixed_t viewx;
44 | fixed_t viewy;
45 | fixed_t viewz;
46 | angle_t viewangle;
47 | angle_t viewpitch;
48 | } view_vars_t;
49 |
50 | extern view_vars_t original_view_vars;
51 |
52 | typedef struct {
53 | unsigned int start;
54 | unsigned int next;
55 | unsigned int step;
56 | fixed_t frac;
57 | float msec;
58 | } tic_vars_t;
59 |
60 | extern tic_vars_t tic_vars;
61 |
62 | void R_InitInterpolation(void);
63 | void R_InterpolateView (player_t *player, fixed_t frac);
64 |
65 | extern boolean WasRenderedInTryRunTics;
66 |
67 | void R_ResetViewInterpolation ();
68 | void R_UpdateInterpolations();
69 | void R_StopAllInterpolations(void);
70 | void R_DoInterpolations(fixed_t smoothratio);
71 | void R_RestoreInterpolations();
72 | void R_ActivateSectorInterpolations();
73 | void R_ActivateThinkerInterpolations(thinker_t *th);
74 | void R_StopInterpolationIfNeeded(thinker_t *th);
75 |
76 | #endif
77 |
--------------------------------------------------------------------------------