mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
loading new image data into a texture
additional ImageAsset property
This commit is contained in:
+3
-2
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user