gfx-source-texture: Delete copy and move constructors and operators

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-01-27 22:50:35 +01:00
parent a15f1934b3
commit fa4a81bb54

View file

@ -50,6 +50,15 @@ namespace gfx {
source_texture(std::shared_ptr<obs::source> child, std::shared_ptr<obs::source> parent); source_texture(std::shared_ptr<obs::source> child, std::shared_ptr<obs::source> parent);
source_texture(std::shared_ptr<obs::source> child, obs_source_t* parent); source_texture(std::shared_ptr<obs::source> child, obs_source_t* parent);
public /*copy*/:
source_texture(source_texture const& other) = delete;
source_texture& operator=(source_texture const& other) = delete;
public /*move*/:
source_texture(source_texture&& other) = delete;
source_texture& operator=(source_texture&& other) = delete;
public:
std::shared_ptr<gs::texture> render(size_t width, size_t height); std::shared_ptr<gs::texture> render(size_t width, size_t height);
public: // Unsafe Methods public: // Unsafe Methods