Subversion Repositories eduke32

Rev

Rev 4747 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1677 terminx 1
//-------------------------------------------------------------------------
2
/*
3
Copyright (C) 2010 EDuke32 developers and contributors
4
 
5
This file is part of EDuke32.
6
 
7
EDuke32 is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License version 2
9
as published by the Free Software Foundation.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
15
See the GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
4541 hendricks2 19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
1677 terminx 20
*/
21
//-------------------------------------------------------------------------
22
 
4747 terminx 23
#ifndef anim_h_
24
#define anim_h_
1677 terminx 25
 
4657 terminx 26
#define NUM_HARDCODED_ANIMS 12
2242 helixhorne 27
 
4987 terminx 28
typedef struct
29
{
30
    uint8_t* animbuf;
31
    void (*sound_func)(int32_t);
32
    uint16_t *sounds;
33
    int16_t numsounds;
34
    uint8_t framedelay;
35
    char animlock;
36
} dukeanim_t;
2242 helixhorne 37
 
4987 terminx 38
extern dukeanim_t * g_animPtr;
39
extern hashtable_t h_dukeanim;
40
extern dukeanim_t * G_FindAnim(const char *s);
41
extern dukeanim_t * G_DefineAnim(const char *fn, uint8_t framerate, void (*sound_func)(int32_t));
42
int32_t G_PlayAnim(const char *fn);
43
void G_InitAnim(void);
44
 
1677 terminx 45
#endif