ScummVM API documentation
gfx_tinygl_texture.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 FREESCAPE_GFX_TINYGL_TEXTURE_H
23#define FREESCAPE_GFX_TINYGL_TEXTURE_H
24
25#include "graphics/tinygl/zgl.h"
26
27#include "freescape/gfx.h"
28
29namespace Freescape {
30
31class TinyGL2DTexture : public Texture {
32public:
33 TinyGL2DTexture(const Graphics::Surface *surface);
34 virtual ~TinyGL2DTexture();
35
36 TinyGL::BlitImage *getBlitTexture() const;
37
38 void update(const Graphics::Surface *surface) override;
39 void updatePartial(const Graphics::Surface *surface, const Common::Rect &rect) override;
40
41 TGLuint _internalFormat;
42 TGLuint _sourceFormat;
43
44private:
45 TinyGL::BlitImage *_blitImage;
46};
47
48
49class TinyGL3DTexture : public Texture {
50public:
51 TinyGL3DTexture(const Graphics::Surface *surface);
52 TinyGL3DTexture(byte *stipple, uint32 color1, uint32 color2);
53 virtual ~TinyGL3DTexture();
54
55 void update(const Graphics::Surface *surface) override;
56 void updatePartial(const Graphics::Surface *surface, const Common::Rect &rect) override;
57
58 TGLuint _id;
59 TGLuint _internalFormat;
60 TGLuint _sourceFormat;
61 uint32 _internalWidth;
62 uint32 _internalHeight;
63 bool _upsideDown;
64};
65
66} // End of namespace Freescape
67
68#endif // FREESCAPE_GFX_TINYGL_TEXTURE_H
Definition: gfx.h:50
Definition: gfx_tinygl_texture.h:31
Definition: gfx_tinygl_texture.h:49
Definition: area.h:36
Definition: rect.h:536
Definition: surface.h:67