14Graphics5::Texture::Texture(void* data, int size, const char* format, bool readable) {
15 BufferReader reader(data, size);
16 Image::init(reader, format, readable);
17 _init(format, readable);
18}
19
20Graphics5::Texture::Texture(void* data, int width, int height, int format, bool readable) : Image(data, width, height, Image::Format(format), readable) {