#include "pch.h" #include "image.h" #include bool Image::load(std::string filename) { stbi_set_flip_vertically_on_load(true); uint8_t* buffer = stbi_load(filename.c_str(), &width, &height, nullptr, 4); comp = 4; m_data = std::unique_ptr(buffer); return true; }