ScummVM API documentation
te_renderer_opengl.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 TETRAEDGE_TE_TE_RENDERER_OPENGL_H
23#define TETRAEDGE_TE_TE_RENDERER_OPENGL_H
24
25#if defined(USE_OPENGL_GAME)
26
27#include "tetraedge/te/te_renderer.h"
28
29namespace Tetraedge {
30
31class TeRendererOpenGL : public TeRenderer {
32public:
33 TeRendererOpenGL();
34 void clearBuffer(TeRenderer::Buffer buf) override;
35 void colorMask(bool r, bool g, bool b, bool a) override;
36 void disableAllLights() override;
37 void disableTexture() override;
38 void disableWireFrame() override;
39 void disableZBuffer() override;
40 void drawLine(const TeVector3f32 &from, const TeVector3f32 &to) override;
41 void enableAllLights() override;
42 void enableTexture() override;
43 void enableWireFrame() override;
44 void enableZBuffer() override;
45 void init(uint width, uint height) override;
46 void loadProjectionMatrix(const TeMatrix4x4 &matrix) override;
47 Common::String renderer() override;
48 void renderTransparentMeshes() override;
49 void reset() override;
50 void setClearColor(const TeColor &col) override;
51 void setCurrentColor(const TeColor &col) override;
52 void setMatrixMode(enum MatrixMode mode) override;
53 void setViewport(int x, int y, int w, int h) override;
54 void shadowMode(enum ShadowMode mode) override;
55 Common::String vendor() override;
56 void applyMaterial(const TeMaterial &m) override;
57 void updateGlobalLight() override;
58 void updateScreen() override;
59
60protected:
61
62 void loadMatrixToGL(const TeMatrix4x4 &matrix) override;
63};
64
65} // end namespace Tetraedge
66
67#endif // USE_OPENGL
68
69#endif // TETRAEDGE_TE_TE_RENDERER_OPENGL_H
Definition: str.h:59