added download option for texture

This commit is contained in:
itsmattkc
2021-12-30 11:47:58 -08:00
parent eab3148d99
commit d7439ba520
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -40,4 +40,11 @@ void Texture::Upload(void *data, int linesize)
}
}
void Texture::Download(void *data, int linesize)
{
if (renderer_) {
renderer_->DownloadFromTexture(this, data, linesize);
}
}
}