ScummVM API documentation
shadow_volume_tinygl.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 * This file is based on WME.
24 * http://dead-code.org/redir.php?target=wme
25 * Copyright (c) 2003-2013 Jan Nedoma and contributors
26 */
27
28#ifndef WINTERMUTE_SHADOW_VOLUME_TINYGL_H
29#define WINTERMUTE_SHADOW_VOLUME_TINYGL_H
30
31#include "engines/wintermute/base/gfx/3dshadow_volume.h"
32
33#if defined(USE_TINYGL)
34
35#include "graphics/tinygl/tinygl.h"
36
37namespace Wintermute {
38
39class ShadowVolumeTinyGL : public ShadowVolume {
40public:
41 ShadowVolumeTinyGL(BaseGame *inGame);
42 virtual ~ShadowVolumeTinyGL();
43
44 bool renderToStencilBuffer() override;
45 bool renderToScene() override;
46
47private:
48 bool render();
49 ShadowVertex _shadowMask[4]{};
50 bool initMask() override;
51};
52
53} // namespace Wintermute
54
55#endif // defined(USE_TINYGL)
56
57#endif