gzdoom/src/swrenderer/scene/r_scene.h
2017-01-15 23:03:58 +01:00

48 lines
1.1 KiB
C++

//
// 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 <stddef.h>
#include "r_defs.h"
#include "d_player.h"
extern cycle_t FrameCycles;
namespace swrenderer
{
extern cycle_t WallCycles, PlaneCycles, MaskedCycles, WallScanCycles;
class RenderScene
{
public:
static RenderScene *Instance();
void Init();
void ScreenResized();
void Deinit();
void SetClearColor(int color);
void RenderView(player_t *player);
void RenderViewToCanvas(AActor *actor, DCanvas *canvas, int x, int y, int width, int height, bool dontmaplines = false);
bool DontMapLines() const { return dontmaplines; }
private:
void RenderActorView(AActor *actor, bool dontmaplines = false);
bool dontmaplines = false;
int clearcolor = 0;
};
}