ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
psx_anims.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
* Additional copyright for this file:
8
* Copyright (C) 1999-2000 Revolution Software Ltd.
9
* This code is based on source code created by Revolution Software,
10
* used with permission.
11
*
12
* This program is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
*
25
*/
26
27
#ifndef ICB_PSX_ANIMS_HH
28
#define ICB_PSX_ANIMS_HH
29
30
#include "engines/icb/debug.h"
31
#include "engines/icb/common/px_common.h"
32
#include "engines/icb/common/px_anims.h"
33
34
namespace
ICB
{
35
36
inline
PXframe_PSX *PXFrameEnOfAnim(uint32 n, PXanim_PSX *pAnim) {
37
// Convert to the new schema
38
ConvertPXanim(pAnim);
39
if
(n >= pAnim->frame_qty) {
40
Real_Fatal_error(
"Illegal frame %d %d %s %d"
, n, pAnim->frame_qty);
41
error
(
"Should exit with error-code -1"
);
42
return
NULL;
43
}
44
return
(PXframe_PSX *)((uint8 *)pAnim + FROM_LE_16(pAnim->offsets[n]));
45
}
46
47
}
// End of namespace ICB
48
49
#endif // #ifndef PSX_ANIMS_HH
ICB
Definition:
actor.h:32
error
void NORETURN_PRE error(MSVC_PRINTF const char *s,...) GCC_PRINTF(1
engines
icb
gfx
psx_anims.h
Generated on Sun Apr 6 2025 09:14:41 for ScummVM API documentation by
1.8.13