Texture2D::Texture2D(const Pixmap &pixmap) : Texture2D(pixmap.getData().data(), pixmap.getInformation()) {}