2017-01-03 06:17:54 +00:00
|
|
|
//
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
//
|
|
|
|
// This source is available for distribution and/or modification
|
|
|
|
// only under the terms of the DOOM Source Code License as
|
|
|
|
// published by id Software. All rights reserved.
|
|
|
|
//
|
|
|
|
// The source is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
|
|
// for more details.
|
|
|
|
//
|
2016-12-28 00:35:22 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class FTexture;
|
|
|
|
struct FLightNode;
|
2017-01-12 15:21:46 +00:00
|
|
|
struct seg_t;
|
2016-12-28 00:35:22 +00:00
|
|
|
|
|
|
|
namespace swrenderer
|
|
|
|
{
|
2017-01-01 09:28:35 +00:00
|
|
|
struct drawseg_t;
|
2017-01-03 17:57:48 +00:00
|
|
|
struct FWallCoords;
|
2017-01-01 09:28:35 +00:00
|
|
|
|
2016-12-28 00:35:22 +00:00
|
|
|
struct WallSampler
|
|
|
|
{
|
|
|
|
WallSampler() { }
|
|
|
|
WallSampler(int y1, float swal, double yrepeat, fixed_t xoffset, double xmagnitude, FTexture *texture, const BYTE*(*getcol)(FTexture *texture, int x));
|
|
|
|
|
|
|
|
uint32_t uv_pos;
|
|
|
|
uint32_t uv_step;
|
|
|
|
uint32_t uv_max;
|
|
|
|
|
|
|
|
const BYTE *source;
|
|
|
|
const BYTE *source2;
|
|
|
|
uint32_t texturefracx;
|
|
|
|
uint32_t height;
|
|
|
|
};
|
|
|
|
|
2017-01-03 17:57:48 +00:00
|
|
|
void R_DrawWallSegment(sector_t *frontsector, seg_t *curline, const FWallCoords &WallC, FTexture *rw_pic, int x1, int x2, short *walltop, short *wallbottom, float *swall, fixed_t *lwall, double yscale, double top, double bottom, bool mask, int wallshade, fixed_t xoffset, float light, float lightstep, FLightNode *light_list);
|
|
|
|
void R_DrawSkySegment(FTexture *rw_pic, int x1, int x2, short *uwal, short *dwal, float *swal, fixed_t *lwal, double yrepeat, int wallshade, fixed_t xoffset, float light, float lightstep, const uint8_t *(*getcol)(FTexture *tex, int col));
|
|
|
|
void R_DrawDrawSeg(sector_t *frontsector, seg_t *curline, const FWallCoords &WallC, FTexture *rw_pic, drawseg_t *ds, int x1, int x2, short *uwal, short *dwal, float *swal, fixed_t *lwal, double yrepeat, int wallshade, fixed_t xoffset, float light, float lightstep);
|
2016-12-28 00:35:22 +00:00
|
|
|
}
|