From 5b6f23990a4006e4811491f336d3a586836fbac2 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 6 Sep 2008 20:36:54 +0000 Subject: 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 --- src/doom/r_defs.h | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'src/doom/r_defs.h') 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. -- cgit v1.2.3