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