1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef M4_M4_TYPES_H
#define M4_M4_TYPES_H
#include "common/scummsys.h"
namespace M4 {
#define MAX_STRING_SIZE 144
#define MAX_STRING_LEN 144
#define MAX_FILENAME_SIZE 144
#define MIN_VIDEO_X 0
#define MIN_VIDEO_Y 0
#define MAX_VIDEO_X 639
#define MAX_VIDEO_Y 479
#define VIDEO_W 640
#define VIDEO_H 480
typedef void *Ptr;
typedef void *Handle;
/**
* This needs to be intptr in ScummVM because series_stream in gr_series.cpp stores
* a pointer as a global. On some systems size(ptr) > sizeof(int)
*/
typedef intptr frac16;
typedef uint32 ulong;
typedef uint32 quadchar;
typedef uint32 trigraph;
typedef byte Bit;
typedef byte Bool;
typedef byte boolean;
typedef byte Boolean;
typedef byte byte;
typedef byte Byte;
typedef uint16 word;
typedef uint16 Word;
typedef uint32 DWord;
enum {
TRIG_INV_CLICK = 32000,
TRIG_RESTORE_GAME
};
struct Buffer {
int32 w;
int32 h;
uint8 *data;
uint8 encoding;
int32 stride;
uint8 *getBasePtr(int x, int y) {
return data + y * w + x;
}
const uint8 *getBasePtr(int x, int y) const {
return data + y * w + x;
}
};
struct token {
char *sym_name;
int32 tag;
};
#include "common/pack-start.h" // START STRUCT PACKING
struct RGB8 {
byte r, g, b;
} PACKED_STRUCT;
#include "common/pack-end.h" // END STRUCT PACKING
typedef void (*FuncPtr)();
typedef bool (*FuncPtr_b_l)(int32);
typedef void (*FuncPtr_v_vv)(void *, void *);
typedef FuncPtr_b_l ExceptionPtr;
typedef FuncPtr_v_vv M4CALLBACK;
} // namespace M4
#endif
|