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

52 lines
1.2 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"
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:
static void Render(DPSprite *pspr, AActor *owner, float bobx, float boby, double wx, double wy, double ticfrac, int spriteshade);
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
{
vissprite_t *vis;
FDynamicColormap *basecolormap;
int x1;
};
static TArray<vispsp_t> vispsprites;
static unsigned int vispspindex;
static double pspritexscale;
static double pspritexiscale;
static double pspriteyscale;
static TArray<vissprite_t> avis;
};
}