ScummVM API documentation
hsi.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
#ifndef SLUDGE_HSI_H
22
#define SLUDGE_HSI_H
23
24
#include "image/image_decoder.h"
25
26
namespace
Sludge
{
27
28
class
HSIDecoder
:
public
Image::ImageDecoder
{
29
public
:
30
HSIDecoder
();
31
~
HSIDecoder
()
override
;
32
33
// ImageDecoder API
34
void
destroy
()
override
;
35
bool
loadStream
(
Common::SeekableReadStream
&stream)
override
;
36
Graphics::Surface
*
getSurface
()
const override
{
return
_surface; }
37
void
setReserve(
bool
reserve) { _reserve = reserve; }
38
39
private
:
40
Graphics::Surface
*_surface;
41
int
_reserve;
42
};
43
44
}
// End of namespace Sludge
45
46
#endif
Sludge::HSIDecoder::getSurface
Graphics::Surface * getSurface() const override
Definition:
hsi.h:36
Image::ImageDecoder
Definition:
image_decoder.h:52
Graphics::Surface
Definition:
surface.h:67
Sludge::HSIDecoder::loadStream
bool loadStream(Common::SeekableReadStream &stream) override
Sludge::HSIDecoder::destroy
void destroy() override
Common::SeekableReadStream
Definition:
stream.h:745
Sludge::HSIDecoder
Definition:
hsi.h:28
Sludge
Definition:
builtin.h:27
engines
sludge
hsi.h
Generated on Sat Aug 31 2024 09:16:49 for ScummVM API documentation by
1.8.13