summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/r_things.h
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-04-02 01:52:44 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-04-02 01:52:44 +0000
commit51db2d3f2cfddfb1c94de1085d130c817bcd953f (patch)
treea8452577070b7febf0ec640d2a065cd7e2c89847 /apps/plugins/doom/r_things.h
parente61b079c26e5eaa12f403da6964ac20282df248e (diff)
downloadrockbox-51db2d3f2cfddfb1c94de1085d130c817bcd953f.tar.gz
rockbox-51db2d3f2cfddfb1c94de1085d130c817bcd953f.zip
Update adds prboom's high resolution support, also makes the scaling for platforms w/ resolution less then 320x200 much nicer. IDoom's lookup table code has been removed. Also fixed a pallete bug. Some graphic errors are present in menu and status bar. Also updates some headers and output formatting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9418 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/r_things.h')
-rw-r--r--apps/plugins/doom/r_things.h112
1 files changed, 49 insertions, 63 deletions
diff --git a/apps/plugins/doom/r_things.h b/apps/plugins/doom/r_things.h
index dc93e30d54..c3308744b8 100644
--- a/apps/plugins/doom/r_things.h
+++ b/apps/plugins/doom/r_things.h
@@ -1,80 +1,66 @@
1// Emacs style mode select -*- C++ -*- 1/* Emacs style mode select -*- C++ -*-
2//----------------------------------------------------------------------------- 2 *-----------------------------------------------------------------------------
3// 3 *
4// $Id$ 4 *
5// 5 * PrBoom a Doom port merged with LxDoom and LSDLDoom
6// Copyright (C) 1993-1996 by id Software, Inc. 6 * based on BOOM, a modified and improved DOOM engine
7// 7 * Copyright (C) 1999 by
8// This program is free software; you can redistribute it and/or 8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9// modify it under the terms of the GNU General Public License 9 * Copyright (C) 1999-2000 by
10// as published by the Free Software Foundation; either version 2 10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11// of the License, or (at your option) any later version. 11 *
12// 12 * This program is free software; you can redistribute it and/or
13// This program is distributed in the hope that it will be useful, 13 * modify it under the terms of the GNU General Public License
14// but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * as published by the Free Software Foundation; either version 2
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * of the License, or (at your option) any later version.
16// GNU General Public License for more details. 16 *
17// 17 * This program is distributed in the hope that it will be useful,
18// DESCRIPTION: 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19// Rendering of moving objects, sprites. 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20// 20 * GNU General Public License for more details.
21//----------------------------------------------------------------------------- 21 *
22 22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 * 02111-1307, USA.
26 *
27 * DESCRIPTION:
28 * Rendering of moving objects, sprites.
29 *
30 *-----------------------------------------------------------------------------*/
23 31
24#ifndef __R_THINGS__ 32#ifndef __R_THINGS__
25#define __R_THINGS__ 33#define __R_THINGS__
26 34
27
28#ifdef __GNUG__ 35#ifdef __GNUG__
29#pragma interface 36#pragma interface
30#endif 37#endif
31 38
32#define MAXVISSPRITES 128 39/* Constant arrays used for psprite clipping and initializing clipping. */
33/*
34extern vissprite_t vissprites[MAXVISSPRITES];
35extern vissprite_t* vissprite_p;
36extern vissprite_t vsprsortedhead;*/
37
38// Constant arrays used for psprite clipping
39// and initializing clipping.
40extern short negonearray[SCREENWIDTH];
41extern short screenheightarray[SCREENWIDTH];
42
43// vars for R_DrawMaskedColumn
44extern short* mfloorclip;
45extern short* mceilingclip;
46extern fixed_t spryscale;
47extern fixed_t sprtopscreen;
48 40
49extern fixed_t pspritescale; 41extern short negonearray[SCREENWIDTH];
50extern fixed_t pspriteiscale; 42extern short screenheightarray[SCREENWIDTH];
51 43
44/* Vars for R_DrawMaskedColumn */
52 45
53void R_DrawMaskedColumn (const column_t* column); 46extern short *mfloorclip;
54 47extern short *mceilingclip;
55 48extern fixed_t spryscale;
56void R_SortVisSprites (void); 49extern fixed_t sprtopscreen;
50extern fixed_t pspritescale;
51extern fixed_t pspriteiscale;
52/* proff 11/06/98: Added for high-res */
53extern fixed_t pspriteyscale;
57 54
55void R_DrawMaskedColumn(const column_t *column);
56void R_SortVisSprites(void);
58void R_AddSprites(subsector_t* subsec, int lightlevel); 57void R_AddSprites(subsector_t* subsec, int lightlevel);
59void R_AddPSprites (void); 58void R_AddPSprites(void);
60void R_DrawSprites (void); 59void R_DrawSprites(void);
61void R_InitSprites(const char * const * namelist); 60void R_InitSprites(const char * const * namelist);
62void R_ClearSprites (void); 61void R_ClearSprites(void);
63void R_DrawMasked (void); 62void R_DrawMasked(void);
64
65void
66R_ClipVisSprite
67( vissprite_t* vis,
68 int xl,
69 int xh );
70 63
64void R_ClipVisSprite(vissprite_t *vis, int xl, int xh);
71 65
72#endif 66#endif
73//-----------------------------------------------------------------------------
74//
75// $Log$
76// Revision 1.1 2006/03/28 15:44:01 dave
77// Patch #2969 - Doom! Currently only working on the H300.
78//
79//
80//-----------------------------------------------------------------------------