factored out common reader behaviour

This commit is contained in:
devZoGok
2022-03-02 20:24:04 +02:00
parent 7a6588f123
commit 77e00b0a64
5 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace vb01{
return imageReader;
}
ImageAsset* ImageReader::readImage(string path, bool flip){
Asset* ImageReader::readAsset(string path){
stbi_set_flip_vertically_on_load(flip);
int width, height, numChannels;
u8 *data = stbi_load(path.c_str(), &width, &height, &numChannels, 0);