loading new image data into a texture

additional ImageAsset property
This commit is contained in:
devZoGok
2024-09-27 17:25:18 +03:00
parent 63990e0ef0
commit c08ac0fd12
4 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -18,6 +18,6 @@ namespace vb01{
stbi_set_flip_vertically_on_load(flip);
int width, height, numChannels;
u8 *data = stbi_load(path.c_str(), &width, &height, &numChannels, 0);
return new ImageAsset(path, data, width, height);
return new ImageAsset(path, data, width, height, numChannels);
}
}