Use <print> instead of <iostream>
This commit is contained in:
parent
427ccb666b
commit
58fbe465f9
2 changed files with 2 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <iostream>
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
#include <print>
|
||||||
|
|
||||||
#include <tiny_obj_loader.h>
|
#include <tiny_obj_loader.h>
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ struct Scene {
|
||||||
|
|
||||||
std::string err;
|
std::string err;
|
||||||
if (!tinyobj::LoadObj(&o->attrib, &o->shapes, &o->materials, &err, path.data()))
|
if (!tinyobj::LoadObj(&o->attrib, &o->shapes, &o->materials, &err, path.data()))
|
||||||
std::cerr << "Could not load obj: " << err;
|
std::println("Could not load obj: {}", err);
|
||||||
|
|
||||||
return *objects.emplace_back(std::move(o));
|
return *objects.emplace_back(std::move(o));
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <future>
|
#include <future>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <iostream>
|
|
||||||
#include <limits>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue