XenevaOS
Loading...
Searching...
No Matches
p_pspr.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION:
16// Sprite animation.
17//
18
19
20#ifndef __P_PSPR__
21#define __P_PSPR__
22
23// Basic data types.
24// Needs fixed point, and BAM angles.
25#include "m_fixed.h"
26#include "tables.h"
27
28
29//
30// Needs to include the precompiled
31// sprite animation tables.
32// Header generated by multigen utility.
33// This includes all the data for thing animation,
34// i.e. the Thing Atrributes table
35// and the Frame Sequence table.
36#include "info.h"
37
38
39
40//
41// Frame flags:
42// handles maximum brightness (torches, muzzle flare, light sources)
43//
44#define FF_FULLBRIGHT 0x8000 // flag in thing->frame
45#define FF_FRAMEMASK 0x7fff
46
47
48
49//
50// Overlay psprites are scaled shapes
51// drawn directly on the view screen,
52// coordinates are given for a 320*200 view screen.
53//
61
62typedef struct
63{
64 state_t* state; // a NULL state means not active
65 int tics;
68
69} pspdef_t;
70
71#endif
int fixed_t
Definition m_fixed.h:32
psprnum_t
Definition p_pspr.h:55
@ NUMPSPRITES
Definition p_pspr.h:58
@ ps_weapon
Definition p_pspr.h:56
@ ps_flash
Definition p_pspr.h:57
Definition p_pspr.h:63
int tics
Definition p_pspr.h:65
state_t * state
Definition p_pspr.h:64
fixed_t sx
Definition p_pspr.h:66
fixed_t sy
Definition p_pspr.h:67
Definition info.h:1145