summaryrefslogtreecommitdiff
path: root/src/doom/r_defs.h
diff options
context:
space:
mode:
authorSimon Howard2008-09-06 20:36:54 +0000
committerSimon Howard2008-09-06 20:36:54 +0000
commit5b6f23990a4006e4811491f336d3a586836fbac2 (patch)
tree17fbe4ac008ec8c309648dfa3204809467a81eed /src/doom/r_defs.h
parent90da953b2310151b5a56f3ea78d8528100fd1fa0 (diff)
downloadchocolate-doom-5b6f23990a4006e4811491f336d3a586836fbac2.tar.gz
chocolate-doom-5b6f23990a4006e4811491f336d3a586836fbac2.tar.bz2
chocolate-doom-5b6f23990a4006e4811491f336d3a586836fbac2.zip
Split off patch code from r_defs.h into a common file. Remove dependency
of v_video.h on Doom rendering code. Subversion-branch: /branches/raven-branch Subversion-revision: 1206
Diffstat (limited to 'src/doom/r_defs.h')
-rw-r--r--src/doom/r_defs.h34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/doom/r_defs.h b/src/doom/r_defs.h
index fe3517c2..bbd4b211 100644
--- a/src/doom/r_defs.h
+++ b/src/doom/r_defs.h
@@ -44,6 +44,7 @@
#include "i_video.h"
+#include "v_patch.h"
@@ -284,18 +285,6 @@ typedef struct
-// posts are runs of non masked source pixels
-typedef struct
-{
- byte topdelta; // -1 is the last post in a column
- byte length; // length data bytes follows
-} PACKEDATTR post_t;
-
-// column_t is a list of 0 or more post_t, (byte)-1 terminated
-typedef post_t column_t;
-
-
-
// PC direct to screen pointers
//B UNUSED - keep till detailshift in r_draw.c resolved
//extern byte* destview;
@@ -351,27 +340,6 @@ typedef struct drawseg_s
-// Patches.
-// A patch holds one or more columns.
-// Patches are used for sprites and all masked pictures,
-// and we compose textures from the TEXTURE1/2 lists
-// of patches.
-typedef struct
-{
- short width; // bounding box size
- short height;
- short leftoffset; // pixels to the left of origin
- short topoffset; // pixels below the origin
- int columnofs[8]; // only [width] used
- // the [0] is &columnofs[width]
-} PACKEDATTR patch_t;
-
-
-
-
-
-
-
// A vissprite_t is a thing
// that will be drawn during a refresh.
// I.e. a sprite object that is partly visible.