From 80058fdcb0b878b7c50a8011d519f3b5529a2028 Mon Sep 17 00:00:00 2001 From: UKABUER Date: Fri, 30 Nov 2018 20:24:14 +0800 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69ffb89..9493400 100644 --- a/README.md +++ b/README.md @@ -204,9 +204,10 @@ std::string inputfile = "cornell_box.obj"; tinyobj::attrib_t attrib; std::vector shapes; std::vector materials; - + +std::string warn; std::string err; -bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &err, inputfile.c_str()); +bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, inputfile.c_str()); if (!err.empty()) { // `err` may contain warning message. std::cerr << err << std::endl;