aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Texture.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 08:21:24 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 08:21:24 +0100
commit80836bce1294898f3d115ed363edd6d921aa15d5 (patch)
tree3cd36d3dd9bfe016d6056b53b4f18c3355b7edb2 /src/crepe/api/Texture.h
parent43695ecee65d63ba89bdab3eb49b5ada0eef399f (diff)
adjusted texture and sprite to hold a texture, instead of reference
Diffstat (limited to 'src/crepe/api/Texture.h')
-rw-r--r--src/crepe/api/Texture.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/Texture.h b/src/crepe/api/Texture.h
index b4f7d07..dc4a6d7 100644
--- a/src/crepe/api/Texture.h
+++ b/src/crepe/api/Texture.h
@@ -35,6 +35,11 @@ public:
*/
~Texture();
// FIXME: this constructor shouldn't be necessary because this class doesn't manage memory
+
+ Texture(Texture&& other) noexcept;
+ Texture& operator=(Texture&& other) noexcept;
+ Texture(const Texture&) = delete;
+ Texture& operator=(const Texture&) = delete;
/**
* \brief Gets the width of the texture.