ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fixed.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * 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, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef AGS_LIB_ALLEGRO_FIXED_H
23 #define AGS_LIB_ALLEGRO_FIXED_H
24 
25 #include "common/scummsys.h"
26 #include "ags/shared/core/types.h"
27 
28 namespace AGS3 {
29 
30 typedef int32_t fixed;
31 
32 extern const fixed _cos_tbl[];
33 extern const fixed _tan_tbl[];
34 extern const fixed _acos_tbl[];
35 
36 extern fixed ftofix(double x);
37 extern double fixtof(fixed x);
38 extern fixed fixadd(fixed x, fixed y);
39 extern fixed fixsub(fixed x, fixed y);
40 extern fixed fixmul(fixed x, fixed y);
41 extern fixed fixdiv(fixed x, fixed y);
42 extern int fixfloor(fixed x);
43 extern int fixceil(fixed x);
44 extern fixed itofix(int x);
45 extern int fixtoi(fixed x);
46 extern fixed fixcos(fixed x);
47 extern fixed fixsin(fixed x);
48 extern fixed fixtan(fixed x);
49 extern fixed fixacos(fixed x);
50 extern fixed fixasin(fixed x);
51 
52 } // namespace AGS3
53 
54 #endif
Definition: ags.h:40