mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-05 13:00:41 +08:00
Fix linux build in C++11 strict
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
This commit is contained in:
parent
b62e95f414
commit
aad6f06208
@ -264,7 +264,7 @@ bool LoadGLTF(const std::string &filename, float scale,
|
|||||||
v3fArray positions(
|
v3fArray positions(
|
||||||
arrayAdapter<v3f>(dataPtr, count, byte_stride));
|
arrayAdapter<v3f>(dataPtr, count, byte_stride));
|
||||||
for (size_t i{0}; i < indices.size(); ++i) {
|
for (size_t i{0}; i < indices.size(); ++i) {
|
||||||
const auto index{indices[i]};
|
const auto index(indices[i]);
|
||||||
const auto v = positions[index];
|
const auto v = positions[index];
|
||||||
std::cout << '(' << v.x << ", " << v.y << ", " << v.z
|
std::cout << '(' << v.x << ", " << v.y << ", " << v.z
|
||||||
<< ")\n";
|
<< ")\n";
|
||||||
@ -292,7 +292,7 @@ bool LoadGLTF(const std::string &filename, float scale,
|
|||||||
v3fArray normals(
|
v3fArray normals(
|
||||||
arrayAdapter<v3f>(dataPtr, count, byte_stride));
|
arrayAdapter<v3f>(dataPtr, count, byte_stride));
|
||||||
for (size_t i{0}; i < indices.size(); ++i) {
|
for (size_t i{0}; i < indices.size(); ++i) {
|
||||||
const auto index{indices[i]};
|
const auto index(indices[i]);
|
||||||
const auto v = normals[index];
|
const auto v = normals[index];
|
||||||
std::cout << '(' << v.x << ", " << v.y << ", " << v.z
|
std::cout << '(' << v.x << ", " << v.y << ", " << v.z
|
||||||
<< ")\n";
|
<< ")\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user