ScummVM API documentation
graphics.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
* Low level graphics interface.
21
*/
22
23
#ifndef TINSEL_GRAPHICS_H
// prevent multiple includes
24
#define TINSEL_GRAPHICS_H
25
26
#include "tinsel/dw.h"
27
#include "tinsel/text.h"
28
29
#include "common/rect.h"
30
#include "common/system.h"
31
#include "graphics/surface.h"
32
33
namespace
Tinsel
{
34
35
struct
PALQ;
36
38
struct
DRAWOBJECT
{
39
char
*charBase;
// character set base address
40
int
transOffset;
// transparent character offset
41
int
flags;
// object flags - see above for list
42
PALQ
*pPal;
// objects palette Q position
43
short
isRLE;
// TinselVersion == 3, if image is using run-length encoding
44
short
colorFlags;
// TinselV3, type of color blending
45
int
constant;
// which color in palette for monochrome objects
46
int
width;
// width of object
47
int
height;
// height of object
48
SCNHANDLE
hBits;
// image bitmap handle
49
int
lineoffset;
// offset to next line
50
int
leftClip;
// amount to clip off object left
51
int
rightClip;
// amount to clip off object right
52
int
topClip;
// amount to clip off object top
53
int
botClip;
// amount to clip off object bottom
54
short
xPos;
// x position of object
55
short
yPos;
// y position of object
56
uint32 baseCol;
// For 4-bit stuff
57
};
58
59
60
/*----------------------------------------------------------------------*\
61
|* Function Prototypes *|
62
\*----------------------------------------------------------------------*/
63
64
void
ClearScreen();
65
void
DrawObject(
DRAWOBJECT
*pObj);
66
67
// called to update a rectangle on the video screen from a video page
68
void
UpdateScreenRect(
const
Common::Rect
&pClip);
69
70
}
// End of namespace Tinsel
71
72
#endif
Tinsel
Definition:
actors.h:36
Tinsel::SCNHANDLE
uint32 SCNHANDLE
Definition:
dw.h:31
Common::Rect
Definition:
rect.h:536
Tinsel::DRAWOBJECT
Definition:
graphics.h:38
Tinsel::PALQ
Definition:
palette.h:69
engines
tinsel
graphics.h
Generated on Sat Oct 24 2026 09:09:19 for ScummVM API documentation by
1.9.4