Initial commit
This commit is contained in:
63
engines/myst3/gfx_tinygl_texture.h
Normal file
63
engines/myst3/gfx_tinygl_texture.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef GFX_TINYGL_TEXTURE_H
|
||||
#define GFX_TINYGL_TEXTURE_H
|
||||
|
||||
#include "common/textconsole.h"
|
||||
|
||||
#include "graphics/surface.h"
|
||||
#include "graphics/tinygl/tinygl.h"
|
||||
|
||||
#include "engines/myst3/gfx.h"
|
||||
|
||||
namespace Myst3 {
|
||||
|
||||
class TinyGLTexture2D : public Texture {
|
||||
public:
|
||||
TinyGLTexture2D(const Graphics::Surface *surface);
|
||||
virtual ~TinyGLTexture2D();
|
||||
|
||||
TinyGL::BlitImage *getBlitTexture() const;
|
||||
|
||||
void update(const Graphics::Surface *surface) override;
|
||||
void updatePartial(const Graphics::Surface *surface, const Common::Rect &rect) override;
|
||||
|
||||
private:
|
||||
TinyGL::BlitImage *_blitImage;
|
||||
};
|
||||
|
||||
class TinyGLTexture3D : public Texture {
|
||||
public:
|
||||
TinyGLTexture3D(const Graphics::Surface *surface);
|
||||
virtual ~TinyGLTexture3D();
|
||||
|
||||
void update(const Graphics::Surface *surface) override;
|
||||
void updatePartial(const Graphics::Surface *surface, const Common::Rect &rect) override;
|
||||
|
||||
TGLuint id;
|
||||
TGLuint internalFormat;
|
||||
TGLuint sourceFormat;
|
||||
};
|
||||
|
||||
} // End of namespace Myst3
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user