aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/Texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/facade/Texture.cpp')
-rw-r--r--src/crepe/facade/Texture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crepe/facade/Texture.cpp b/src/crepe/facade/Texture.cpp
index c24312a..220ef2e 100644
--- a/src/crepe/facade/Texture.cpp
+++ b/src/crepe/facade/Texture.cpp
@@ -25,7 +25,11 @@ Texture::~Texture(){
}
}
void Texture::load(std::unique_ptr<api::Resource> res) {
+ dbg_trace();
SdlContext& ctx = SdlContext::get_instance();
m_texture = ctx.setTextureFromPath(res->canonical());
}
+SDL_Texture* Texture::get_texture() const{
+ return m_texture;
+}