Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Tim Sylvester <tim@wetdogweather.com> Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Stefan Karschti <stefan.karschti@gmail.com> Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mwilsnd <53413200+mwilsnd@users.noreply.github.com> Co-authored-by: Alex Cristici <alex@skoon.energy> Co-authored-by: Bart Louwers <bart.louwers@gmail.com> Co-authored-by: Wei Chen <alanchenboy@gmail.com> Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com> Co-authored-by: tdcosta100 <tdcosta100@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
24 lines
526 B
C++
24 lines
526 B
C++
#pragma once
|
|
|
|
#include <mbgl/gfx/offscreen_texture.hpp>
|
|
#include <mbgl/gfx/types.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace mtl {
|
|
|
|
class Context;
|
|
class Texture2D;
|
|
|
|
class OffscreenTexture final : public gfx::OffscreenTexture {
|
|
public:
|
|
OffscreenTexture(Context&, Size size, gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte);
|
|
|
|
bool isRenderable() override;
|
|
|
|
PremultipliedImage readStillImage() override;
|
|
const gfx::Texture2DPtr& getTexture() override;
|
|
};
|
|
|
|
} // namespace mtl
|
|
} // namespace mbgl
|