mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Fix compilation on rather old compiler(gcc 5.5)
This commit is contained in:
@@ -3625,7 +3625,7 @@ bool LoadUSDZFromFile(const std::string &filename, Scene *scene,
|
||||
std::cout << "offset = " << offset << "\n";
|
||||
|
||||
// [offset, uncompr_bytes]
|
||||
assets.push_back({varname, offset, offset + uncompr_bytes});
|
||||
assets.push_back(std::make_tuple(varname, offset, offset + uncompr_bytes));
|
||||
|
||||
offset += uncompr_bytes;
|
||||
}
|
||||
|
||||
@@ -1117,13 +1117,13 @@ struct UVCoords
|
||||
|
||||
struct Extent
|
||||
{
|
||||
std::array<float, 3> lower[3] = {{
|
||||
std::array<float, 3> lower = {{
|
||||
std::numeric_limits<float>::infinity(),
|
||||
std::numeric_limits<float>::infinity(),
|
||||
std::numeric_limits<float>::infinity()
|
||||
}};
|
||||
|
||||
std::array<float, 3> upper[3] = {{
|
||||
std::array<float, 3> upper = {{
|
||||
-std::numeric_limits<float>::infinity(),
|
||||
-std::numeric_limits<float>::infinity(),
|
||||
-std::numeric_limits<float>::infinity()
|
||||
@@ -1240,8 +1240,8 @@ enum TextureWrap
|
||||
// result = in * scale * rotate * translation
|
||||
struct UsdTranform2d {
|
||||
float rotation = 0.0f; // counter-clockwise rotation in degrees around the origin.
|
||||
std::array<float, 2> scale{1.0f, 1.0f};
|
||||
std::array<float, 2> translation{0.0f, 0.0f};
|
||||
std::array<float, 2> scale{{1.0f, 1.0f}};
|
||||
std::array<float, 2> translation{{0.0f, 0.0f}};
|
||||
};
|
||||
|
||||
// UsdUvTexture
|
||||
@@ -1253,9 +1253,9 @@ struct UVTexture {
|
||||
TextureWrap wrapS;
|
||||
TextureWrap wrapT;
|
||||
|
||||
std::array<float, 4> fallback{0.0f, 0.0f, 0.0f, 1.0f}; // fallback color used when texture cannot be read.
|
||||
std::array<float, 4> scale{1.0f, 1.0f, 1.0f, 1.0f}; // scale to be applied to output texture value
|
||||
std::array<float, 4> bias{0.0f, 0.0f, 0.0f, 0.0f}; // bias to be applied to output texture value
|
||||
std::array<float, 4> fallback{{0.0f, 0.0f, 0.0f, 1.0f}}; // fallback color used when texture cannot be read.
|
||||
std::array<float, 4> scale{{1.0f, 1.0f, 1.0f, 1.0f}}; // scale to be applied to output texture value
|
||||
std::array<float, 4> bias{{0.0f, 0.0f, 0.0f, 0.0f}}; // bias to be applied to output texture value
|
||||
|
||||
UsdTranform2d texture_transfom;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user