ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ddb.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
//=============================================================================
23
//
24
// Driver-dependant bitmap interface.
25
//
26
// This interface describes an individual sprite object. The actual texture
27
// data (pixel data) may be shared among multiple DDBs, while DDB define
28
// additional settings telling how to present the texture: transform, colorize,
29
// and so on.
30
//=============================================================================
31
32
#ifndef AGS_ENGINE_GFX_DDB_H
33
#define AGS_ENGINE_GFX_DDB_H
34
35
namespace
AGS3
{
36
namespace
AGS
{
37
namespace
Engine
{
38
39
class
IDriverDependantBitmap
{
40
public
:
41
// Get an arbitrary sprite ID, returns UINT32_MAX if does not have one
42
virtual
uint32_t GetRefID()
const
= 0;
43
44
virtual
int
GetAlpha()
const
= 0;
45
virtual
void
SetAlpha(
int
alpha) = 0;
// 0-255
46
virtual
void
SetFlippedLeftRight(
bool
isFlipped) = 0;
47
virtual
void
SetStretch(
int
width,
int
height,
bool
useResampler =
true
) = 0;
48
virtual
void
SetLightLevel(
int
light_level) = 0;
// 0-255
49
virtual
void
SetTint(
int
red,
int
green,
int
blue,
int
tintSaturation) = 0;
// 0-255
50
51
virtual
int
GetWidth()
const
= 0;
52
virtual
int
GetHeight()
const
= 0;
53
virtual
int
GetColorDepth()
const
= 0;
54
virtual
bool
MatchesFormat(
AGS::Shared::Bitmap
*other)
const
= 0;
55
56
protected
:
57
IDriverDependantBitmap
() {}
58
virtual
~
IDriverDependantBitmap
() {}
59
};
60
61
}
// namespace Engine
62
}
// namespace AGS
63
}
// namespace AGS3
64
65
#endif
AGS
Definition:
achievements_tables.h:27
AGS3::AGS::Shared::Bitmap
Definition:
allegro_bitmap.h:44
AGS3::AGS::Engine::IDriverDependantBitmap
Definition:
ddb.h:39
Engine
Definition:
engine.h:144
AGS3
Definition:
ags.h:40
engines
ags
engine
gfx
ddb.h
Generated on Wed Apr 9 2025 09:09:45 for ScummVM API documentation by
1.8.13