Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
19 lines
376 B
C++
19 lines
376 B
C++
#pragma once
|
|
|
|
#include <mln/gfx/dynamic_texture.hpp>
|
|
|
|
namespace mln {
|
|
namespace mtl {
|
|
|
|
class Context;
|
|
|
|
class DynamicTexture : public gfx::DynamicTexture {
|
|
public:
|
|
DynamicTexture(Context& context, Size size, gfx::TexturePixelType pixelType);
|
|
|
|
void uploadImage(const uint8_t* pixelData, gfx::TextureHandle& texHandle) override;
|
|
};
|
|
|
|
} // namespace mtl
|
|
} // namespace mln
|