gzdoom-gles/src/swrenderer/things/r_playersprite.h

55 lines
1.3 KiB
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
2016-12-31 11:45:07 +00:00
#include "r_visiblesprite.h"
#include "r_sprite.h"
class DPSprite;
namespace swrenderer
{
2017-01-11 17:35:20 +00:00
class RenderPlayerSprite
{
public:
static void SetupSpriteScale();
2017-01-11 17:35:20 +00:00
static void RenderPlayerSprites();
static void RenderRemainingPlayerSprites();
private:
2017-01-12 20:29:19 +00:00
static void Render(DPSprite *pspr, AActor *owner, float bobx, float boby, double wx, double wy, double ticfrac, int spriteshade, FDynamicColormap *basecolormap);
2017-01-11 17:35:20 +00:00
2017-01-11 17:38:51 +00:00
enum { BASEXCENTER = 160 };
enum { BASEYCENTER = 100 };
2017-01-11 17:35:20 +00:00
// Used to store a psprite's drawing information if it needs to be drawn later.
struct vispsp_t
{
RenderSprite *vis;
2017-01-11 17:35:20 +00:00
FDynamicColormap *basecolormap;
int x1;
};
static TArray<vispsp_t> vispsprites;
static unsigned int vispspindex;
static double pspritexscale;
static double pspritexiscale;
static double pspriteyscale;
static TArray<RenderSprite> avis;
2017-01-11 17:35:20 +00:00
};
}