gzdoom-gles/src/swrenderer/scene/r_translucent_pass.h

46 lines
994 B
C
Raw Normal View History

//
// 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
{
class VisibleSprite;
2017-01-26 06:03:27 +00:00
struct DrawSegment;
class RenderTranslucentPass
{
public:
static void Deinit();
static void Clear();
static void Render();
static bool DrewAVoxel;
static bool ClipSpriteColumnWithPortals(int x, VisibleSprite *spr);
private:
static void CollectPortals();
static void DrawMaskedSingle(bool renew);
2017-01-26 06:03:27 +00:00
static TArray<DrawSegment *> portaldrawsegs;
};
}