ScummVM API documentation
dcutils.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 DC_DCUTILS_H
23
#define DC_DCUTILS_H
24
25
extern
int
getCdState();
26
27
class
TextureStack
{
28
private
:
29
void
*mark;
30
public
:
31
TextureStack
() {
32
ta_sync();
33
mark = ta_txmark();
34
}
35
~
TextureStack
() {
36
ta_sync();
37
ta_txrelease(mark);
38
}
39
};
40
41
class
DiscLabel
{
42
private
:
43
char
buf[32];
44
public
:
45
DiscLabel
();
46
bool
operator==(
const
DiscLabel
&other)
const
;
47
void
get
(
char
*p)
const
;
48
};
49
50
class
DiscSwap
:
TextureStack
{
51
private
:
52
unsigned
int
argb;
53
float
x;
54
Label
lab;
55
protected
:
56
virtual
void
background() {}
57
virtual
void
interact() {}
58
public
:
59
DiscSwap
(
const
char
*label,
unsigned
int
argb);
60
virtual
~
DiscSwap
() {}
61
void
run();
62
};
63
64
extern
void
draw_solid_quad(
float
x1,
float
y1,
float
x2,
float
y2,
65
int
c0,
int
c1,
int
c2,
int
c3);
66
extern
void
draw_trans_quad(
float
x1,
float
y1,
float
x2,
float
y2,
67
int
c0,
int
c1,
int
c2,
int
c3);
68
69
namespace
DC_Flash
{
70
int
flash_read_sector(
int
partition,
int
sec,
unsigned
char
*dst);
71
int
get_locale_setting();
72
}
// End of namespace DC_Flash
73
74
75
#endif
/* DC_DCUTILS_H */
DC_Flash
Definition:
dcutils.h:69
TextureStack
Definition:
dcutils.h:27
DiscSwap
Definition:
dcutils.h:50
DiscLabel
Definition:
dcutils.h:41
Label
Definition:
label.h:25
backends
platform
dc
dcutils.h
Generated on Mon Dec 23 2024 09:04:11 for ScummVM API documentation by
1.8.13