ScummVM API documentation
ws_hal.h
1
2/* ScummVM - Graphic Adventure Engine
3 *
4 * ScummVM is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT
6 * file distributed with this source distribution.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef M4_WSCRIPT_WS_HAL_H
24#define M4_WSCRIPT_WS_HAL_H
25
26#include "m4/wscript/ws_machine.h"
27#include "m4/wscript/ws_cruncher.h"
28
29namespace M4 {
30
31#define CCB_SKIP 0x0001
32#define CCB_HIDE 0x0002
33#define CCB_REDRAW 0x0004
34#define CCB_STREAM 0x0008
35#define CCB_DISC_STREAM 0x0010
36
37#define CCB_NO_DRAW (CCB_SKIP | CCB_HIDE)
38
40 RectList *_deadRectList = nullptr;
41};
42
43bool ws_InitHAL();
44void ws_KillHAL();
45
46void ws_DoDisplay(Buffer *background, int16 *depth_table, Buffer *screenCodeBuff,
47 uint8 *myPalette, uint8 *ICT, bool updateVideo);
48void ws_hal_RefreshWoodscriptBuffer(cruncher *myCruncher, Buffer *background,
49 int16 *depth_table, Buffer *screenCodes, uint8 *myPalette, uint8 *ICT);
50void GetBezCoeffs(frac16 *ctrlPoints, frac16 *coeffs);
51void GetBezPoint(frac16 *x, frac16 *y, frac16 *coeffs, frac16 tVal);
52void InitCCB(CCB *myCCB);
53void HideCCB(CCB *myCCB);
54void ShowCCB(CCB *myCCB);
55
56void KillCCB(CCB *myCCB, bool restoreFlag);
57void Cel_msr(Anim8 *myAnim8);
58void ws_OverrideCrunchTime(machine *m);
59
60void ws_Error(machine *m, const char *errMsg);
61void ws_LogErrorMsg(const char *sourceFile, uint32 lineNum, const char *fmt, ...);
62
63} // End of namespace M4
64
65#endif
Definition: database.h:28
intptr frac16
Definition: m4_types.h:45
Definition: ws_machine.h:118
Definition: m4_types.h:54
Definition: ws_machine.h:102
Definition: gui.h:59
Definition: ws_hal.h:39
Definition: ws_cruncher.h:68
Definition: ws_machine.h:156