2017-01-11 18:50:07 +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.
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "tarray.h"
|
|
|
|
|
|
|
|
#define MINZ double((2048*4) / double(1 << 20))
|
|
|
|
|
|
|
|
struct particle_t;
|
|
|
|
struct FVoxel;
|
|
|
|
|
|
|
|
namespace swrenderer
|
|
|
|
{
|
2017-01-16 04:26:22 +00:00
|
|
|
class VisibleSprite;
|
2017-01-26 06:03:27 +00:00
|
|
|
struct DrawSegment;
|
2017-01-11 18:50:07 +00:00
|
|
|
|
2017-01-11 19:42:39 +00:00
|
|
|
class RenderTranslucentPass
|
2017-01-11 18:50:07 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-01-26 07:36:28 +00:00
|
|
|
static RenderTranslucentPass *Instance();
|
2017-01-11 18:50:07 +00:00
|
|
|
|
2017-01-26 07:36:28 +00:00
|
|
|
void Deinit();
|
|
|
|
void Clear();
|
|
|
|
void Render();
|
2017-01-11 18:50:07 +00:00
|
|
|
|
2017-01-26 07:36:28 +00:00
|
|
|
bool ClipSpriteColumnWithPortals(int x, VisibleSprite *spr);
|
2017-01-11 18:50:07 +00:00
|
|
|
|
|
|
|
private:
|
2017-01-26 07:36:28 +00:00
|
|
|
void CollectPortals();
|
|
|
|
void DrawMaskedSingle(bool renew);
|
2017-01-11 18:50:07 +00:00
|
|
|
|
2017-01-26 07:36:28 +00:00
|
|
|
TArray<DrawSegment *> portaldrawsegs;
|
2017-01-11 18:50:07 +00:00
|
|
|
};
|
|
|
|
}
|