Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
25 lines
551 B
C++
25 lines
551 B
C++
#pragma once
|
|
|
|
#include <mbgl/gfx/offscreen_texture.hpp>
|
|
#include <mbgl/gfx/types.hpp>
|
|
|
|
namespace mln {
|
|
namespace gl {
|
|
|
|
class Context;
|
|
|
|
class OffscreenTexture final : public gfx::OffscreenTexture {
|
|
public:
|
|
OffscreenTexture(gl::Context&,
|
|
Size size,
|
|
gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte);
|
|
|
|
bool isRenderable() override;
|
|
|
|
PremultipliedImage readStillImage() override;
|
|
const gfx::Texture2DPtr& getTexture() override;
|
|
};
|
|
|
|
} // namespace gl
|
|
} // namespace mln
|