mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-16 23:40:55 +00:00
37 lines
704 B
C
37 lines
704 B
C
|
#pragma once
|
||
|
|
||
|
#include "vectors.h"
|
||
|
|
||
|
class DPSprite;
|
||
|
class player_t;
|
||
|
class AActor;
|
||
|
enum area_t : int;
|
||
|
|
||
|
struct WeaponPosition
|
||
|
{
|
||
|
float wx, wy;
|
||
|
float bobx, boby;
|
||
|
DPSprite *weapon;
|
||
|
};
|
||
|
|
||
|
struct WeaponLighting
|
||
|
{
|
||
|
FColormap cm;
|
||
|
int lightlevel;
|
||
|
bool isbelow;
|
||
|
};
|
||
|
|
||
|
struct WeaponRenderStyle
|
||
|
{
|
||
|
FRenderStyle RenderStyle;
|
||
|
float alpha;
|
||
|
int OverrideShader;
|
||
|
};
|
||
|
|
||
|
|
||
|
bool isBright(DPSprite *psp);
|
||
|
WeaponPosition GetWeaponPosition(player_t *player);
|
||
|
FVector2 BobWeapon(WeaponPosition &weap, DPSprite *psp);
|
||
|
WeaponLighting GetWeaponLighting(sector_t *viewsector, const DVector3 &pos, int FixedColormap, area_t in_area, const DVector3 &playerpos );
|
||
|
WeaponRenderStyle GetWeaponRenderStyle(DPSprite *psp, AActor *playermo);
|