2014-03-15 16:59:03 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 1998-2000 by DooM Legacy Team.
|
2020-02-19 22:08:45 +00:00
|
|
|
// Copyright (C) 1999-2020 by Sonic Team Junior.
|
2014-03-15 16:59:03 +00:00
|
|
|
//
|
|
|
|
// This program is free software distributed under the
|
|
|
|
// terms of the GNU General Public License, version 2.
|
|
|
|
// See the 'LICENSE' file for more details.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/// \file r_splats.h
|
|
|
|
/// \brief Flat sprites & splats effects
|
|
|
|
|
|
|
|
#ifndef __R_SPLATS_H__
|
|
|
|
#define __R_SPLATS_H__
|
|
|
|
|
|
|
|
#include "r_defs.h"
|
2020-10-12 03:13:22 +00:00
|
|
|
#include "r_things.h"
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
// ==========================================================================
|
|
|
|
// DEFINITIONS
|
|
|
|
// ==========================================================================
|
|
|
|
|
2020-10-12 03:13:22 +00:00
|
|
|
struct rastery_s
|
2014-03-15 16:59:03 +00:00
|
|
|
{
|
2020-10-12 03:13:22 +00:00
|
|
|
fixed_t minx, maxx; // for each raster line starting at line 0
|
|
|
|
fixed_t tx1, ty1; // start points in texture at this line
|
|
|
|
fixed_t tx2, ty2; // end points in texture at this line
|
|
|
|
};
|
|
|
|
extern struct rastery_s *prastertab; // for ASM code
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
typedef struct floorsplat_s
|
|
|
|
{
|
2020-10-14 01:42:07 +00:00
|
|
|
UINT16 *pic;
|
2020-10-12 03:13:22 +00:00
|
|
|
INT32 width, height;
|
|
|
|
fixed_t scale, xscale, yscale;
|
|
|
|
angle_t angle;
|
2020-10-14 01:42:07 +00:00
|
|
|
boolean tilted; // Uses the tilted drawer
|
|
|
|
pslope_t slope;
|
2020-10-12 03:13:22 +00:00
|
|
|
|
2020-10-14 01:42:07 +00:00
|
|
|
vector3_t verts[4]; // (x,y,z) as viewed from above on map
|
2020-10-12 03:13:22 +00:00
|
|
|
fixed_t x, y, z; // position
|
2014-03-15 16:59:03 +00:00
|
|
|
mobj_t *mobj; // Mobj it is tied to
|
|
|
|
} floorsplat_t;
|
|
|
|
|
2020-11-05 00:43:16 +00:00
|
|
|
void R_DrawFloorSprite(vissprite_t *spr);
|
2020-10-14 01:42:07 +00:00
|
|
|
void R_RenderFloorSplat(floorsplat_t *pSplat, vector2_t *verts, vissprite_t *vis);
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
#endif /*__R_SPLATS_H__*/
|