Added graphics/ImageData class
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "ImageData.h"
|
||||
|
||||
ImageData::ImageData(ImageFormat format, uint width, uint height, void* data)
|
||||
: format(format), width(width), height(height), data(data) {
|
||||
}
|
||||
|
||||
ImageData::~ImageData() {
|
||||
switch (format) {
|
||||
case ImageFormat::rgb888:
|
||||
case ImageFormat::rgba8888:
|
||||
delete[] data;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user