mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-19 10:51:26 +00:00
c412b42703
- The stat meters now return an FString instead of sprintfing into a fixed output buffer. - NOASM is now automatically defined when compiling for a non-x86 target. - Some changes have been made to the integral types in doomtype.h: - For consistancy with the other integral types, byte is no longer a synonym for BYTE. - Most uses of BOOL have been change to the standard C++ bool type. Those that weren't were changed to INTBOOL to indicate they may contain values other than 0 or 1 but are still used as a boolean. - Compiler-provided types with explicit bit sizes are now used. In particular, DWORD is no longer a long so it will work with both 64-bit Windows and Linux. - Since some files need to include Windows headers, uint32 is a synonym for the non-Windows version of DWORD. - Removed d_textur.h. The pic_t struct it defined was used nowhere, and that was all it contained. SVN r326 (trunk)
82 lines
2.4 KiB
C++
82 lines
2.4 KiB
C++
// Emacs style mode select -*- C++ -*-
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// $Id:$
|
|
//
|
|
// 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.
|
|
//
|
|
// DESCRIPTION:
|
|
// Refresh module, BSP traversal and handling.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef __R_BSP__
|
|
#define __R_BSP__
|
|
|
|
#include "tarray.h"
|
|
#include <stddef.h>
|
|
|
|
struct drawseg_t
|
|
{
|
|
seg_t* curline;
|
|
fixed_t light, lightstep;
|
|
fixed_t iscale, iscalestep;
|
|
short x1, x2; // Same as sx1 and sx2, but clipped to the drawseg
|
|
short sx1, sx2; // left, right of parent seg on screen
|
|
fixed_t sz1, sz2; // z for left, right of parent seg on screen
|
|
fixed_t siz1, siz2; // 1/z for left, right of parent seg on screen
|
|
BYTE silhouette; // 0=none, 1=bottom, 2=top, 3=both
|
|
BYTE bFogBoundary;
|
|
int shade;
|
|
// Pointers to lists for sprite clipping,
|
|
// all three adjusted so [x1] is first value.
|
|
ptrdiff_t sprtopclip; // type short
|
|
ptrdiff_t sprbottomclip; // type short
|
|
ptrdiff_t maskedtexturecol; // type short
|
|
ptrdiff_t swall; // type fixed_t
|
|
};
|
|
|
|
|
|
extern seg_t* curline;
|
|
extern side_t* sidedef;
|
|
extern line_t* linedef;
|
|
extern sector_t* frontsector;
|
|
extern sector_t* backsector;
|
|
|
|
extern drawseg_t *drawsegs;
|
|
extern drawseg_t *firstdrawseg;
|
|
extern drawseg_t* ds_p;
|
|
|
|
extern TArray<size_t> InterestingDrawsegs; // drawsegs that have something drawn on them
|
|
extern size_t FirstInterestingDrawseg;
|
|
|
|
extern int WindowLeft, WindowRight;
|
|
extern WORD MirrorFlags;
|
|
extern seg_t* ActiveWallMirror;
|
|
|
|
extern TArray<size_t> WallMirrors;
|
|
|
|
typedef void (*drawfunc_t) (int start, int stop);
|
|
|
|
EXTERN_CVAR (Bool, r_drawflat) // [RH] Don't texture segs?
|
|
|
|
// BSP?
|
|
void R_ClearClipSegs (short left, short right);
|
|
void R_ClearDrawSegs ();
|
|
void R_RenderBSPNode (void *node);
|
|
|
|
// killough 4/13/98: fake floors/ceilings for deep water / fake ceilings:
|
|
sector_t *R_FakeFlat(sector_t *, sector_t *, int *, int *, bool);
|
|
|
|
|
|
#endif
|