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
+3 -2
View File
@@ -5,15 +5,16 @@
namespace vb01{
struct ImageAsset : public Asset{
ImageAsset(std::string path, u8 *image, int width, int height){
ImageAsset(std::string path, u8 *image, int width, int height, int numChannels){
this->path = path;
this->image = image;
this->width = width;
this->height = height;
this->numChannels = numChannels;
}
u8 *image;
int width, height;
int width, height, numChannels;
};
}