2018-04-29 21:38:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "vectors.h"
|
|
|
|
|
|
|
|
class DPSprite;
|
|
|
|
class player_t;
|
|
|
|
class AActor;
|
|
|
|
enum area_t : int;
|
2018-05-03 21:49:16 +00:00
|
|
|
struct FSpriteModelFrame;
|
2018-05-04 21:11:37 +00:00
|
|
|
struct HWDrawInfo;
|
2018-05-03 21:49:16 +00:00
|
|
|
|
2018-04-29 21:38:26 +00:00
|
|
|
|
|
|
|
struct WeaponPosition
|
|
|
|
{
|
|
|
|
float wx, wy;
|
|
|
|
float bobx, boby;
|
|
|
|
DPSprite *weapon;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WeaponLighting
|
|
|
|
{
|
|
|
|
FColormap cm;
|
|
|
|
int lightlevel;
|
|
|
|
bool isbelow;
|
|
|
|
};
|
|
|
|
|
2018-05-03 21:49:16 +00:00
|
|
|
struct HUDSprite
|
2018-04-29 21:38:26 +00:00
|
|
|
{
|
2018-05-03 21:49:16 +00:00
|
|
|
AActor *owner;
|
|
|
|
DPSprite *weapon;
|
|
|
|
FMaterial *tex;
|
|
|
|
FSpriteModelFrame *mframe;
|
|
|
|
|
|
|
|
FColormap cm;
|
|
|
|
int lightlevel;
|
|
|
|
PalEntry ObjectColor;
|
|
|
|
|
2018-04-29 21:38:26 +00:00
|
|
|
FRenderStyle RenderStyle;
|
|
|
|
float alpha;
|
|
|
|
int OverrideShader;
|
|
|
|
|
2018-05-04 21:11:37 +00:00
|
|
|
float mx, my;
|
2018-05-03 21:49:16 +00:00
|
|
|
float dynrgb[3];
|
|
|
|
|
2018-05-04 21:11:37 +00:00
|
|
|
int lightindex;
|
|
|
|
|
2018-05-03 21:49:16 +00:00
|
|
|
void SetBright(bool isbelow);
|
|
|
|
bool GetWeaponRenderStyle(DPSprite *psp, AActor *playermo, sector_t *viewsector, WeaponLighting &light);
|
2018-05-04 21:11:37 +00:00
|
|
|
bool GetWeaponRect(HWDrawInfo *di, DPSprite *psp, float sx, float sy, player_t *player);
|
2018-05-03 21:49:16 +00:00
|
|
|
|
2018-04-29 22:09:42 +00:00
|
|
|
};
|